© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
3 replies
SirDigby

WinUI3 - Button always disabled [Answered]

I'm writing a desktop app using .Net 6.0 and WinUI3. I initially created the project using Template Studio for WinUI.

I've run into an issue where some buttons (
Microsoft.UI.Xaml.Controls.Button
Microsoft.UI.Xaml.Controls.Button
) are getting disabled for no apparent reason. There is nothing in the xaml or code-behind that changes the
IsEnabled
IsEnabled
property, and even if I do set it explicitly to true they stay disabled. By watching the
IsEnabledChanged
IsEnabledChanged
event I can see something is setting the value to
false
false
but the callstack just has methods from the WinUI library.

Any ideas for how to fix this or how to better diagnose what may be the cause would be appreciated. Thanks!
unknown.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

GetStreamAsync() Stream Always Null [Answered]
C#CC# / help
4y ago
✅ WinUi3 problem
C#CC# / help
2y ago
❔ WinUI3 WebView2
C#CC# / help
3y ago
❔ WinUi3 AppService
C#CC# / help
3y ago