misc: formatted codes of controls XAML.
This commit is contained in:
@@ -88,4 +88,4 @@
|
||||
</Style>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -60,4 +60,4 @@
|
||||
</Style>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -93,4 +93,4 @@
|
||||
</Style>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -204,14 +204,14 @@
|
||||
Classes="Tertiary"
|
||||
Grid.Column="0"
|
||||
Icon="{DynamicResource CalendarViewFastForwardGlyph}"
|
||||
Theme="{DynamicResource BorderlessIconButton}"/>
|
||||
Theme="{DynamicResource BorderlessIconButton}" />
|
||||
|
||||
<u:IconButton
|
||||
Name="{x:Static u:CalendarView.PART_PreviousButton}"
|
||||
Grid.Column="1"
|
||||
Classes="Tertiary"
|
||||
Icon="{DynamicResource CalendarItemPreviousIconGlyph}"
|
||||
Theme="{DynamicResource BorderlessIconButton}"/>
|
||||
Theme="{DynamicResource BorderlessIconButton}" />
|
||||
|
||||
<Grid Grid.Column="2" ColumnDefinitions="*, *">
|
||||
<Button
|
||||
@@ -239,13 +239,13 @@
|
||||
Grid.Column="3"
|
||||
Classes="Tertiary"
|
||||
Icon="{DynamicResource CalendarItemNextIconGlyph}"
|
||||
Theme="{DynamicResource BorderlessIconButton}"/>
|
||||
Theme="{DynamicResource BorderlessIconButton}" />
|
||||
<u:IconButton
|
||||
Name="{x:Static u:CalendarView.PART_FastNextButton}"
|
||||
Grid.Column="4"
|
||||
Classes="Tertiary"
|
||||
Icon="{DynamicResource CalendarViewFastBackwardGlyph}"
|
||||
Theme="{DynamicResource BorderlessIconButton}"/>
|
||||
Theme="{DynamicResource BorderlessIconButton}" />
|
||||
</Grid>
|
||||
<Grid
|
||||
Name="{x:Static u:CalendarView.PART_MonthGrid}"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:u="https://irihi.tech/ursa"
|
||||
xmlns:converters="clr-namespace:Ursa.Themes.Semi.Converters">
|
||||
<ControlTheme x:Key="{x:Type u:Clock}" TargetType="u:Clock">
|
||||
<Setter Property="HandBrush" Value="{DynamicResource ClockHandBrush}"/>
|
||||
<Setter Property="HandBrush" Value="{DynamicResource ClockHandBrush}" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="u:Clock">
|
||||
<Grid>
|
||||
@@ -57,4 +57,4 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -23,4 +23,4 @@
|
||||
</Setter>
|
||||
-->
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -95,7 +95,7 @@
|
||||
</DataValidationErrors>
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
|
||||
|
||||
<Style Selector="^.clearButton, ^.ClearButton">
|
||||
<Style Selector="^:pointerover /template/ Button#ClearButton">
|
||||
<Setter Property="IsVisible" Value="{Binding $parent[u:DatePicker].SelectedDate, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
@@ -131,4 +131,4 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource CalendarDatePickerFocusBorderBrush}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -170,4 +170,4 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource CalendarDatePickerFocusBorderBrush}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -88,11 +88,12 @@
|
||||
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}"
|
||||
PanelFormat="{TemplateBinding PanelFormat}"/>
|
||||
PanelFormat="{TemplateBinding PanelFormat}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</Popup>
|
||||
@@ -102,7 +103,7 @@
|
||||
</DataValidationErrors>
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
|
||||
|
||||
<Style Selector="^.clearButton, ^.ClearButton">
|
||||
<Style Selector="^:pointerover /template/ Button#ClearButton">
|
||||
<Setter Property="IsVisible" Value="{Binding $parent[u:DateTimePicker].SelectedDate, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
@@ -138,4 +139,4 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource CalendarDatePickerFocusBorderBrush}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -17,8 +17,8 @@
|
||||
<TransformOperationsTransition Property="RenderTransform" Duration="0.2" />
|
||||
</Transitions>
|
||||
</Setter>
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="RenderTransform" Value="scale(1.0)" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="u:CustomDialogControl">
|
||||
@@ -134,8 +134,8 @@
|
||||
<Setter Property="MinWidth" Value="{DynamicResource DialogMinWidth}" />
|
||||
<Setter Property="MinHeight" Value="{DynamicResource DialogMinHeight}" />
|
||||
<Setter Property="CornerRadius" Value="{DynamicResource DialogCornerRadius}" />
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="Transitions">
|
||||
<Transitions>
|
||||
<TransformOperationsTransition Property="RenderTransform" Duration="0.2" />
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
<ControlTemplate TargetType="u:DisableContainer">
|
||||
<Panel>
|
||||
<ContentPresenter Content="{TemplateBinding Content}" />
|
||||
<iri:PureRectangle Background="Transparent" IsVisible="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.IsEnabled, Converter={x:Static BoolConverters.Not}}" Cursor="No" ToolTip.Tip="{TemplateBinding DisabledTip}"/>
|
||||
<iri:PureRectangle Background="Transparent" IsVisible="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.IsEnabled, Converter={x:Static BoolConverters.Not}}" Cursor="No" ToolTip.Tip="{TemplateBinding DisabledTip}" />
|
||||
</Panel>
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -41,7 +41,7 @@
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||
Margin="{DynamicResource ThicknessDividerTextMargin}"
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/>
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<Rectangle Grid.Column="2" Theme="{StaticResource DividerRightLine}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
@@ -62,7 +62,7 @@
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||
Margin="{DynamicResource ThicknessDividerTextMargin}"
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/>
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<Rectangle Grid.Column="2" Theme="{StaticResource DividerRightLine}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
@@ -83,7 +83,7 @@
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||
Margin="{DynamicResource ThicknessDividerTextMargin}"
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/>
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<Rectangle Grid.Column="2" Theme="{StaticResource DividerRightLine}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
@@ -104,7 +104,7 @@
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||
Margin="{DynamicResource ThicknessDividerTextMargin}"
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}"/>
|
||||
IsVisible="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<Rectangle Grid.Column="2" Theme="{StaticResource DividerRightLine}" />
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="MinWidth" Value="96" />
|
||||
<Setter Property="MinHeight" Value="96" />
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="Padding" Value="{DynamicResource DrawerMargin}" />
|
||||
<Setter Property="BorderThickness" Value="{DynamicResource DrawerBorderThickness}" />
|
||||
<Setter Property="CornerRadius" Value="{DynamicResource DrawerCornerRadius}" />
|
||||
@@ -105,8 +105,8 @@
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="MinWidth" Value="96" />
|
||||
<Setter Property="MinHeight" Value="96" />
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
||||
<Setter Property="Padding" Value="{DynamicResource DrawerMargin}" />
|
||||
<Setter Property="BorderThickness" Value="{DynamicResource DrawerBorderThickness}" />
|
||||
<Setter Property="CornerRadius" Value="{DynamicResource DrawerCornerRadius}" />
|
||||
@@ -238,4 +238,4 @@
|
||||
<Setter Property="ResizeDirection" Value="Left" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -32,4 +32,4 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -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
|
||||
@@ -98,7 +97,7 @@
|
||||
Name="PART_Label"
|
||||
Content="{TemplateBinding Label}"
|
||||
Background="Transparent"
|
||||
FontWeight="{DynamicResource TextBlockTitleFontWeight}"/>
|
||||
FontWeight="{DynamicResource TextBlockTitleFontWeight}" />
|
||||
<TextBlock
|
||||
Foreground="{DynamicResource FormAsteriskForeground}"
|
||||
IsVisible="{TemplateBinding IsRequired}"
|
||||
|
||||
@@ -129,4 +129,4 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxDisabledBorderBrush}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -28,4 +28,4 @@
|
||||
<Setter Property="Cursor" Value="Hand" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -25,8 +25,9 @@
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
CornerRadius="{TemplateBinding CornerRadius}">
|
||||
<Panel VerticalAlignment="Stretch" Margin="{TemplateBinding Padding}">
|
||||
<Grid ColumnDefinitions="Auto, *, Auto" >
|
||||
<ContentPresenter Grid.Column="0"
|
||||
<Grid ColumnDefinitions="Auto, *, Auto">
|
||||
<ContentPresenter
|
||||
Grid.Column="0"
|
||||
Content="{TemplateBinding InnerLeftContent}"
|
||||
Padding="{TemplateBinding Padding, Converter={iri:ThicknessMixerConverter Right}}"
|
||||
DockPanel.Dock="Left"
|
||||
@@ -34,7 +35,7 @@
|
||||
VerticalContentAlignment="Center"
|
||||
Foreground="{DynamicResource TextBoxInnerForeground}"
|
||||
IsVisible="{Binding Path=InnerLeftContent, RelativeSource={RelativeSource TemplatedParent},
|
||||
Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<ContentPresenter
|
||||
Grid.Column="2"
|
||||
Content="{TemplateBinding InnerRightContent}"
|
||||
@@ -44,14 +45,14 @@
|
||||
VerticalContentAlignment="Center"
|
||||
Foreground="{DynamicResource TextBoxInnerForeground}"
|
||||
IsVisible="{Binding Path=InnerRightContent, RelativeSource={RelativeSource TemplatedParent},
|
||||
Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
<SelectableTextBlock
|
||||
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}"
|
||||
@@ -87,4 +88,4 @@
|
||||
</Style>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -6,7 +6,7 @@
|
||||
xmlns:converters="clr-namespace:Ursa.Themes.Semi.Converters">
|
||||
<Design.PreviewWith>
|
||||
<StackPanel Margin="20">
|
||||
<u:LoadingIcon Classes="Large"/>
|
||||
<u:LoadingIcon Classes="Large" />
|
||||
</StackPanel>
|
||||
</Design.PreviewWith>
|
||||
<converters:BrushToColorConverter x:Key="BrushToColorConverter" />
|
||||
@@ -127,4 +127,4 @@
|
||||
<Setter Property="Effect" Value="blur(5)" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -22,4 +22,4 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -179,7 +179,7 @@
|
||||
<Setter Property="Foreground" Value="{DynamicResource ComboBoxIconPressedForeground}" />
|
||||
</Style>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style Selector="^:focus">
|
||||
<Setter Property="Background" Value="{DynamicResource ComboBoxSelectorFocusBackground}" />
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxSelectorFocusBorderBrush}" />
|
||||
@@ -301,4 +301,4 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -222,4 +222,4 @@
|
||||
<Setter Property="Background" Value="{DynamicResource ButtonDefaultPressedBackground}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -33,4 +33,4 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -39,7 +39,7 @@
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
Background="Transparent"
|
||||
Cursor="SizeAll"/>
|
||||
Cursor="SizeAll" />
|
||||
<Button
|
||||
Name="PART_ClearButton"
|
||||
Margin="0,0,8,0"
|
||||
@@ -63,7 +63,7 @@
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</Style>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style Selector="^.Large">
|
||||
<Setter Property="MinHeight" Value="{DynamicResource NumericUpDownLargeHeight}" />
|
||||
</Style>
|
||||
@@ -71,4 +71,4 @@
|
||||
<Setter Property="MinHeight" Value="{DynamicResource NumericUpDownSmallHeight}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -86,4 +86,4 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -209,7 +209,7 @@
|
||||
<Style Selector="^:error /template/ Thumb#thumb">
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource DataValidationErrorsSelectedBorderBrush}" />
|
||||
</Style>
|
||||
|
||||
|
||||
<Style Selector="^:disabled">
|
||||
<Style Selector="^ /template/ Border#PART_InnerSection">
|
||||
<Setter Property="Background" Value="{DynamicResource SliderTrackDisabledForeground}" />
|
||||
@@ -224,4 +224,4 @@
|
||||
</Style>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -142,4 +142,4 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -40,8 +40,8 @@
|
||||
<Setter Property="RenderTransform" Value="rotate(270deg)" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
|
||||
|
||||
|
||||
|
||||
<ControlTheme x:Key="PrimaryScrollToButton" TargetType="u:ScrollToButton">
|
||||
<Setter Property="HorizontalAlignment" Value="Right" />
|
||||
<Setter Property="VerticalAlignment" Value="Bottom" />
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<ControlTheme x:Key="{x:Type u:SelectionListItem}" TargetType="u:SelectionListItem">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
<Setter Property="Padding" Value="8" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="u:SelectionListItem">
|
||||
@@ -58,4 +58,4 @@
|
||||
<Setter Property="FontWeight" Value="{DynamicResource TextBlockTitleFontWeight}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -35,4 +35,4 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:u="https://irihi.tech/ursa">
|
||||
<Design.PreviewWith>
|
||||
<u:ClosableTag Content="Closable Tag"/>
|
||||
<u:ClosableTag Content="Closable Tag" />
|
||||
</Design.PreviewWith>
|
||||
<ControlTheme x:Key="{x:Type u:TagInput}" TargetType="u:TagInput">
|
||||
<Setter Property="InputTheme" Value="{DynamicResource TagInputTextBoxTheme}" />
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxDefaultBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="{DynamicResource TextBoxBorderThickness}" />
|
||||
<Setter Property="CornerRadius" Value="{DynamicResource TextBoxDefaultCornerRadius}" />
|
||||
<Setter Property="MinHeight" Value="32"/>
|
||||
<Setter Property="MinHeight" Value="32" />
|
||||
<Setter Property="Template">
|
||||
<ControlTemplate TargetType="u:TimePicker">
|
||||
<DataValidationErrors>
|
||||
@@ -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,19 +177,17 @@
|
||||
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}"
|
||||
PanelFormat="{TemplateBinding PanelFormat}"/>
|
||||
PanelFormat="{TemplateBinding PanelFormat}" />
|
||||
</DockPanel>
|
||||
</Border>
|
||||
</Popup>
|
||||
@@ -205,7 +202,7 @@
|
||||
<Setter Property="IsVisible" Value="{Binding $parent[u:TimePicker].SelectedTime, Converter={x:Static ObjectConverters.IsNotNull}}" />
|
||||
</Style>
|
||||
<Style Selector="^:pointerover /template/ Button#PART_Button">
|
||||
<Setter Property="IsVisible" Value="{Binding $parent[u:TimePicker].SelectedTime, Converter={x:Static ObjectConverters.IsNull}}"/>
|
||||
<Setter Property="IsVisible" Value="{Binding $parent[u:TimePicker].SelectedTime, Converter={x:Static ObjectConverters.IsNull}}" />
|
||||
</Style>
|
||||
</Style>
|
||||
|
||||
@@ -238,4 +235,4 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource CalendarDatePickerFocusBorderBrush}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -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>
|
||||
@@ -192,4 +190,4 @@
|
||||
<Setter Property="BorderBrush" Value="{DynamicResource CalendarDatePickerFocusBorderBrush}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -87,7 +87,7 @@
|
||||
VerticalAlignment="Top"
|
||||
Content="{TemplateBinding Content}"
|
||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||
TextElement.FontSize="12"/>
|
||||
TextElement.FontSize="12" />
|
||||
<TextBlock
|
||||
Name="{x:Static u:TimelineItem.PART_Time}"
|
||||
Grid.Row="0"
|
||||
@@ -110,28 +110,28 @@
|
||||
<Setter Property="Fill" Value="Transparent" />
|
||||
</Style>
|
||||
<Style Selector="^ /template/ TextBlock#PART_Time">
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextBlockTertiaryForeground}"/>
|
||||
<Setter Property="Foreground" Value="{DynamicResource TextBlockTertiaryForeground}" />
|
||||
</Style>
|
||||
<Style Selector="^ /template/ ContentPresenter#PART_Content">
|
||||
<Setter Property="TextElement.Foreground" Value="{DynamicResource TextBlockTertiaryForeground}"/>
|
||||
<Setter Property="TextElement.Foreground" Value="{DynamicResource TextBlockTertiaryForeground}" />
|
||||
</Style>
|
||||
<Style Selector="^:empty-icon /template/ Ellipse#PART_DefaultIcon">
|
||||
<Setter Property="IsVisible" Value="True"/>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</Style>
|
||||
<Style Selector="^:empty-icon[Type=Default] /template/ Ellipse#PART_DefaultIcon">
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiGrey6}"/>
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiGrey6}" />
|
||||
</Style>
|
||||
<Style Selector="^:empty-icon[Type=Error] /template/ Ellipse#PART_DefaultIcon">
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiRed6}"/>
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiRed6}" />
|
||||
</Style>
|
||||
<Style Selector="^:empty-icon[Type=Ongoing] /template/ Ellipse#PART_DefaultIcon">
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiBlue6}"/>
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiBlue6}" />
|
||||
</Style>
|
||||
<Style Selector="^:empty-icon[Type=Success] /template/ Ellipse#PART_DefaultIcon">
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiGreen6}"/>
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiGreen6}" />
|
||||
</Style>
|
||||
<Style Selector="^:empty-icon[Type=Warning] /template/ Ellipse#PART_DefaultIcon">
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiOrange6}"/>
|
||||
<Setter Property="Fill" Value="{DynamicResource SemiOrange6}" />
|
||||
</Style>
|
||||
<Style Selector="^:all-left">
|
||||
<Style Selector="^ /template/ ContentPresenter#PART_Header">
|
||||
@@ -197,4 +197,4 @@
|
||||
</Style>
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -25,9 +25,9 @@
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
<ControlTheme x:Key="{x:Type u:ToolBar}" TargetType="u:ToolBar">
|
||||
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Left" />
|
||||
<Setter Property="VerticalAlignment" Value="Top" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="ItemsPanel">
|
||||
<ItemsPanelTemplate>
|
||||
<u:ToolBarPanel />
|
||||
@@ -136,4 +136,4 @@
|
||||
<Setter Property="VerticalAlignment" Value="Center" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -316,4 +316,4 @@
|
||||
<Setter Property="IsHitTestVisible" Value="False" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -34,4 +34,4 @@
|
||||
<Setter Property="Stroke" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActiveStrokeBrush}" />
|
||||
</Style>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -43,4 +43,4 @@
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
</ControlTheme>
|
||||
</ResourceDictionary>
|
||||
</ResourceDictionary>
|
||||
@@ -13,7 +13,7 @@
|
||||
<Setter Property="u:OverlayDialogHost.IsModalStatusScope" Value="True" />
|
||||
<Setter Property="IsMinimizeButtonVisible" Value="{OnPlatform {x:True},macOS={x:False}}" />
|
||||
<Setter Property="IsRestoreButtonVisible" Value="{OnPlatform {x:True},macOS={x:False}}" />
|
||||
<Setter Property="IsCloseButtonVisible" Value="{OnPlatform {x:True},macOS={x:False}}"/>
|
||||
<Setter Property="IsCloseButtonVisible" Value="{OnPlatform {x:True},macOS={x:False}}" />
|
||||
<Setter Property="SystemDecorations">
|
||||
<OnPlatform>
|
||||
<On Options="Default">
|
||||
@@ -47,9 +47,9 @@
|
||||
RightContent="{Binding $parent[u:UrsaWindow].RightContent}" />
|
||||
<VisualLayerManager>
|
||||
<Panel>
|
||||
<u:OverlayDialogHost
|
||||
Name="{x:Static u:UrsaWindow.PART_DialogHost}"
|
||||
IsModalStatusReporter="True"
|
||||
<u:OverlayDialogHost
|
||||
Name="{x:Static u:UrsaWindow.PART_DialogHost}"
|
||||
IsModalStatusReporter="True"
|
||||
IsTopLevel="True" />
|
||||
<u:WindowResizer
|
||||
HorizontalAlignment="Stretch"
|
||||
|
||||
Reference in New Issue
Block a user