mahapps.metro - WPF: How to remake Mahapps Metro application to class library? -


i have wpf mahapps metro style application. mainwindow containing usercontrol, , inside works other usercontrols wizard pages.

now trying remake class library use in wix bootstraper application.

the 1 of problems is: place resources in

 <application.resources>       <resourcedictionary>             <resourcedictionary.mergeddictionaries>                 <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/controls.xaml" /> ...             </resourcedictionary.mergeddictionaries>         </resourcedictionary> 

i have placed main usercontrol xml error:

    <usercontrol.resources>         <resourcedictionary> <------------x:key required?             <resourcedictionary.mergeddictionaries>                 <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/controls.xaml" />                 <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/fonts.xaml" />                 <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/colors.xaml" />                 <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/accents/blue.xaml" />                 <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/accents/baselight.xaml" />             </resourcedictionary.mergeddictionaries>         </resourcedictionary>          <datatemplate datatype="{x:type viewmodel:viewmodelalreadyinstalledpage}">             <view:alreadyinstalledpage/>         </datatemplate> ... 

you have put datatemplate inside resourcedictionary:

<resourcedictionary>     <resourcedictionary.mergeddictionaries>         <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/controls.xaml" />         <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/fonts.xaml" />         <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/colors.xaml" />         <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/accents/blue.xaml" />         <resourcedictionary source="pack://application:,,,/mahapps.metro;component/styles/accents/baselight.xaml" />     </resourcedictionary.mergeddictionaries>      <datatemplate datatype="{x:type viewmodel:viewmodelalreadyinstalledpage}">         <view:alreadyinstalledpage />     </datatemplate> </resourcedictionary> 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -