https://github.com/xxrederxx/cstkinter
A C# version based of Tkinter and Customtkinter.
https://github.com/xxrederxx/cstkinter
csharp-library gui
Last synced: 4 months ago
JSON representation
A C# version based of Tkinter and Customtkinter.
- Host: GitHub
- URL: https://github.com/xxrederxx/cstkinter
- Owner: xXrederXx
- License: gpl-3.0
- Created: 2025-01-22T15:28:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-22T16:09:36.000Z (over 1 year ago)
- Last Synced: 2025-03-22T17:22:34.440Z (over 1 year ago)
- Topics: csharp-library, gui
- Language: C#
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CsTkinter
A C# version based of Tkinter and Customtkinter.
Key Features •
How To Use •
TODO •
License
## Discontinued
I have discontinued this project because there is too much complication with WPF. I started over with a new approach in a repo called AnyUI. 😊
## Key Features
* Easy to use
* Tkinter like behavior
* Only Code, no xaml
* Based of Performant WPF
* Spacial Features
## How To Use
First create a new Csharp project. Take the .dll file and place it into your Project folder. If you place it else where, you need to change the HintPath. Go into the .csproj file and make shure it looks similar to this. Important are the **TargetFramework**, the **UseWPF** and the **ItemGroup**
```xml
Exe
net9.0-windows
enable
enable
true
./CsTkinter.dll
```
Now crate a class with a Main function. It needs the **STAThread** attribute. Here is a sample application.
```csharp
using CsTkinter.Widgets;
using CsTkinter.Windows;
class App
{
[STAThread]
static void Main(string[] args)
{
CtWindow root = new();
CtLabel label = new CtLabel(root);
label.Place(10, 10);
root.Run();
}
}
```
If you have trouble because of the dependency, try run dotnet clean.
Now try to build your own app.
## TODO
- [ ] Add more Widgets
- [ ] Add more Place methods
- [ ] Add general functionality
## You may also like...
- [Y-Sharp](https://github.com/xXrederXx/YSharp) - My custom language
- [Wiki Word Plotter](https://github.com/xXrederXx/WikiWordPlotter) - A tool to plot words from Wikipedia
## License
[GNU GPLv3](./LICENSE)
---