Merge pull request #429 from irihitech/enumselector
Add small/large size to enum selector.
This commit is contained in:
@@ -26,5 +26,12 @@
|
|||||||
EnumType="{Binding SelectedType}"
|
EnumType="{Binding SelectedType}"
|
||||||
Value="{Binding Value}" />
|
Value="{Binding Value}" />
|
||||||
<TextBlock Text="{Binding Value}" />
|
<TextBlock Text="{Binding Value}" />
|
||||||
|
<u:Divider Content="Small Size"></u:Divider>
|
||||||
|
<u:EnumSelector
|
||||||
|
Width="200"
|
||||||
|
Classes="Small"
|
||||||
|
DisplayDescription="{Binding #description.IsChecked}"
|
||||||
|
EnumType="{Binding SelectedType}"
|
||||||
|
Value="{Binding Value}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="https://github.com/avaloniaui"
|
xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:u="https://irihi.tech/ursa">
|
xmlns:u="https://irihi.tech/ursa"
|
||||||
|
xmlns:u-semi="https://irihi.tech/ursa/themes/semi">
|
||||||
<!-- Add Resources Here -->
|
<!-- Add Resources Here -->
|
||||||
<ControlTheme x:Key="{x:Type u:EnumSelector}" TargetType="u:EnumSelector">
|
<ControlTheme x:Key="{x:Type u:EnumSelector}" TargetType="u:EnumSelector">
|
||||||
<Setter Property="HorizontalAlignment" Value="Left" />
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
||||||
@@ -9,6 +10,7 @@
|
|||||||
<ControlTemplate TargetType="u:EnumSelector">
|
<ControlTemplate TargetType="u:EnumSelector">
|
||||||
<ComboBox
|
<ComboBox
|
||||||
Width="{TemplateBinding Width}"
|
Width="{TemplateBinding Width}"
|
||||||
|
u-semi:ClassHelper.ClassSource="{TemplateBinding}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
||||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||||
Name="PART_ComboBox"
|
Name="PART_ComboBox"
|
||||||
|
|||||||
Reference in New Issue
Block a user