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

WPF Generic.xaml with Visual Studio 2015

$
0
0

I just wanted to migrate our Project to the new Visual Studio 2015. Unfortunately I got a problem with the Generic.xaml. I have a user control in a separate assembly and put all styling stuff in a seperate xaml file. This file I referenced in the Generic.xaml. It worked so fare. After the Migration a XML parse exception was thrown.

If I put the styling stuff directly into the Generic.xaml it works.

<Style TargetType="{x:Type outlookBarCtrl:MyButton}" BasedOn="{StaticResource {x:Type Button}}"><Setter Property="Foreground" Value="Green"/><Setter Property="Background" Value="Crimson"/></Style>

If reference a file, a exception occurs.

<ResourceDictionary.MergedDictionaries><ResourceDictionary Source="OutlookBarCtrl;component/Styles/MyButtonStyles.xaml"/></ResourceDictionary.MergedDictionaries>

Does anyone have an idea why this happens? 

Thanks for answers.


-




Viewing all articles
Browse latest Browse all 18858

Trending Articles



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