I want to design my xaml user control in metro style and want to use controls like tiles etc which are missing from usual XAML toolbox. How do I use these controls ? Are there any packages or library which allows us with modern UI metro controls to be directly used with XAML ?
Asked
Active
Viewed 1,115 times
-1
-
1take a look at MahApps metro http://mahapps.com/ – kkyr Nov 22 '15 at 01:34
-
I have tried MahApps, but i am developing a visual studio extension. And then the extension opens up a window which has a user control. It does not suppor windows or pages, just user control. I am not sure how to use MahApps with user controls as I do not have Window control to apply style on that. – Shahzad Nov 22 '15 at 10:22
-
May be you should start with small changes. Lear a little bit about VS Extension model - *how* you can change it, *where* to change it, debugging, etc... and then you could continue to MahApps Metro (you should understand it too - it's not so easy `Template` – Alex F Nov 22 '15 at 15:34
-
debugging and changing extensions is not a problem, but the tool windows developed by the extension renders inside a user control. And we cannot nest window inside a user control. That is why I am unable to apply MetroWindow style to it. As MetroWindow style can only be applied to a window not user control. – Shahzad Nov 24 '15 at 07:21
-
@danvy Yes its developed in WPF – Shahzad Dec 12 '15 at 14:17
1 Answers
0
you cannot use native WinRT visual components in a WPF project. You will have to rely on custom controls/styles. You can do it by yourself or you can use some third party librairies like Open Source Modern UI for WPF or Materiel Design in XML or use commercial components set like DevExpress

danvy
- 2,085
- 12
- 17
-
HI. Yes I am using a 3rd party Nuget package. The problem is that the 3rd party dll is not getting deployed with the Visual Studio extension. I dont know how to package the requied 3rd party dlls – Shahzad Dec 12 '15 at 17:12
-
-
Didn't think of that. Thanks. Will give it a try. But the problem is I would not be able to get automatic updates. Will have to update thee code manually every-time. – Shahzad Dec 12 '15 at 19:01
-
-
Yeah. Thanks. I actually investigated more and found out that the dlls are getting copied, but for some reasons, my extension is unable to reference them. Will have to find out what are the locations the extension is looking up for the dlls. – Shahzad Dec 12 '15 at 20:00