App.xaml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <Prism:PrismApplication x:Class="EEMSCenterUI.App"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:EEMSCenterUI"
  5. xmlns:tb="http://www.hardcodet.net/taskbar"
  6. xmlns:Prism="http://prismlibrary.com/">
  7. <Prism:PrismApplication.Resources>
  8. <ResourceDictionary>
  9. <ResourceDictionary.MergedDictionaries>
  10. <ResourceDictionary Source="/UICommon;component/Brush.xaml"/>
  11. <ResourceDictionary Source="/UICommon;component/Styles/ButtonStyle.xaml"/>
  12. <ResourceDictionary Source="/UICommon;component/Styles/CheckBoxStyle.xaml"/>
  13. <ResourceDictionary Source="/UICommon;component/Styles/ComboBoxStyle.xaml"/>
  14. <ResourceDictionary Source="/UICommon;component/DrawImage.xaml"/>
  15. <ResourceDictionary Source="/UICommon;component/Styles/OtherStyle.xaml"/>
  16. <ResourceDictionary Source="/UICommon;component/Styles/RadioButtonStyle.xaml"/>
  17. </ResourceDictionary.MergedDictionaries>
  18. <tb:TaskbarIcon x:Key="Taskbar"
  19. ToolTipText="EEMS Server"
  20. IconSource="Logo.ico"
  21. DoubleClickCommand="{Binding HideShowCommand}">
  22. <tb:TaskbarIcon.ContextMenu>
  23. <ContextMenu >
  24. <MenuItem Header="显示/隐藏" Command="{Binding HideShowCommand}"/>
  25. <MenuItem Header="退出 EEMS Server" Command="{Binding ExitCommand}"/>
  26. </ContextMenu>
  27. </tb:TaskbarIcon.ContextMenu>
  28. </tb:TaskbarIcon>
  29. </ResourceDictionary>
  30. </Prism:PrismApplication.Resources>
  31. </Prism:PrismApplication>