|
|
|
@ -5,6 +5,7 @@
|
|
|
|
|
xmlns:converters="clr-namespace:DiscordChatExporter.Gui.Converters"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
|
|
@ -86,7 +87,7 @@
|
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedComboBox}">
|
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
|
<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>
|
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
|
</ComboBox>
|
|
|
|
@ -110,8 +111,8 @@
|
|
|
|
|
Margin="16,8,16,4"
|
|
|
|
|
materialDesign:HintAssist.Hint="After (date)"
|
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
|
DisplayDateEnd="{Binding BeforeDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}}"
|
|
|
|
|
SelectedDate="{Binding AfterDate, 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}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedDatePicker}"
|
|
|
|
|
ToolTip="Only include messages sent after this date" />
|
|
|
|
|
<DatePicker
|
|
|
|
@ -120,8 +121,8 @@
|
|
|
|
|
Margin="16,8,16,4"
|
|
|
|
|
materialDesign:HintAssist.Hint="Before (date)"
|
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
|
DisplayDateStart="{Binding AfterDate, Converter={x:Static converters:DateTimeOffsetToDateTimeConverter.Instance}}"
|
|
|
|
|
SelectedDate="{Binding BeforeDate, 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}, ConverterCulture={x:Static globalization:CultureInfo.CurrentCulture}}"
|
|
|
|
|
Style="{DynamicResource MaterialDesignOutlinedDatePicker}"
|
|
|
|
|
ToolTip="Only include messages sent before this date" />
|
|
|
|
|
<materialDesign:TimePicker
|
|
|
|
@ -132,7 +133,7 @@
|
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
|
Is24Hours="{x:Static utils:Internationalization.Is24Hours}"
|
|
|
|
|
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}"
|
|
|
|
|
ToolTip="Only include messages sent after this time" />
|
|
|
|
|
<materialDesign:TimePicker
|
|
|
|
@ -143,7 +144,7 @@
|
|
|
|
|
materialDesign:HintAssist.IsFloating="True"
|
|
|
|
|
Is24Hours="{x:Static utils:Internationalization.Is24Hours}"
|
|
|
|
|
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}"
|
|
|
|
|
ToolTip="Only include messages sent before this time" />
|
|
|
|
|
</Grid>
|
|
|
|
|