123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <Window x:Class="DataLogistics.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:DataLogistics"
- mc:Ignorable="d"
- Title="MainWindow" Height="450" Width="300">
- <Window.DataContext><local:MainWindowViewModel x:Name="ViewModel"/></Window.DataContext>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="2*"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="2*"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="2*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Button Command="{Binding OnOffCommand}" Content="Switch" Grid.ColumnSpan="3" Margin="10"/>
-
- <TextBox Text="Value" Grid.Row="1" Grid.Column="1" BorderThickness="0"/>
- <Slider Grid.Row="2" Minimum="0" Maximum="255" Margin="20" Value="{Binding DimmerValue}" Grid.ColumnSpan="3"/>
-
- <TextBox Text="Red" Grid.Row="3" Grid.Column="0" Margin="2" BorderThickness="0"/>
- <TextBox Text="Green" Grid.Row="3" Grid.Column="1" Margin="2" BorderThickness="0"/>
- <TextBox Text="Blue" Grid.Row="3" Grid.Column="2" Margin="2" BorderThickness="0"/>
-
- <Slider Grid.Row="4" Grid.Column="0" Value="{Binding RedValue, Mode=TwoWay}" Minimum="0" Maximum="255"/>
- <Slider Grid.Row="4" Grid.Column="1" Value="{Binding GreenValue, Mode=TwoWay}" Minimum="0" Maximum="255"/>
- <Slider Grid.Row="4" Grid.Column="2" Value="{Binding BlueValue, Mode=TwoWay}" Minimum="0" Maximum="255"/>
-
- <TextBox Text="HexValue:
- " Grid.Row="5" Grid.Column="0" TextAlignment="Right" BorderThickness="0"/>
- <TextBox Text="{Binding HexValue}" Grid.Row="5" Grid.Column="1" BorderThickness="0"/>
- <TextBox Grid.Row="5" Grid.Column="2" TextAlignment="Right" Background="{Binding HexValue}" BorderThickness="0"/>
- </Grid>
- </Window>
|