无法使用Reuxable inc.xaml主题

时间:2013-03-21 09:18:07

标签: wpf themes

有人使用了可重复使用的免费主题,特别是“inc.xaml”吗?如果是的话,你能帮我解决这个问题吗?我从nukeation下载的示例使用mercury.xaml并且它工作正常,但是当我更改为inc.xaml时,我遇到了一些错误。问题是编译器无法识别名为“incbutton”的样式。以下是我的代码:

<!--App.xaml-->
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="GeminiSampleProject.App"
StartupUri="MainWindow.xaml">
<Application.Resources>
    <!-- Resources scoped at the Application level should be defined here. -->
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/ReuxablesLegacy;component/inc.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

//fragment of code that fire error
<Button Content="Button" HorizontalAlignment="Left" Height="25" Margin="33,16.08,0,0" VerticalAlignment="Top" Width="80" Style="{StaticResource IncButton}" />

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,我认为inc.xml中不存在静态资源“IncButton”,但它存在于mercery.xml中。

我的问题是相同的,但另一个静态资源,我检查.dll文件,发现该资源只存在于mercery但不存在于inc。

BR / Ĵ