aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Diagnostics/Project/Widgets/Dispenser/DispenserWidgetSettingsView.xaml
blob: 1f288dc1051de20d59b8a60493396f4bb29e59d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<UserControl x:Class="Tango.FSE.Diagnostics.Project.Widgets.Dispenser.DispenserWidgetSettingsView"
             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:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:controls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
             xmlns:colorPicker="clr-namespace:Tango;assembly=Tango.ColorPicker"        
             xmlns:local="clr-namespace:Tango.FSE.Diagnostics.Project.Widgets.Dispenser"
             mc:Ignorable="d" 
             d:DesignHeight="700" d:DesignWidth="300" d:DataContext="{d:DesignInstance Type=local:DispenserWidgetSettings,IsDesignTimeCreatable=False}">
    <Grid>
        <StackPanel>
            <controls:FSEGroupBox Header="SPEED" HeaderFontSize="{StaticResource FSE_SmallFontSize}">
                <StackPanel>
                    <mahapps:NumericUpDown Minimum="0" Maximum="10000" Value="{Binding Settings.Speed,UpdateSourceTrigger=PropertyChanged}" />
                </StackPanel>
            </controls:FSEGroupBox>

            <controls:FSEGroupBox Header="COLOR" Margin="0 10 0 0" HeaderFontSize="{StaticResource FSE_SmallFontSize}">
                <Viewbox>
                    <colorPicker:ColorCanvas Background="Transparent" BorderThickness="0" FontSize="{StaticResource FSE_SmallerFontSize}"  SelectedColor="{Binding Settings.Color,Mode=TwoWay}" />
                </Viewbox>
            </controls:FSEGroupBox>
        </StackPanel>
    </Grid>
</UserControl>