You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use a Window instead of a simple UserControl so I can take advantage of its Activated and Deactivated events. However the deskband does not show.
Steps to reproduce:
Open the WPF sample project
Create a new window Window1
Change line 23 in Deskband.cs to: protected override UIElement UIElement => new Window1();
Alternatively, is there any other way to detect if the deskband (including all of its child windows) get deactivated?
The text was updated successfully, but these errors were encountered:
Haven't really played with wpf windows but I think they are a bit different. I know that winforms windows (Forms) work fine. I tried out the steps above and I see that the error is because a window has to be top level and can't be a child. I remember I was able to use a window before though when I was experimenting,
I'll update if I remember.
I also don't know much about the deactivated so that needs some investigation too.
I am trying to use a
Window
instead of a simpleUserControl
so I can take advantage of itsActivated
andDeactivated
events. However the deskband does not show.Steps to reproduce:
Window1
protected override UIElement UIElement => new Window1();
Alternatively, is there any other way to detect if the deskband (including all of its child windows) get deactivated?
The text was updated successfully, but these errors were encountered: