내 회계 시스템에 MahApps 스타일을 구현하려고합니다. 여기서 필요한 단계 인 MahApps을 따르겠습니다. 여기 정적 리소스를 확인할 수 없습니다.
내가 자원appbar_cupcake
여기 해결할 수없는 오류에 붙어있는 코드가이기 때문에 당신이 아직 연결하지 않은 가정 코드
<Controls:MetroWindow x:Class="Hassab_Accounting_System.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
</Grid>
<Controls:MetroWindow.RightWindowCommands>
<Controls:WindowCommands>
<Button Content="settings" />
<Button>
<StackPanel Orientation="Horizontal">
<Rectangle Width="20" Height="20"
Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}">
<Rectangle.OpacityMask>
<VisualBrush Stretch="Fill"
Visual="{StaticResource appbar_cupcake}" />
</Rectangle.OpacityMask>
</Rectangle>
<TextBlock Margin="4 0 0 0"
VerticalAlignment="Center"
Text="deploy cupcakes" />
</StackPanel>
</Button>
</Controls:WindowCommands>
</Controls:MetroWindow.RightWindowCommands>
</Controls:MetroWindow>
`
![here is the error ][2]
당신은 또한 http://mahapps.com/guides/icons-and-resources 자원을 설치해야합니다 .html – Nitin
@nit 이미 설치했습니다 :) 리소스 ... – Dexter90
페이지에 표시된 리소스 요청을 포함 시켰습니까? – Nitin