ManualButton.xaml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl
  2. x:Class="SHJX.Service.Library.Views.ManualControl.ManualButton"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:SHJX.Service.Library.Views.ManualControl"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  9. mc:Ignorable="d">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  14. <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
  15. </ResourceDictionary.MergedDictionaries>
  16. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Button
  19. Name="btn_Motor_click"
  20. Width="40"
  21. Height="40"
  22. Margin="5,0"
  23. pu:ButtonHelper.ClickStyle="Sink"
  24. pu:ButtonHelper.CornerRadius="20"
  25. pu:ButtonHelper.HoverBrush="#929FDE"
  26. Background="#6452A4"
  27. CommandParameter="{Binding ElementName=btn_Motor_click, Path=Content}"
  28. Cursor="Hand"
  29. FontFamily="{StaticResource FontAwesome}" />
  30. </UserControl>