Skip to content

Can not get Triggers to work #4848

Discussion options

You must be logged in to vote

Does this code work on UWP? Like VSM is tricky to run within a page sometimes as it has to be on the root object (microsoft/microsoft-ui-xaml#5576). Though I could suspect that it could have something to do with Window not being a FrameworkElement here? That does cause issues elsewhere: microsoft/microsoft-ui-xaml#4966

Can you try putting everything in a Page and have your Window just contain that page? See microsoft/microsoft-ui-xaml#5515

I also have a new template which makes checking code against UWP and WinUI 3 a lot easier: https://github.com/michael-hawker/WinUI2plus3Template - Just include Microsoft.Toolkit.Uwp.UI in the UWP head and CommunityToolkit.WinUI.UI in the WindowsAppSDK o…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sam-wheat
Comment options

Answer selected by sam-wheat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants