Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Prism + MahApps.Metro

$
0
0

MahApps

I would like to apply the BordelessWindowBehaviour, however, this behaviour can only be added to Window Type. If I try to add it in an UserControl, I get:

Cannot attach type "BorderlessWindowBehavior" to type "MainView". Instances of type "BorderlessWindowBehavior" can only be attached to objects of type "Window".

So, my first idea is to use a Window, but then I get the following error in Prism when I try to register the view with region:

regionManager.RegisterViewWithRegion(RegionNames.MainRegion, typeof(MainView));

ViewRegistrationException Window must be the root of the tree. Cannot add Window as a child of Visual.


Take a look at WPF FlashMessage
About.me



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>