NumericUpDown.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:hc="clr-namespace:HandyControl.Controls">
  5. <Style TargetType="hc:NumericUpDown" BasedOn="{StaticResource NumericUpDownBaseStyle}" />
  6. <Style
  7. x:Key="NumericUpDown.Small"
  8. TargetType="hc:NumericUpDown"
  9. BasedOn="{StaticResource NumericUpDownBaseStyle}">
  10. <Setter Property="MinHeight" Value="20" />
  11. <Setter Property="Padding" Value="6,0" />
  12. </Style>
  13. <Style
  14. x:Key="NumericUpDownExtend"
  15. TargetType="hc:NumericUpDown"
  16. BasedOn="{StaticResource NumericUpDownExtendBaseStyle}" />
  17. <Style
  18. x:Key="NumericUpDownExtend.Small"
  19. TargetType="hc:NumericUpDown"
  20. BasedOn="{StaticResource NumericUpDownExtend}">
  21. <Setter Property="hc:InfoElement.MinContentHeight" Value="20" />
  22. <Setter Property="hc:InfoElement.ContentHeight" Value="20" />
  23. <Setter Property="hc:TitleElement.MarginOnTheLeft" Value="0,3,6,0" />
  24. <Setter Property="hc:TitleElement.MarginOnTheTop" Value="6,0,0,1" />
  25. <Setter Property="Padding" Value="6,0" />
  26. <Setter Property="MinHeight" Value="20" />
  27. </Style>
  28. <Style
  29. x:Key="NumericUpDownPlus"
  30. TargetType="hc:NumericUpDown"
  31. BasedOn="{StaticResource NumericUpDownPlusBaseStyle}" />
  32. <Style
  33. x:Key="NumericUpDownPlus.Small"
  34. TargetType="hc:NumericUpDown"
  35. BasedOn="{StaticResource NumericUpDownPlus}">
  36. <Setter Property="hc:InfoElement.MinContentHeight" Value="20" />
  37. <Setter Property="hc:InfoElement.ContentHeight" Value="20" />
  38. <Setter Property="hc:TitleElement.MarginOnTheLeft" Value="0,3,6,0" />
  39. <Setter Property="hc:TitleElement.MarginOnTheTop" Value="6,0,0,1" />
  40. <Setter Property="Padding" Value="6,0" />
  41. <Setter Property="MinHeight" Value="20" />
  42. </Style>
  43. </ResourceDictionary>