Relative Content

Tag Archive for xamlwinui-3

Mimicing disabled fonticon behaviour with a custom icon

When a button with a FontIcon is disabled, it will be greyed out automatically. However, with a custom icon on a button, this does of course not happen. What is the best approach for mimicking this behvaiour? I understand you need two icons.

I can’t bind NavigationViewItem dynamic x:Uid in Windows App WinUI 3

I am using WinUI 3 NavigationView in my newly created Windows App application which I am trying to work on the basics with Template Studio for WinUI. I am trying to make NavigationViewItem dynamic as shown in Microsoft Blog where I can manage it with user permissions from SQL Server data.

How to share data between pages when using frame according to MVVM

I have a simple application with a frame in a MainPage.xaml that changes between MediaCenterPage.xaml and PlayerPage.xaml. Now I want the selected movie in the MediaCenter to be shared with the PlayerPage. If I use a binding and refer to the model it is of course two different instances of the object. What is the proper approach to share the data between pages?