Concise, declarative C# UI markup for .NET browser / native UI frameworks
This release supports the new mcs-uno-markup2
and mcs-uno-view
templates in Modern.CSharp.Templates 1.5.0:
mcs-uno-view
template is used by the New-View.ps1
script, which is included in mcs-uno-markup2
dotnet new unoapp
template or with the Uno solution wizard for Visual Studio.This release adds / changes the following methods:
Full Changelog: https://github.com/VincentH-Net/CSharpForMarkup/compare/csharpmarkup2-winui-2-3-64...csharpmarkup2-winui-2-3-66
This release is fully updated to the awesome Uno 5 release and .NET 8 GA. You can use the Uno Solution Wizard for Visual Studio and add a C# Markup 2 project to it at any time with one command. All Uno wizard customizations are supported: combine C# Markup 2 with MVUX or MVVM, XAML or Uno C# Markup, use Uno Navigation extensions, and target .NET 8 or .NET 7. All Uno target platforms are supported.
A brand new dotnet new C# Markup 2 project template gets you going in no time - carefully optimized for an optimal developer experience: uncluttered solution explorer view, automatic file grouping of markup and logic files, uncluttered markup source, focused Intellisense, clear starting points for markup extensions in your code, plus fast hot reload - both automatic and with a hot reload button overlay in debug mode, for the platforms that your IDE can hot reload but cannot (yet) update the UI automatically.
Enjoy general C# Markup 2 improvements, plus C# Markup 2 API's for 5 additional Uno libraries:
ThemeResource
s searchable in C# Intellisense, strongly typedThe getting started is fully up to date. Examples in this repo and the readme will be updated soon to show off the new features.
NJoy concise C# Markup!
Windows App SDK
VisualStateGroup
, CommandBar
, Hub
, MenuBarItemFlyout
, MenuFlyout
, MenuFlyoutSubItem
, CommandBarFlyoutCommandBar
, RadioButtons
, TabView
and moreItemsRepeater
ItemTemplate
property plus add manual lambda DataTemplate
helperContentAttribute
implementations used in Windows App SDKGradientStop
collection types used in Windows App SDKGradientStop
between WinUI and Uno - add manual overload to allow specifying offset and color by value without ambiguityUno Platform
VisualStateGroup
, CommandBar
, Hub
, MenuBarItemFlyout
, MenuFlyout
, MenuFlyoutSubItem
, CommandBarFlyoutCommandBar
, RadioButtons
, TabView
, Border
, Flyout
, MediaPlayerPresenter
, SplitView
, Viewbox
and moreItemsRepeater
ItemTemplate
property plus add manual lambda DataTemplate
helperWPF
Full Changelog: https://github.com/VincentH-Net/CSharpForMarkup/compare/csharpmarkup2-winui-wpf-2-1-14...csharpmarkup2-winui-wpf-2-2-21
Windows App SDK
Uno Platform
WPF
Full Changelog: https://github.com/VincentH-Net/CSharpForMarkup/compare/csharpmarkup2-winui-2-0-0...csharpmarkup2-winui-wpf-2-1-14
C# Markup 2 target platforms are now updated and expanded:
New-View.ps1
to quickly add views from within Visual Studio's terminal. Create views with or without viewmodel.<view>.cs
and <view>.logic.cs
in solution explorerApp.cs
and App.logic.cs
).Content()
extension method on Page
allows to configure existing page instances (created by navigating to a page) fully in C# Markup instead of in the .logic.cs
file