commit
dcb97ec368
@ -1,6 +1,6 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AvaloniaVersion>11.1.3</AvaloniaVersion>
|
<AvaloniaVersion>11.2.0</AvaloniaVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<StackPanel Spacing="20">
|
<StackPanel Spacing="20">
|
||||||
<TimePicker />
|
<TimePicker />
|
||||||
|
<TimePicker UseSeconds="True" />
|
||||||
<TimePicker Classes="ClearButton" />
|
<TimePicker Classes="ClearButton" />
|
||||||
<TimePicker MinuteIncrement="15" />
|
<TimePicker MinuteIncrement="15" />
|
||||||
<TimePicker ClockIdentifier="24HourClock" />
|
<TimePicker ClockIdentifier="24HourClock" />
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
<TargetFrameworks>net6.0;net8.0;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net6.0;net8.0;netstandard2.0</TargetFrameworks>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Version>11.1.0.5-beta1</Version>
|
<Version>11.2.0.0</Version>
|
||||||
<Authors>IRIHI Technology Co., Ltd.</Authors>
|
<Authors>IRIHI Technology Co., Ltd.</Authors>
|
||||||
<Description>Avalonia Theme inspired by Semi Design.</Description>
|
<Description>Avalonia Theme inspired by Semi Design.</Description>
|
||||||
<RepositoryUrl>https://github.com/irihitech/Semi.Avalonia</RepositoryUrl>
|
<RepositoryUrl>https://github.com/irihitech/Semi.Avalonia</RepositoryUrl>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageIcon>irihi.png</PackageIcon>
|
<PackageIcon>irihi.png</PackageIcon>
|
||||||
<PackageProjectUrl>https://github.com/irihitech/Semi.Avalonia</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/irihitech/Semi.Avalonia</PackageProjectUrl>
|
||||||
<AvaloniaVersion>11.1.0</AvaloniaVersion>
|
<AvaloniaVersion>11.2.0</AvaloniaVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
|
BringIntoViewOnFocusChange="True"
|
||||||
HorizontalScrollBarVisibility="Hidden"
|
HorizontalScrollBarVisibility="Hidden"
|
||||||
VerticalScrollBarVisibility="Hidden">
|
VerticalScrollBarVisibility="Hidden">
|
||||||
<ItemsPresenter
|
<ItemsPresenter
|
||||||
@ -65,8 +66,7 @@
|
|||||||
Name="Container"
|
Name="Container"
|
||||||
Width="{DynamicResource CarouselIndicatorLineWidth}"
|
Width="{DynamicResource CarouselIndicatorLineWidth}"
|
||||||
Height="{DynamicResource CarouselIndicatorLineHeight}"
|
Height="{DynamicResource CarouselIndicatorLineHeight}"
|
||||||
Background="{TemplateBinding Background}">
|
Background="{TemplateBinding Background}" />
|
||||||
</Border>
|
|
||||||
</Border>
|
</Border>
|
||||||
</Panel>
|
</Panel>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
@ -89,8 +89,7 @@
|
|||||||
<ControlTemplate TargetType="ListBoxItem">
|
<ControlTemplate TargetType="ListBoxItem">
|
||||||
<Panel Background="Transparent">
|
<Panel Background="Transparent">
|
||||||
<Border Padding="2,0" Background="Transparent">
|
<Border Padding="2,0" Background="Transparent">
|
||||||
<Border Width="{DynamicResource CarouselIndicatorColumnarWidth}"
|
<Border Width="{DynamicResource CarouselIndicatorColumnarWidth}" Height="{DynamicResource CarouselIndicatorColumnarSelectedHeight}">
|
||||||
Height="{DynamicResource CarouselIndicatorColumnarSelectedHeight}">
|
|
||||||
<Rectangle
|
<Rectangle
|
||||||
Name="Container"
|
Name="Container"
|
||||||
Width="{DynamicResource CarouselIndicatorColumnarWidth}"
|
Width="{DynamicResource CarouselIndicatorColumnarWidth}"
|
||||||
@ -99,7 +98,7 @@
|
|||||||
Fill="{TemplateBinding Background}">
|
Fill="{TemplateBinding Background}">
|
||||||
<Rectangle.Transitions>
|
<Rectangle.Transitions>
|
||||||
<Transitions>
|
<Transitions>
|
||||||
<DoubleTransition Property="Height" Duration="0:0:0.2"></DoubleTransition>
|
<DoubleTransition Property="Height" Duration="0:0:0.2" />
|
||||||
</Transitions>
|
</Transitions>
|
||||||
</Rectangle.Transitions>
|
</Rectangle.Transitions>
|
||||||
</Rectangle>
|
</Rectangle>
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<Setter Property="ContextMenu.MaxWidth" Value="{DynamicResource MenuFlyoutMaxWidth}" />
|
<Setter Property="ContextMenu.MaxWidth" Value="{DynamicResource MenuFlyoutMaxWidth}" />
|
||||||
<Setter Property="ContextMenu.MinHeight" Value="{DynamicResource MenuFlyoutMinHeight}" />
|
<Setter Property="ContextMenu.MinHeight" Value="{DynamicResource MenuFlyoutMinHeight}" />
|
||||||
<Setter Property="ContextMenu.Padding" Value="{DynamicResource MenuFlyoutPadding}" />
|
<Setter Property="ContextMenu.Padding" Value="{DynamicResource MenuFlyoutPadding}" />
|
||||||
|
<Setter Property="Focusable" Value="True"></Setter>
|
||||||
<Setter Property="ContextMenu.HorizontalAlignment" Value="Stretch" />
|
<Setter Property="ContextMenu.HorizontalAlignment" Value="Stretch" />
|
||||||
<Setter Property="TextBlock.FontWeight" Value="Normal" />
|
<Setter Property="TextBlock.FontWeight" Value="Normal" />
|
||||||
<Setter Property="ContextMenu.WindowManagerAddShadowHint" Value="False" />
|
<Setter Property="ContextMenu.WindowManagerAddShadowHint" Value="False" />
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
<MenuFlyout x:Key="SelectableTextBlockContextFlyout" Placement="Bottom">
|
<MenuFlyout x:Key="SelectableTextBlockContextFlyout" Placement="Bottom">
|
||||||
<MenuItem
|
<MenuItem
|
||||||
x:Name="SelectableTextBlockContextFlyoutCopyItem"
|
|
||||||
Command="{Binding $parent[SelectableTextBlock].Copy}"
|
Command="{Binding $parent[SelectableTextBlock].Copy}"
|
||||||
Header="{DynamicResource STRING_MENU_COPY}"
|
Header="{DynamicResource STRING_MENU_COPY}"
|
||||||
InputGesture="{x:Static TextBox.CopyGesture}"
|
InputGesture="{x:Static TextBox.CopyGesture}"
|
||||||
|
@ -4,19 +4,16 @@
|
|||||||
x:CompileBindings="True">
|
x:CompileBindings="True">
|
||||||
<MenuFlyout x:Key="DefaultTextBoxContextFlyout" Placement="Bottom">
|
<MenuFlyout x:Key="DefaultTextBoxContextFlyout" Placement="Bottom">
|
||||||
<MenuItem
|
<MenuItem
|
||||||
x:Name="TextBoxContextFlyoutCutItem"
|
|
||||||
Command="{Binding $parent[TextBox].Cut}"
|
Command="{Binding $parent[TextBox].Cut}"
|
||||||
Header="{DynamicResource STRING_MENU_CUT}"
|
Header="{DynamicResource STRING_MENU_CUT}"
|
||||||
InputGesture="{x:Static TextBox.CutGesture}"
|
InputGesture="{x:Static TextBox.CutGesture}"
|
||||||
IsEnabled="{Binding $parent[TextBox].CanCut}" />
|
IsEnabled="{Binding $parent[TextBox].CanCut}" />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
x:Name="TextBoxContextFlyoutCopyItem"
|
|
||||||
Command="{Binding $parent[TextBox].Copy}"
|
Command="{Binding $parent[TextBox].Copy}"
|
||||||
Header="{DynamicResource STRING_MENU_COPY}"
|
Header="{DynamicResource STRING_MENU_COPY}"
|
||||||
InputGesture="{x:Static TextBox.CopyGesture}"
|
InputGesture="{x:Static TextBox.CopyGesture}"
|
||||||
IsEnabled="{Binding $parent[TextBox].CanCopy}" />
|
IsEnabled="{Binding $parent[TextBox].CanCopy}" />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
x:Name="TextBoxContextFlyoutPasteItem"
|
|
||||||
Command="{Binding $parent[TextBox].Paste}"
|
Command="{Binding $parent[TextBox].Paste}"
|
||||||
Header="{DynamicResource STRING_MENU_PASTE}"
|
Header="{DynamicResource STRING_MENU_PASTE}"
|
||||||
InputGesture="{x:Static TextBox.PasteGesture}"
|
InputGesture="{x:Static TextBox.PasteGesture}"
|
||||||
|
@ -54,8 +54,20 @@
|
|||||||
<RepeatButton Name="PART_MinuteUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
<RepeatButton Name="PART_MinuteUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
<RepeatButton Name="PART_MinuteDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
<RepeatButton Name="PART_MinuteDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
|
<Panel Name="PART_SecondHost" Grid.Column="4">
|
||||||
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
|
<DateTimePickerPanel
|
||||||
|
Name="PART_SecondSelector"
|
||||||
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
|
PanelType="Second"
|
||||||
|
ShouldLoop="True" />
|
||||||
|
</ScrollViewer>
|
||||||
|
<RepeatButton Name="PART_SecondUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
|
<RepeatButton Name="PART_SecondDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
|
</Panel>
|
||||||
|
|
||||||
<Panel Name="PART_PeriodHost" Grid.Column="4">
|
<Panel Name="PART_PeriodHost" Grid.Column="6">
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
<DateTimePickerPanel
|
<DateTimePickerPanel
|
||||||
Name="PART_PeriodSelector"
|
Name="PART_PeriodSelector"
|
||||||
@ -81,6 +93,13 @@
|
|||||||
Margin="0,4"
|
Margin="0,4"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
<Rectangle
|
||||||
|
Name="PART_ThirdSpacer"
|
||||||
|
Grid.Column="5"
|
||||||
|
Width="1"
|
||||||
|
Margin="0,4"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
@ -216,6 +235,29 @@
|
|||||||
Grid.Column="4"
|
Grid.Column="4"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch">
|
VerticalAlignment="Stretch">
|
||||||
|
<TextBlock
|
||||||
|
x:Name="PART_SecondTextBlock"
|
||||||
|
Padding="12,0"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
FontFamily="{TemplateBinding FontFamily}"
|
||||||
|
FontSize="{TemplateBinding FontSize}"
|
||||||
|
FontWeight="{TemplateBinding FontWeight}"
|
||||||
|
Text="{DynamicResource STRING_TIMEPICKER_SECOND_TEXT}"/>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<Rectangle
|
||||||
|
Name="PART_ThirdColumnDivider"
|
||||||
|
Grid.Column="5"
|
||||||
|
Width="1"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
|
||||||
|
<Border
|
||||||
|
x:Name="PART_FourthPickerHost"
|
||||||
|
Grid.Column="6"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
VerticalAlignment="Stretch">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="PART_PeriodTextBlock"
|
x:Name="PART_PeriodTextBlock"
|
||||||
Padding="12,0"
|
Padding="12,0"
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
<!-- TimePicker -->
|
<!-- TimePicker -->
|
||||||
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">hour</x:String>
|
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">hour</x:String>
|
||||||
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">minute</x:String>
|
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">minute</x:String>
|
||||||
<!-- TextBox/SelectableTextBox flyout -->
|
<x:String x:Key="STRING_TIMEPICKER_SECOND_TEXT">second</x:String>
|
||||||
|
<!-- TextBox/SelectableTextBox flyout -->
|
||||||
<x:String x:Key="STRING_MENU_CUT">Cut</x:String>
|
<x:String x:Key="STRING_MENU_CUT">Cut</x:String>
|
||||||
<x:String x:Key="STRING_MENU_COPY">Copy</x:String>
|
<x:String x:Key="STRING_MENU_COPY">Copy</x:String>
|
||||||
<x:String x:Key="STRING_MENU_PASTE">Paste</x:String>
|
<x:String x:Key="STRING_MENU_PASTE">Paste</x:String>
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
<!-- TimePicker -->
|
<!-- TimePicker -->
|
||||||
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">時</x:String>
|
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">時</x:String>
|
||||||
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">分</x:String>
|
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">分</x:String>
|
||||||
|
<x:String x:Key="STRING_TIMEPICKER_SECOND_TEXT">秒</x:String>
|
||||||
<!-- TextBox/SelectableTextBox flyout -->
|
<!-- TextBox/SelectableTextBox flyout -->
|
||||||
<x:String x:Key="STRING_MENU_CUT">切り取り</x:String>
|
<x:String x:Key="STRING_MENU_CUT">切り取り</x:String>
|
||||||
<x:String x:Key="STRING_MENU_COPY">コピー</x:String>
|
<x:String x:Key="STRING_MENU_COPY">コピー</x:String>
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
<!-- TimePicker -->
|
<!-- TimePicker -->
|
||||||
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">时</x:String>
|
<x:String x:Key="STRING_TIMEPICKER_HOUR_TEXT">时</x:String>
|
||||||
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">分</x:String>
|
<x:String x:Key="STRING_TIMEPICKER_MINUTE_TEXT">分</x:String>
|
||||||
<!-- TextBox/SelectableTextBox flyout -->
|
<x:String x:Key="STRING_TIMEPICKER_SECOND_TEXT">秒</x:String>
|
||||||
|
<!-- TextBox/SelectableTextBox flyout -->
|
||||||
<x:String x:Key="STRING_MENU_CUT">剪切</x:String>
|
<x:String x:Key="STRING_MENU_CUT">剪切</x:String>
|
||||||
<x:String x:Key="STRING_MENU_COPY">复制</x:String>
|
<x:String x:Key="STRING_MENU_COPY">复制</x:String>
|
||||||
<x:String x:Key="STRING_MENU_PASTE">粘贴</x:String>
|
<x:String x:Key="STRING_MENU_PASTE">粘贴</x:String>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user