|
|
@@ -11,12 +11,15 @@
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
|
xmlns:uControl="clr-namespace:TeamAAS_VP.Controls"
|
|
|
xmlns:convert="clr-namespace:TeamAAS_VP.ValueConverter"
|
|
|
+ xmlns:localbehaviors="clr-namespace:TeamAAS_VP.Behaviors"
|
|
|
xmlns:lex="http://wpflocalizeextension.codeplex.com"
|
|
|
lex:LocalizeDictionary.DesignCulture="zh-CN"
|
|
|
lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
|
|
|
lex:ResxLocalizationProvider.DefaultDictionary="Lang"
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
mc:Ignorable="d"
|
|
|
+ d:Width="1024"
|
|
|
+ d:Height="768"
|
|
|
d:Background="White"
|
|
|
d:DataContext="{d:DesignInstance Type=vm:LightManualViewModel}"
|
|
|
FontFamily="{DynamicResource DefaultFont}">
|
|
|
@@ -25,30 +28,65 @@
|
|
|
<b:InvokeCommandAction Command="{Binding LoadedCommand}" />
|
|
|
</b:EventTrigger>
|
|
|
</b:Interaction.Triggers>
|
|
|
- <Grid VerticalAlignment="Top" IsEnabled="{Binding IsAllowEdit}">
|
|
|
- <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
|
|
+ <Grid VerticalAlignment="Top"
|
|
|
+ IsEnabled="{Binding IsAllowEdit}">
|
|
|
+ <ScrollViewer HorizontalScrollBarVisibility="Auto"
|
|
|
+ VerticalScrollBarVisibility="Auto">
|
|
|
<ItemsControl ItemsSource="{Binding Channels}">
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
- <Border BorderBrush="Gray" BorderThickness="1" Margin="6" Padding="8" CornerRadius="6">
|
|
|
+ <Border BorderBrush="Gray"
|
|
|
+ BorderThickness="1"
|
|
|
+ Margin="6"
|
|
|
+ Padding="8"
|
|
|
+ CornerRadius="6">
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
|
|
- <TextBlock Text="通道:" FontWeight="Bold" Margin="0,0,6,0" />
|
|
|
- <TextBlock Text="{Binding GlobalId}" Width="40" />
|
|
|
- <TextBlock Text="名称:" FontWeight="Bold" Margin="10,0,6,0" />
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ VerticalAlignment="Center">
|
|
|
+ <TextBlock Text="通道:"
|
|
|
+ FontWeight="Bold"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <TextBlock Text="{Binding GlobalId}"
|
|
|
+ Width="40" />
|
|
|
+ <TextBlock Text="名称:"
|
|
|
+ FontWeight="Bold"
|
|
|
+ Margin="10,0,6,0" />
|
|
|
<TextBlock Text="{Binding Name}" />
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,8,0,0">
|
|
|
- <TextBlock Text="亮度:" VerticalAlignment="Center" Margin="0,0,6,0" />
|
|
|
- <Slider Width="280" Minimum="0" Maximum="255" Value="{Binding PendingBrightness,Mode=TwoWay}" SmallChange="1" LargeChange="10" />
|
|
|
- <TextBlock Text="{Binding PendingBrightness}" Width="40" Margin="6,0,0,0" VerticalAlignment="Center" />
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0,8,0,0">
|
|
|
+ <TextBlock Text="亮度:"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Margin="0,0,6,0" />
|
|
|
+ <Slider Width="280"
|
|
|
+ Minimum="0"
|
|
|
+ Maximum="255"
|
|
|
+ Value="{Binding PendingBrightness,Mode=TwoWay}"
|
|
|
+ SmallChange="1"
|
|
|
+ LargeChange="10">
|
|
|
+ <b:Interaction.Behaviors>
|
|
|
+ <localbehaviors:SliderUserInteractionBehavior UserInteractionCommand="{Binding BrightnessChangedCommand}" />
|
|
|
+ </b:Interaction.Behaviors>
|
|
|
+ </Slider>
|
|
|
+ <TextBlock Text="{Binding PendingBrightness}"
|
|
|
+ Width="40"
|
|
|
+ Margin="6,0,0,0"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0">
|
|
|
- <Button Content="打开" Command="{Binding TurnOnCommand}" Margin="0,0,8,0" />
|
|
|
- <Button Content="关闭" Command="{Binding TurnOffCommand}" Margin="0,0,8,0" />
|
|
|
- <Button Content="保存" Command="{Binding SaveCommand}" />
|
|
|
+ <StackPanel Orientation="Horizontal"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Margin="0,8,0,0">
|
|
|
+ <Button Content="打开"
|
|
|
+ Command="{Binding TurnOnCommand}"
|
|
|
+ Margin="0,0,8,0" />
|
|
|
+ <Button Content="关闭"
|
|
|
+ Command="{Binding TurnOffCommand}"
|
|
|
+ Margin="0,0,8,0" />
|
|
|
+ <Button Content="保存"
|
|
|
+ Command="{Binding SaveCommand}" />
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</Border>
|