Тёмный
No video :(

Exploring Gui.cs - Custom Terminal UI's in .NET 

World of Zero
Подписаться 21 тыс.
Просмотров 16 тыс.
50% 1

Gui.cs is a library put together by Miguel de Icaza that allows you to compose complex Terminal UI's using a collection of `View` components such as `Window`s, `Button`s, `ListView`s or `Label`s. This allows you to create relatively complicated UI interfaces without having to manually handle some of the rendering requirements that entails. In this video I'd like to explore it as a first time user and see what possibilities it creates for us.
We'll explore a number of things including:
* How to create and size an application `Window`.
* How to parent objects to one another so components may be nested within one another.
* How to create lists of objects.
* How to create a custom list container for computed sets of items (we'll create an infinite list of integers) using the `IListDataSource` interface.
Because this is my first time seeing this library we'll also see what some of the stumbling blocks might be and what the solution to them is. Let's explore Gui.cs together and see what we can make!
A simple example script to render a basic text label looks like this:
```csharp
Application.Init ();
var top = Application.Top;
var label = new Label("Hello, Gui.cs!");
top.Add(label);
Application.Run();
```
The Gui.cs source code is available on GitHub here: github.com/mig...
GUI.CS is available on Nuget: www.nuget.org/...
More information about String Interpolation and Formatting: docs.microsoft...
Join the World of Zero Discord Server: / discord

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@vesk4000
@vesk4000 3 года назад
Thanks so much this is exactly what I was looking for! I can't believe how hard it was to find it, especially considering how good this is.
@wesmullen2550
@wesmullen2550 3 года назад
why is this the only vid on youtube that shows us how to do this
@arsebiscuitsandwine
@arsebiscuitsandwine 4 года назад
This is a great way to get an overview of Gui.cs, thanks! I'll have to have a play with it.
@washere3955
@washere3955 6 месяцев назад
We need another video on this Terminal Gui.
@OS-qw2xc
@OS-qw2xc 2 года назад
Hello! Very nice and useful guide. For 2 panels set leftPanel.Width = Dim.Percent(50) and for another rightPanel.X = Pos.Percent(50) Both panels is Window class It work perfect for me)
@DaT0nkee
@DaT0nkee 2 года назад
Thanks for the IListDatasource part, and specifically how to use the Render. Additional info: for changing the color of the text, use the driver.SetAttribute, because the driver.SetColor simply does nothing. I still have no idea how to change the color inside the line (maybe drawing by char by char with driver.AddRune?)
@jordi4406
@jordi4406 3 года назад
Your ListView are not in the myapp windows, its on the top view thats is why you every time on the X0 position ;-)
@michaelparker6907
@michaelparker6907 4 года назад
Please tell us what reset your setup to 360p resolution. I could read your text, so it was not too bad.
@WorldOfZeroDevelopment
@WorldOfZeroDevelopment 4 года назад
Maybe the higher resolutions are still processing? I record and upload in 2560x1440. Sometimes those higher resolutions get a bit behind and aren't available immediately. Hopefully it's fixed shortly.
@toxic715
@toxic715 2 месяца назад
is there any library similar to this in java
@WorldOfZeroDevelopment
@WorldOfZeroDevelopment Месяц назад
I'm not aware of one, sorry.
@jasperzanjani
@jasperzanjani 4 года назад
What Code extensions are you using?
@EthanEDITS1
@EthanEDITS1 3 года назад
why C# in VSCode?
Далее
Don't Use Polly in .NET Directly. Use this instead!
14:58
How principled coders outperform the competition
11:11
Rich Terminal Interfaces with Ratatui
9:31
Просмотров 34 тыс.
BEST GUI TOOLKITS for C++ | Sciber
16:04
Просмотров 107 тыс.
Brutally honest advice for new .NET Web Developers
7:19
How C++ took a turn for the worse
5:03
Просмотров 276 тыс.
I made a TERMINAL website, with HIDDEN Easter eggs
11:23
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,5 млн
C#/Avalonia - Learn MVVM with Avalonia
2:07:00
Просмотров 12 тыс.
How Senior Programmers ACTUALLY Write Code
13:37
Просмотров 1,5 млн