Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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]
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/Resource/icon.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
- <Application.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/Resource/icon.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Application.Resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement