mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
58 lines
2.8 KiB
XML
58 lines
2.8 KiB
XML
<UserControl x:Class="Flow.Launcher.Plugin.Caculator.Views.CalculatorSettings"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:ui="clr-namespace:Flow.Launcher.Infrastructure.UI;assembly=Flow.Launcher.Infrastructure"
|
|
xmlns:calculator="clr-namespace:Flow.Launcher.Plugin.Caculator"
|
|
xmlns:core="clr-namespace:Flow.Launcher.Core;assembly=Flow.Launcher.Core"
|
|
xmlns:viewModels="clr-namespace:Flow.Launcher.Plugin.Caculator.ViewModels"
|
|
mc:Ignorable="d"
|
|
Loaded="CalculatorSettings_Loaded"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
<UserControl.Resources>
|
|
<core:LocalizationConverter x:Key="LocalizationConverter"/>
|
|
</UserControl.Resources>
|
|
|
|
<Grid Margin="20 50 0 0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="3*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="0" Text="{DynamicResource flowlauncher_plugin_calculator_output_decimal_seperator}"
|
|
VerticalAlignment="Center" FontSize="14"/>
|
|
<ComboBox x:Name="DecimalSeparatorComboBox"
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
Margin="10 5 0 5"
|
|
HorizontalAlignment="Left"
|
|
MaxWidth="300"
|
|
SelectedItem="{Binding Settings.DecimalSeparator}"
|
|
ItemsSource="{Binding Source={ui:EnumBindingSource {x:Type calculator:DecimalSeparator}}}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Converter={StaticResource LocalizationConverter}}" FontSize="14"/>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
<TextBlock Grid.Column="0" Grid.Row="1" Text="{DynamicResource flowlauncher_plugin_calculator_max_decimal_places}"
|
|
VerticalAlignment="Center" FontSize="14"/>
|
|
<ComboBox x:Name="MaxDecimalPlaces"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Margin="10 5 0 5"
|
|
HorizontalAlignment="Left"
|
|
MaxWidth="300"
|
|
SelectedItem="{Binding Settings.MaxDecimalPlaces}"
|
|
ItemsSource="{Binding MaxDecimalPlacesRange}">
|
|
</ComboBox>
|
|
|
|
</Grid>
|
|
</UserControl>
|