CSharpForMarkup
ndk-samples
Our great sponsors
CSharpForMarkup | ndk-samples | |
---|---|---|
7 | 30 | |
709 | 9,889 | |
- | 0.8% | |
8.5 | 5.7 | |
7 days ago | 9 days ago | |
C# | C++ | |
MIT License | Apache License 2.0 |
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.
ndk-samples
-
C/C++ or Go
https://developer.android.com/ndk. Java/Kotlin for the rest.
- Using sanitizers to detect problems in native code (NDK sample app)
-
Resources for learning Android NDK?
Best you can do is refer to the official samples and learn by taking one of the samples and modifying it to your use case. The comments in the samples should be quite adequate.
-
Can C++ be used to develop android apps? If not what is it's best alternative?
You can compile c++ for android using the NDK.
-
CPP Mobile development
Mobile has a lot of C++ as libraries but in https://developer.android.com/ndk for android.
- But guys, if you had to choose?.....
-
Does anyone else think Android should allow C++ natively and not just through NDK and JNI?
Then please provide references that say how to do this. Here https://developer.android.com/ndk it says:
-
How can I use K/N with C++?
cinterop is only for Kotlin/Native, where the whole application gets compiled to native code. If the target is Android, you want to use Native Development Kit (https://developer.android.com/ndk) instead.
-
Build Android apps without an Android SDK using PicoLisp
It's a little convoluted since the app does still fork from the zygote with ART in there, but they added an entire layer of APIs so you can jump right in from C++. Here's a sample https://github.com/android/ndk-samples/blob/master/native-ac...
What are some alternatives?
ModernWpf - Modern styles and controls for your WPF applications
android-native-egl-example - Sample that shows how to combine native rendering with Java UI on Android
Avalonia.FuncUI - Develop cross-plattform GUI Applications using F# and Avalonia!
ndk-native-camera2-
Avalonia - Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
node-raylib - Node.js bindings for Raylib
mobile - The mobile app vault (iOS and Android).
Uber Apk Signer - A cli tool that helps signing and zip aligning single or multiple Android application packages (APKs) with either debug or provided release certificates. It supports v1, v2 and v3 Android signing scheme has an embedded debug keystore and auto verifies after signing.
HandyControl - Contains some simple and commonly used WPF controls
Apktool - A tool for reverse engineering Android apk files
Uno Platform - Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
htmltopdf-java - An HTML to PDF conversion library written in Java, based on wkhtmltopdf.