TextBox.xaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:hc="clr-namespace:HandyControl.Controls">
  4. <Style BasedOn="{StaticResource WatermarkTextBoxBaseStyle}" TargetType="hc:WatermarkTextBox"/>
  5. <Style BasedOn="{StaticResource TextBoxBaseStyle}" TargetType="TextBox"/>
  6. <Style x:Key="TextBox.Small" BasedOn="{StaticResource TextBoxBaseStyle}" TargetType="TextBox">
  7. <Setter Property="MinHeight" Value="20"/>
  8. <Setter Property="Padding" Value="6,0" />
  9. </Style>
  10. <Style x:Key="TextBoxExtend" BasedOn="{StaticResource TextBoxExtendBaseStyle}" TargetType="TextBox"/>
  11. <Style x:Key="TextBoxExtend.Small" BasedOn="{StaticResource TextBoxExtend}" TargetType="TextBox">
  12. <Setter Property="hc:InfoElement.MinContentHeight" Value="20"/>
  13. <Setter Property="hc:InfoElement.ContentHeight" Value="20"/>
  14. <Setter Property="hc:TitleElement.MarginOnTheLeft" Value="0,3,6,0"/>
  15. <Setter Property="hc:TitleElement.MarginOnTheTop" Value="6,0,0,1" />
  16. <Setter Property="Padding" Value="6,0" />
  17. <Setter Property="MinHeight" Value="20"/>
  18. </Style>
  19. <Style BasedOn="{StaticResource TextBoxPlusBaseStyle}" TargetType="hc:TextBox"/>
  20. <Style x:Key="TextBoxPlus.Small" BasedOn="{StaticResource TextBoxPlusBaseStyle}" TargetType="hc:TextBox">
  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. </ResourceDictionary>