CSharpForMarkup
WPF
Our great sponsors
CSharpForMarkup | WPF | |
---|---|---|
7 | 50 | |
709 | 6,816 | |
- | 1.2% | |
8.5 | 9.7 | |
7 days ago | 2 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CSharpForMarkup
-
.NET 8 – .NET Blog
It's a bit of a hit and miss as of today. CLI, back-end and natively compiled libraries (think dll/so/dylib or even .lib/.a - you can statically link NAOT binaries into other "unmanaged" code) work best, GUI - requires more work.
Avalonia[0] and MAUI[1] have known working templates with it, but YMMV.
[0] https://github.com/lixinyang123/AvaloniaAOT / https://github.com/AvaloniaUI/Avalonia/ / honorable mention https://github.com/VincentH-Net/CSharpForMarkup
[1] https://github.com/dotnet/maui (try out with just true in csproj - it is known to work e.g. on iOS)
-
State of mobile app development within the .NET ecosystem?
Uno Platform can be both XAML or C# Markup if you use https://github.com/VincentH-Net/CSharpForMarkup with it.
-
Modern C# software development framework
And if you use https://github.com/VincentH-Net/CSharpForMarkup with it, you can have an all-around C# approach for both front end and back end.
-
What are your gripes with XAML?
Maybe some c# markup libraries like this one. But I haven't use that so you'd need to check yourself
-
Uno platform: build single-codebase applications across all platforms
You can CSharpForMarkup with WPF, WinUI 3, Uno Platform. with AvaloniaUI and Maui coming and possibly Blazor.
https://github.com/VincentH-Net/CSharpForMarkup
-
Performance Improvements in .NET 6
To manage mental mapping of what is being drawn, I keep methods that create widget trees short. My rule of thumb is that whole method has to comfortably fit the screen at once. For each section of the main tree I create a static function that returns a branch of the tree. These functions have descriptive names that help you visualize what element each function builds. If a tree inside a function is long, it is broken down in the same way.
There are some fluent extensions (for Xamarin.Forms and probably future MAUI) that help you build UI in declarative fashion with C#. Same extensions could be created for other frameworks.
https://devblogs.microsoft.com/xamarin/c-sharp-markup-for-xa...
https://github.com/VincentH-Net/CSharpForMarkup
For reusable custom widgets that can't be done with a static function, I create new classes with their own widget trees. Try to keep widgets composable and avoid inheritance if possible.
Hot reload is coming in .NET 6, so waiting for rebuild will soon be history.
I have no experience with QML so I can't really comment on that.
-
What's a Modern Technology Used For Building Desktop Programs?
If I were to build a windows only desktop app with technology I was moderately familiar with, I'd probably got for WPF + https://github.com/VincentH-Net/CSharpForMarkup Working without XAML makes life so much simpler.
WPF
-
.NET 8 is on the Way! 7 Features that will blow your mind 🤯
Gear up, folks, and test drive this fresh-off-the-lab feature. And should you stumble upon any glitches along the way, don’t hesitate to reach out. Got a bug to report or feedback to give? Send them directly to our dotnet/wpf repository. We’re eager to hear from you, because together, we’re only going to make the experience even better!
- What is the best for Develop Cross-platform Application ?
-
MAUI Part 2: A New Page And Basic Styling
I did some research and did not find any proof of the EOL on WPF. In fact, Microsoft just updated the roadmap on WPF 2 months ago.
-
Avalonia UI for .NET: Project Overview from Mike James
There’s still room for improvement though. I should add, WPF on .NET Core consumes a lot of memory, due to a memory leak. It was logged by our COO as one of our users was doing a comparison.
-
VS2022 Build Error: 'Could not load file or assembly 'PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
have you tried this?
-
Duda carrera: C#/.NET vs. Node/Express
WPF: Licencia MIT.
- Help make hyphen ligatures a thing by expressing your interest in this GitHub issue
-
Just switched to this from GOG. Playnite is great, I only have one complaint...
Some added context: It's a side effect of how variable rendering works in UI library we use. There's currently sadly no way how to disable VRR compatibility, which causes the issue you describe unless you tell your GPU to not treat Playnite as VRR compatible. Some more info here.
-
Something Pretty Right: The History and Legacy of Visual Basic
WPF is definitely not dead. It may not be the latest shiny thing, but it works, it is maintained (judging by https://github.com/dotnet/wpf or https://devblogs.microsoft.com/dotnet/wpf-on-dotnet-7/), and it is fully and officially supported on the modern .NET platform.
-
WPF Begins Its Long Goodbye
This article only sights a video stream. I think part of the problem with the glacial pace of development is reliance on manual testing. See this comment:
https://github.com/dotnet/wpf/discussions/7130#discussioncom...
> Our primary goal is to ensure reduced turn-around-times for new PRs as well as clear the pending backlog of existing PRs. To that end, we are working on putting appropriate automation in place to reduce the dependency on manual testing as much as we can.
See also the recently updated WPF roadmap:
https://github.com/dotnet/wpf/blob/main/roadmap.md
If you look at the history of this file you can over the years tests have been always been in the backlog.
As for “where projects go to die”, they have 3 features planned for this year: Windows 11 Theming, a new type of folder browser, and null ability annotations. And they say they don’t think they can do them all. Maybe I’m underestimating, but that’s not a lot.
What are some alternatives?
ModernWpf - Modern styles and controls for your WPF applications
Introducing .NET Multi-platform App UI (MAUI) - .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
Avalonia.FuncUI - Develop cross-plattform GUI Applications using F# and Avalonia!
Avalonia - Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
mobile - The mobile app vault (iOS and Android).
imgui - Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
HandyControl - Contains some simple and commonly used WPF controls
Extended WPF Toolkit™ - All the controls missing in WPF. Over 1 million downloads.
Uno Platform - Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.