Questions tagged [winui-3]

The Windows UI Library (WinUI) is a native user experience (UX) framework for both Windows Desktop and UWP applications. WinUI 3 is the next version of WinUI, a native Windows 10 UI platform completely decoupled from the Windows 10 SDK. This tag should be used with questions concerning using the features and functionality of WinUI 3.x. Add the appropriate tag for the programming language you are using as well (c++-winrt, C# or Rust).

WinUI 3 is the native UI platform component that ships with the Windows App SDK previously known as Project Reunion.

1154 questions
-1
votes
1 answer

Window.Current.Content is getting null in winui3

Window.Current.Content is getting null in winui3 Gettting exception object reference not set to an instance I am implementing Ishitestvisible Any suggestions?
-1
votes
1 answer

Button appears all black in dark theme - Windows 11 (WinUi 3)

I am develop a new app for Windows 11 with WinUi 3 and in my MainPage the button appears all black in dark theme: Why this happen? This is a resume of my code:
Luís
  • 157
  • 2
  • 10
-1
votes
1 answer

Unhandled exception at 0x7B657FD9 (Microsoft.ui.xaml.dll)

I am trying to create a login system for a uwp(winui3) app. In the login window the user enters his credentials and on clicking the login button he/she is redirected to mainwindow. But I get an Unhandled exception error. App.xaml.cs protected…
Rohith
  • 1
  • 1
  • 4
-1
votes
2 answers

Reorder Observable Collection Binding in WinUI

I have a few issues with binding an ObservableCollection using WinUI 3: (a) When the collection changes (an item is added, removed), the ListView is not updated. (b) Upon reordering the ListView (using the control itself), the ListView does not keep…
Dave
  • 1
  • 3
-1
votes
1 answer

Raising PropertyChanged events from an update loop (winRT/C++)

The following code creates an update thread that is supposed to notify the view every 10ms. DataVM::DataVM() { Update = UpdateLoop(); } IAsyncAction DataVM::UpdateLoop() { co_await resume_background(); …
-1
votes
2 answers

C# How to dispose ColorAnimation and Storyboard that are created programmatically?

im very new to storyboards and animations. While their setup concept is fairly straightforward, i've been struggling trying to find an efficient way to destroy them to preserve memory in my specific scenario. Basically i have a listview with several…
Eugen M
  • 51
  • 1
  • 6
-1
votes
1 answer

How can i use static resources in WinUI3 pages?

In my last years release i used net core 3 and WPF like that:
Sascha Manns
  • 2,331
  • 2
  • 14
  • 21
-1
votes
1 answer

TextBox/NumberBox Filtering WINUI3

Is it possible to implement an TextBox/NumberBox that filters and only accepts numeric values in real time just like what a NumberBox normaly does but not just when the user completes the input and if so how can I do it?
David Simões
  • 303
  • 4
  • 11
-2
votes
1 answer

Winui 3 how to make a new app window at button click

Am building an app with Winui 3 so XAML and C# Ok, how to make a new instance of the app at runtime. So in one of the pages I have a button with content "Open new window". At button click I want to open a new self/ window from the app I am building.…
-2
votes
2 answers

Mouse Events not Triggering on User Control

I'm working on a WinUI 3 app, and I've made a user control and I've been trying to get the left and right clicks to do some things. For some reason, my component doesn't pick up on the events like the rest of my components. Here's my XAML…
Borisonekenobi
  • 469
  • 4
  • 15
-2
votes
1 answer

Converting Brush to SolidColorBrush WinUi 3

Im moving WPF project to WinUi 3. I would like to convert Brushes.Red/Green to SolidColorBrush. It's used by xaml elements' properties like Background. public SolidColorBrush PowerBrush { get { if (_powerMode == PowerMode.Off) …
Marek Pio
  • 49
  • 8
-2
votes
1 answer

How can convert this code from UWP to Windows App SDK?

public async Task CreateNewViewAsync(Type viewModelType, object parameter = null) { int viewId = 0; var newView = CoreApplication.CreateNewView(); await…
-2
votes
1 answer

WinUi3 Expander class in not found

I'm developing a simple windows 10 utility app using C# & WinUi 3. So the main component of my app is the Expander component/control. My problem is that the Expander control is not found. It's not found in the Windows.UI.Xaml.Controls namespace. I'm…
Ali BEN AMOR
  • 126
  • 1
  • 6
1 2 3
76
77