SearchBar.xaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  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 SearchBarBaseStyle}" TargetType="hc:SearchBar"/>
  5. <Style x:Key="SearchBar.Small" BasedOn="{StaticResource SearchBarBaseStyle}" TargetType="hc:SearchBar">
  6. <Setter Property="MinHeight" Value="20"/>
  7. <Setter Property="Padding" Value="6,0" />
  8. </Style>
  9. <Style x:Key="SearchBarExtend" BasedOn="{StaticResource SearchBarExtendBaseStyle}" TargetType="hc:SearchBar"/>
  10. <Style x:Key="SearchBarExtend.Small" BasedOn="{StaticResource SearchBarExtend}" TargetType="hc:SearchBar">
  11. <Setter Property="hc:InfoElement.MinContentHeight" Value="20"/>
  12. <Setter Property="hc:InfoElement.ContentHeight" Value="20"/>
  13. <Setter Property="hc:TitleElement.MarginOnTheLeft" Value="0,3,6,0"/>
  14. <Setter Property="hc:TitleElement.MarginOnTheTop" Value="6,0,0,1" />
  15. <Setter Property="Padding" Value="6,0" />
  16. <Setter Property="MinHeight" Value="20"/>
  17. </Style>
  18. <Style x:Key="SearchBarPlus" BasedOn="{StaticResource SearchBarPlusBaseStyle}" TargetType="hc:SearchBar"/>
  19. <Style x:Key="SearchBarPlus.Small" BasedOn="{StaticResource SearchBarPlus}" TargetType="hc:SearchBar">
  20. <Setter Property="hc:InfoElement.MinContentHeight" Value="20"/>
  21. <Setter Property="hc:InfoElement.ContentHeight" Value="20"/>
  22. <Setter Property="hc:TitleElement.MarginOnTheLeft" Value="0,3,6,0"/>
  23. <Setter Property="hc:TitleElement.MarginOnTheTop" Value="6,0,0,1" />
  24. <Setter Property="Padding" Value="6,0" />
  25. <Setter Property="MinHeight" Value="20"/>
  26. </Style>
  27. </ResourceDictionary>