|
941 | 941 | <Setter.Value> |
942 | 942 | <ControlTemplate TargetType="{x:Type CalendarItem}"> |
943 | 943 | <Grid x:Name="PART_Root" Margin="12"> |
944 | | - <Grid KeyboardNavigation.TabNavigation="Cycle"> |
| 944 | + <Grid KeyboardNavigation.TabNavigation="Local"> |
945 | 945 | <Grid.RowDefinitions> |
946 | 946 | <RowDefinition Height="Auto" /> |
947 | 947 | <RowDefinition Height="*" /> |
948 | 948 | </Grid.RowDefinitions> |
949 | 949 | <!-- HINT: Header with title and navigation buttons --> |
950 | | - <Grid Grid.Row="0" Margin="8,0,8,14"> |
| 950 | + <Grid Grid.Row="0" Margin="8,0,8,14" KeyboardNavigation.TabIndex="0"> |
951 | 951 | <Grid.ColumnDefinitions> |
952 | 952 | <ColumnDefinition Width="*" /> |
953 | 953 | <ColumnDefinition Width="Auto" /> |
954 | 954 | <ColumnDefinition Width="Auto" /> |
955 | 955 | </Grid.ColumnDefinitions> |
956 | | - <Button x:Name="PART_HeaderButton" Grid.Column="0" Margin="-6,0,0,0" Padding="6,2" HorizontalAlignment="Left" VerticalAlignment="Center" Background="Transparent" BorderBrush="Transparent" Focusable="True" FontSize="14" FontWeight="Bold" KeyboardNavigation.TabNavigation="Cycle" Foreground="{DynamicResource CalendarViewForeground}" /> |
957 | | - <Button x:Name="PART_PreviousButton" Grid.Column="1" Width="26" Height="26" Margin="0,0,8,0" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Center" Background="Transparent" BorderBrush="Transparent" Focusable="True" AutomationProperties.Name="Previous" KeyboardNavigation.TabNavigation="Cycle" Foreground="{DynamicResource CalendarViewButtonForeground}"> |
| 956 | + <Button x:Name="PART_HeaderButton" Grid.Column="0" Margin="-6,0,0,0" Padding="6,2" HorizontalAlignment="Left" VerticalAlignment="Center" Background="Transparent" BorderBrush="Transparent" Focusable="True" FontSize="14" FontWeight="Bold" Foreground="{DynamicResource CalendarViewForeground}" /> |
| 957 | + <Button x:Name="PART_PreviousButton" Grid.Column="1" Width="26" Height="26" Margin="0,0,8,0" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Center" Background="Transparent" BorderBrush="Transparent" Focusable="True" AutomationProperties.Name="Previous" Foreground="{DynamicResource CalendarViewButtonForeground}"> |
958 | 958 | <Button.Content> |
959 | 959 | <TextBlock FontSize="8" FontFamily="{DynamicResource SegoeFluentIcons}"></TextBlock> |
960 | 960 | </Button.Content> |
961 | 961 | </Button> |
962 | | - <Button x:Name="PART_NextButton" Grid.Column="2" Width="26" Height="26" Margin="0" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Center" Background="Transparent" BorderBrush="Transparent" Focusable="True" AutomationProperties.Name="Next" KeyboardNavigation.TabNavigation="Contained" Foreground="{DynamicResource CalendarViewButtonForeground}"> |
| 962 | + <Button x:Name="PART_NextButton" Grid.Column="2" Width="26" Height="26" Margin="0" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Center" Background="Transparent" BorderBrush="Transparent" Focusable="True" AutomationProperties.Name="Next" Foreground="{DynamicResource CalendarViewButtonForeground}"> |
963 | 963 | <Button.Content> |
964 | 964 | <TextBlock FontSize="8" FontFamily="{DynamicResource SegoeFluentIcons}"></TextBlock> |
965 | 965 | </Button.Content> |
966 | 966 | </Button> |
967 | 967 | </Grid> |
968 | 968 | <!-- HINT: Day picker --> |
969 | | - <Grid x:Name="PART_MonthView" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" KeyboardNavigation.TabNavigation="None" Visibility="Visible"> |
| 969 | + <Grid x:Name="PART_MonthView" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" KeyboardNavigation.TabNavigation="Once" KeyboardNavigation.TabIndex="1" Visibility="Visible"> |
970 | 970 | <Grid.ColumnDefinitions> |
971 | 971 | <ColumnDefinition Width="Auto" /> |
972 | 972 | <ColumnDefinition Width="Auto" /> |
|
986 | 986 | <RowDefinition Height="Auto" /> |
987 | 987 | </Grid.RowDefinitions> |
988 | 988 | </Grid> |
989 | | - <Border Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"> |
990 | | - <Grid x:Name="PART_YearView" Visibility="Hidden" KeyboardNavigation.TabNavigation="None"> |
| 989 | + <Border Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" KeyboardNavigation.TabNavigation="Once" KeyboardNavigation.TabIndex="1"> |
| 990 | + <Grid x:Name="PART_YearView" Visibility="Hidden"> |
991 | 991 | <Grid.ColumnDefinitions> |
992 | 992 | <ColumnDefinition Width="Auto" /> |
993 | 993 | <ColumnDefinition Width="Auto" /> |
|
1001 | 1001 | </Grid.RowDefinitions> |
1002 | 1002 | </Grid> |
1003 | 1003 | </Border> |
1004 | | - <Rectangle x:Name="PART_DisabledVisual" Grid.Row="0" Grid.RowSpan="2" Opacity="0" RadiusX="2" RadiusY="2" Stretch="Fill" Stroke="Transparent" StrokeThickness="0" Visibility="Collapsed"> |
| 1004 | + <Rectangle x:Name="PART_DisabledVisual" Grid.Row="0" Grid.RowSpan="2" Opacity="0" RadiusX="2" RadiusY="2" Stretch="Fill" Stroke="Transparent" StrokeThickness="0" Visibility="Collapsed" KeyboardNavigation.TabNavigation="Once" KeyboardNavigation.TabIndex="1"> |
1005 | 1005 | <Rectangle.Fill> |
1006 | 1006 | <SolidColorBrush Color="{DynamicResource ControlFillColorDefault}" /> |
1007 | 1007 | </Rectangle.Fill> |
|
0 commit comments