|
1 | 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
3 | 3 | xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf"
|
4 |
| - xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters"> |
| 4 | + xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters" |
| 5 | + xmlns:globalization="clr-namespace:System.Globalization;assembly=mscorlib"> |
5 | 6 | <Style x:Key="MaterialDesignCalendarButton" TargetType="{x:Type CalendarButton}">
|
6 | 7 | <Setter Property="MinWidth" Value="5"/>
|
7 | 8 | <Setter Property="MinHeight" Value="5"/>
|
|
363 | 364 | <Border Grid.ColumnSpan="3" Grid.Row="0" Background="{DynamicResource PrimaryHueDarkBrush}" CornerRadius="2 2 0 0">
|
364 | 365 | <TextBlock HorizontalAlignment="Center" Foreground="{DynamicResource PrimaryHueDarkForegroundBrush}" Margin="8" FontSize="14">
|
365 | 366 | <TextBlock.Text>
|
366 |
| - <MultiBinding Mode="OneWay" StringFormat="dddd"> |
| 367 | + <MultiBinding Mode="OneWay" StringFormat="dddd" ConverterCulture="{x:Static globalization:CultureInfo.CurrentCulture}" > |
367 | 368 | <MultiBinding.Converter>
|
368 | 369 | <converters:CalendarDateCoalesceConverter />
|
369 | 370 | </MultiBinding.Converter>
|
|
380 | 381 | <Button x:Name="PART_PreviousButton" Grid.Row="2" Grid.Column="0" Focusable="False" HorizontalAlignment="Left" Height="36" Template="{StaticResource PreviousButtonTemplate}" Width="32"
|
381 | 382 | Margin="40 0 0 0" Foreground="{TemplateBinding Foreground}" />
|
382 | 383 | <TextBlock HorizontalAlignment="Center" Margin="8" FontSize="14" Grid.Row="2" Grid.Column="1" FontWeight="SemiBold" VerticalAlignment="Center"
|
383 |
| - Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}, Path=DisplayDate, StringFormat=MMMM yyyy}" /> |
| 384 | + Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Calendar}}, Path=DisplayDate, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}, StringFormat=MMMM yyyy}" /> |
384 | 385 | <Button x:Name="PART_NextButton" Grid.Row="2" Grid.Column="2" Focusable="False" HorizontalAlignment="Right" Height="36" Template="{StaticResource NextButtonTemplate}" Width="32"
|
385 | 386 | Margin="0 0 40 0" Foreground="{TemplateBinding Foreground}" />
|
386 | 387 | <Grid x:Name="PART_MonthView" Grid.ColumnSpan="3" HorizontalAlignment="Center" Margin="6,-1,6,6" Grid.Row="3" Visibility="Visible">
|
|
0 commit comments