开发者

Can't set style for path in resource dictionary

开发者 https://www.devze.com 2023-03-16 02:01 出处:网络
I am not able to set path of resource dictionary.... <ResourceDictionary> <ResourceDictionary.MergedDictionaries>

I am not able to set path of resource dictionary....

<ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary  Source="/SilverlightOrganization;component/Styles/Blu开发者_开发知识库eStyles.xaml" />
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

I also tried it ...

   <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary  Source="Styles/BlueStyles.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>

What can be issue help please....

Can't set style for path in resource dictionary


I believe you need to add a key to your ResourceDictionary tag:

<UserControl.Resources>
    <ResourceDictionary x:Key="ucRescDict">
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/PDMC;component/Views/XamlResources/AppFormsStyle.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
    <converters:InvertBooleanToVisibilityConverter x:Key="invertBoolToVisibility" />
</UserControl.Resources>
0

精彩评论

暂无评论...
验证码 换一张
取 消