Flow.Launcher/Plugins/Flow.Launcher.Plugin.Calculator/Views/CalculatorSettings.xaml

84 lines
3.4 KiB
Text
Raw Permalink Normal View History

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"
d:DataContext="{d:DesignInstance Type=viewModels:SettingsViewModel}"
2021-12-15 04:51:39 +00:00
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<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" />
<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"
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"
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
2021-12-15 04:51:39 +00:00
HorizontalAlignment="Left"
VerticalAlignment="Center"
DisplayMemberPath="Display"
ItemsSource="{Binding AllDecimalSeparator}"
SelectedValue="{Binding SelectedDecimalSeparator, Mode=TwoWay}"
SelectedValuePath="Value" />
2021-12-15 04:51:39 +00:00
<TextBlock
Grid.Row="1"
Grid.Column="0"
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"
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
2021-12-15 04:51:39 +00:00
HorizontalAlignment="Left"
VerticalAlignment="Center"
2021-12-15 04:51:39 +00:00
ItemsSource="{Binding MaxDecimalPlacesRange}"
SelectedItem="{Binding Settings.MaxDecimalPlaces}" />
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"
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>
</UserControl>