|
|
@ -5,6 +5,7 @@
|
|
|
|
xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters"
|
|
|
|
xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:dialogs="clr-namespace:DiscordChatExporter.Gui.ViewModels.Dialogs"
|
|
|
|
xmlns:dialogs="clr-namespace:DiscordChatExporter.Gui.ViewModels.Dialogs"
|
|
|
|
|
|
|
|
xmlns:globalization="clr-namespace:System.Globalization;assembly=System.Runtime"
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
|
@ -86,7 +87,7 @@
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedComboBox}">
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedComboBox}">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<TextBlock Text="{Binding Converter={x:Static converters:ExportFormatToStringConverter.Instance}}" />
|
|
|
|
<TextBlock Text="{Binding Converter={x:Static converters:ExportFormatToStringConverter.Instance}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}" />
|
|
|
|
</DataTemplate>
|
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
|
|
|
</ComboBox>
|
|
|
@ -110,8 +111,8 @@
|
|
|
|
Margin="16,8,16,4"
|
|
|
|
Margin="16,8,16,4"
|
|
|
|
materialDesign:HintAssist.Hint="After (date)"
|
|
|
|
materialDesign:HintAssist.Hint="After (date)"
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
DisplayDateEnd="{Binding BeforeDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}}"
|
|
|
|
DisplayDateEnd="{Binding BeforeDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
SelectedDate="{Binding AfterDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}}"
|
|
|
|
SelectedDate="{Binding AfterDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedDatePicker}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedDatePicker}"
|
|
|
|
ToolTip="Only include messages sent after this date" />
|
|
|
|
ToolTip="Only include messages sent after this date" />
|
|
|
|
<DatePicker
|
|
|
|
<DatePicker
|
|
|
@ -120,8 +121,8 @@
|
|
|
|
Margin="16,8,16,4"
|
|
|
|
Margin="16,8,16,4"
|
|
|
|
materialDesign:HintAssist.Hint="Before (date)"
|
|
|
|
materialDesign:HintAssist.Hint="Before (date)"
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
DisplayDateStart="{Binding AfterDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}}"
|
|
|
|
DisplayDateStart="{Binding AfterDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
SelectedDate="{Binding BeforeDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}}"
|
|
|
|
SelectedDate="{Binding BeforeDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedDatePicker}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedDatePicker}"
|
|
|
|
ToolTip="Only include messages sent before this date" />
|
|
|
|
ToolTip="Only include messages sent before this date" />
|
|
|
|
<materialDesign:TimePicker
|
|
|
|
<materialDesign:TimePicker
|
|
|
@ -132,7 +133,7 @@
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
Is24Hours="{x:Static utils:Internationalization.Is24Hours}"
|
|
|
|
Is24Hours="{x:Static utils:Internationalization.Is24Hours}"
|
|
|
|
IsEnabled="{Binding IsAfterDateSet}"
|
|
|
|
IsEnabled="{Binding IsAfterDateSet}"
|
|
|
|
SelectedTime="{Binding AfterTime, Converter={x:Static converters:TimeSpanToDateTimeConverter.Instance}}"
|
|
|
|
SelectedTime="{Binding AfterTime, Converter={x:Static converters:TimeSpanToDateTimeConverter.Instance}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedTimePicker}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedTimePicker}"
|
|
|
|
ToolTip="Only include messages sent after this time" />
|
|
|
|
ToolTip="Only include messages sent after this time" />
|
|
|
|
<materialDesign:TimePicker
|
|
|
|
<materialDesign:TimePicker
|
|
|
@ -143,7 +144,7 @@
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
Is24Hours="{x:Static utils:Internationalization.Is24Hours}"
|
|
|
|
Is24Hours="{x:Static utils:Internationalization.Is24Hours}"
|
|
|
|
IsEnabled="{Binding IsBeforeDateSet}"
|
|
|
|
IsEnabled="{Binding IsBeforeDateSet}"
|
|
|
|
SelectedTime="{Binding BeforeTime, Converter={x:Static converters:TimeSpanToDateTimeConverter.Instance}}"
|
|
|
|
SelectedTime="{Binding BeforeTime, Converter={x:Static converters:TimeSpanToDateTimeConverter.Instance}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedTimePicker}"
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedTimePicker}"
|
|
|
|
ToolTip="Only include messages sent before this time" />
|
|
|
|
ToolTip="Only include messages sent before this time" />
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|