2021-12-15 04:51:39 +00:00
|
|
|
<UserControl
|
2024-05-25 06:35:14 +00:00
|
|
|
x:Class="Flow.Launcher.Plugin.Calculator.Views.CalculatorSettings"
|
2021-12-15 04:51:39 +00:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-05-25 06:35:14 +00:00
|
|
|
xmlns:calculator="clr-namespace:Flow.Launcher.Plugin.Calculator"
|
2021-12-15 04:51:39 +00:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-05-25 06:35:14 +00:00
|
|
|
xmlns:viewModels="clr-namespace:Flow.Launcher.Plugin.Calculator.ViewModels"
|
2025-06-23 04:25:16 +00:00
|
|
|
d:DataContext="{d:DesignInstance Type=viewModels:SettingsViewModel}"
|
2021-12-15 04:51:39 +00:00
|
|
|
d:DesignHeight="450"
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
mc:Ignorable="d">
|
2020-03-31 11:00:09 +00:00
|
|
|
|
2025-02-26 13:22:17 +00:00
|
|
|
<Grid Margin="{StaticResource SettingPanelMargin}">
|
2020-04-30 21:39:49 +00:00
|
|
|
<Grid.RowDefinitions>
|
2021-12-15 04:51:39 +00:00
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
|
<RowDefinition Height="auto" />
|
2025-09-15 04:57:25 +00:00
|
|
|
<RowDefinition Height="auto" />
|
2026-01-10 06:30:57 +00:00
|
|
|
<RowDefinition Height="auto" />
|
2020-04-30 21:39:49 +00:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
2021-12-15 04:51:39 +00:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="3*" />
|
2020-04-30 21:39:49 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
2021-12-15 04:51:39 +00:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Grid.Column="0"
|
2025-02-26 13:22:17 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2021-12-15 04:51:39 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="14"
|
2025-07-23 11:39:17 +00:00
|
|
|
Text="{DynamicResource flowlauncher_plugin_calculator_output_decimal_separator}" />
|
2021-12-15 04:51:39 +00:00
|
|
|
<ComboBox
|
|
|
|
|
x:Name="DecimalSeparatorComboBox"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
MaxWidth="300"
|
2025-02-26 13:22:17 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2021-12-15 04:51:39 +00:00
|
|
|
HorizontalAlignment="Left"
|
2025-02-26 13:22:17 +00:00
|
|
|
VerticalAlignment="Center"
|
2025-06-23 04:25:16 +00:00
|
|
|
DisplayMemberPath="Display"
|
|
|
|
|
ItemsSource="{Binding AllDecimalSeparator}"
|
|
|
|
|
SelectedValue="{Binding SelectedDecimalSeparator, Mode=TwoWay}"
|
|
|
|
|
SelectedValuePath="Value" />
|
2020-03-31 11:00:09 +00:00
|
|
|
|
2021-12-15 04:51:39 +00:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="0"
|
2025-02-27 10:27:43 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2021-12-15 04:51:39 +00:00
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
Text="{DynamicResource flowlauncher_plugin_calculator_max_decimal_places}" />
|
|
|
|
|
<ComboBox
|
|
|
|
|
x:Name="MaxDecimalPlaces"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="1"
|
2025-02-27 10:27:43 +00:00
|
|
|
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
|
2021-12-15 04:51:39 +00:00
|
|
|
HorizontalAlignment="Left"
|
2025-02-26 13:22:17 +00:00
|
|
|
VerticalAlignment="Center"
|
2021-12-15 04:51:39 +00:00
|
|
|
ItemsSource="{Binding MaxDecimalPlacesRange}"
|
|
|
|
|
SelectedItem="{Binding Settings.MaxDecimalPlaces}" />
|
2020-03-31 11:00:09 +00:00
|
|
|
|
2025-09-15 04:57:25 +00:00
|
|
|
<CheckBox
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Grid.ColumnSpan="2"
|
|
|
|
|
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
2026-01-10 06:30:57 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_calculator_use_thousands_separator}"
|
|
|
|
|
IsChecked="{Binding Settings.UseThousandsSeparator, Mode=TwoWay}" />
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Grid.ColumnSpan="2"
|
|
|
|
|
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
2025-09-15 04:57:25 +00:00
|
|
|
Content="{DynamicResource flowlauncher_plugin_calculator_show_error_message}"
|
|
|
|
|
IsChecked="{Binding Settings.ShowErrorMessage, Mode=TwoWay}" />
|
2020-04-30 21:39:49 +00:00
|
|
|
</Grid>
|
2020-03-31 11:00:09 +00:00
|
|
|
</UserControl>
|