Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. <Controls:MetroWindow x:Class="Hassab_Accounting_System.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. Title="MainWindow" Height="350" Width="525">
  6. <Grid>
  7.  
  8. </Grid>
  9. <Controls:MetroWindow.RightWindowCommands>
  10. <Controls:WindowCommands>
  11. <Button Content="settings" />
  12. <Button>
  13. <StackPanel Orientation="Horizontal">
  14. <Rectangle Width="20" Height="20"
  15. Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}">
  16. <Rectangle.OpacityMask>
  17. <VisualBrush Stretch="Fill"
  18. Visual="{StaticResource appbar_cupcake}" />
  19. </Rectangle.OpacityMask>
  20. </Rectangle>
  21. <TextBlock Margin="4 0 0 0"
  22. VerticalAlignment="Center"
  23. Text="deploy cupcakes" />
  24. </StackPanel>
  25. </Button>
  26. </Controls:WindowCommands>
  27. </Controls:MetroWindow.RightWindowCommands>
  28. </Controls:MetroWindow>
  29. `
  30. ![here is the error ][2]
  31.  
  32. <Window.Resources>
  33. <ResourceDictionary>
  34. <ResourceDictionary.MergedDictionaries>
  35. <ResourceDictionary Source="/Resource/icon.xaml" />
  36. </ResourceDictionary.MergedDictionaries>
  37. </ResourceDictionary>
  38. </Window.Resources>
  39.  
  40. <Application.Resources>
  41. <ResourceDictionary>
  42. <ResourceDictionary.MergedDictionaries>
  43. <ResourceDictionary Source="/Resource/icon.xaml" />
  44. </ResourceDictionary.MergedDictionaries>
  45. </ResourceDictionary>
  46. </Application.Resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement