Gets the CoreDispatcher that this object is associated with.
Gets the size that this UIElement computed during the measure pass of the layout process. Using namespace winrt::Windows::UI::Xaml Īuto newAppBarButton = Controls::AppBarButton markup extension and participates in data binding. Var newAppBarButton = new AppBarButton() įontIcon.FontFamily = new FontFamily('Segoe MDL2 Assets') This example shows an AppBarToggleButton with a FontIcon. Get the app from the Microsoft Store or get the source code on GitHub.
The WinUI 2 Gallery app includes interactive examples of most WinUI 2 controls, features, and functionality. Open the WinUI 2 Gallery app and see the FontIcon in action