misc: formatted codes of controls XAML.
This commit is contained in:
@@ -88,7 +88,8 @@
|
||||
FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
|
||||
FontSize="{DynamicResource DefaultFontSize}"
|
||||
IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" />
|
||||
<u:TimePickerPresenter Grid.Column="1"
|
||||
<u:TimePickerPresenter
|
||||
Grid.Column="1"
|
||||
Name="{x:Static u:DateTimePicker.PART_TimePicker}"
|
||||
FontSize="{DynamicResource DefaultFontSize}"
|
||||
NeedsConfirmation="{TemplateBinding NeedConfirmation}"
|
||||
|
||||
@@ -80,8 +80,7 @@
|
||||
<ControlTemplate TargetType="u:FormItem">
|
||||
<Grid RowDefinitions="*, *">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"
|
||||
SharedSizeGroup="Label" />
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="Label" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
CornerRadius="{TemplateBinding CornerRadius}">
|
||||
<Panel VerticalAlignment="Stretch" Margin="{TemplateBinding Padding}">
|
||||
<Grid ColumnDefinitions="Auto, *, Auto">
|
||||
<ContentPresenter Grid.Column="0"
|
||||
<ContentPresenter
|
||||
Grid.Column="0"
|
||||
Content="{TemplateBinding InnerLeftContent}"
|
||||
Padding="{TemplateBinding Padding, Converter={iri:ThicknessMixerConverter Right}}"
|
||||
DockPanel.Dock="Left"
|
||||
@@ -49,9 +50,9 @@
|
||||
Grid.Column="1"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
Text="{TemplateBinding Gesture,
|
||||
Converter={StaticResource KeyGestureConverter}}" />
|
||||
<Button Grid.Column="1"
|
||||
Text="{TemplateBinding Gesture,Converter={StaticResource KeyGestureConverter}}" />
|
||||
<Button
|
||||
Grid.Column="1"
|
||||
Name="PART_ClearButton"
|
||||
HorizontalAlignment="Right"
|
||||
Command="{Binding $parent[u:KeyGestureInput].Clear}"
|
||||
|
||||
@@ -45,13 +45,9 @@
|
||||
<Setter Property="Grid.IsSharedSizeScope" Value="False" />
|
||||
</Style>
|
||||
<Style Selector="^.enable_animation">
|
||||
<Setter Property="u:SizeAnimationHelper.TriggerAvaloniaProperty"
|
||||
Value="{x:Static u:NavMenu.IsHorizontalCollapsedProperty}">
|
||||
</Setter>
|
||||
<Setter Property="u:SizeAnimationHelper.CreateAnimation"
|
||||
Value="{DynamicResource NavMenuWidthAnimationGenerator}">
|
||||
</Setter>
|
||||
<Setter Property="u:SizeAnimationHelper.EnableWHAnimation" Value="True"></Setter>
|
||||
<Setter Property="u:SizeAnimationHelper.TriggerAvaloniaProperty" Value="{x:Static u:NavMenu.IsHorizontalCollapsedProperty}" />
|
||||
<Setter Property="u:SizeAnimationHelper.CreateAnimation" Value="{DynamicResource NavMenuWidthAnimationGenerator}" />
|
||||
<Setter Property="u:SizeAnimationHelper.EnableWHAnimation" Value="True" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
|
||||
|
||||
@@ -153,8 +153,7 @@
|
||||
Name="{x:Static iri:PartNames.PART_Popup}"
|
||||
Grid.Column="0"
|
||||
IsLightDismissEnabled="True"
|
||||
IsOpen="{TemplateBinding IsDropdownOpen,
|
||||
Mode=TwoWay}"
|
||||
IsOpen="{TemplateBinding IsDropdownOpen,Mode=TwoWay}"
|
||||
Placement="BottomEdgeAlignedLeft"
|
||||
PlacementTarget="Background">
|
||||
<Border
|
||||
@@ -178,15 +177,13 @@
|
||||
Margin="8,8,8,0"
|
||||
Content="{TemplateBinding PopupInnerTopContent}"
|
||||
DockPanel.Dock="Top"
|
||||
IsVisible="{TemplateBinding PopupInnerTopContent,
|
||||
Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
IsVisible="{TemplateBinding PopupInnerTopContent,Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<ContentPresenter
|
||||
Name="PART_PopupFooter"
|
||||
Margin="8,0,8,8"
|
||||
Content="{TemplateBinding PopupInnerBottomContent}"
|
||||
DockPanel.Dock="Bottom"
|
||||
IsVisible="{TemplateBinding PopupInnerBottomContent,
|
||||
Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
IsVisible="{TemplateBinding PopupInnerBottomContent,Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<u:TimePickerPresenter
|
||||
Name="{x:Static u:TimePicker.PART_Presenter}"
|
||||
NeedsConfirmation="{TemplateBinding NeedConfirmation}"
|
||||
|
||||
@@ -138,8 +138,7 @@
|
||||
Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
NeedsConfirmation="{TemplateBinding NeedConfirmation}"
|
||||
PanelFormat="{TemplateBinding PanelFormat}"
|
||||
/>
|
||||
PanelFormat="{TemplateBinding PanelFormat}" />
|
||||
<Rectangle
|
||||
Grid.Row="2"
|
||||
Grid.Column="1"
|
||||
@@ -152,8 +151,7 @@
|
||||
Grid.Row="2"
|
||||
Grid.Column="2"
|
||||
NeedsConfirmation="{TemplateBinding NeedConfirmation}"
|
||||
PanelFormat="{TemplateBinding PanelFormat}"
|
||||
/>
|
||||
PanelFormat="{TemplateBinding PanelFormat}" />
|
||||
</Grid>
|
||||
</DockPanel>
|
||||
</Border>
|
||||
|
||||
Reference in New Issue
Block a user