| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <UserControl x:Class="TeamAAS_VP.Views.DebugMod.LightManual"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.DebugMod"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- 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}">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <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">
- <StackPanel Orientation="Vertical">
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center">
- <TextBlock Text="{lex:Loc 通道}"
- FontWeight="Bold"
- Margin="0,0,6,0" />
- <TextBlock Text="{Binding GlobalId}"
- Width="40" />
- <TextBlock Text="{lex:Loc 名称}"
- FontWeight="Bold"
- Margin="10,0,6,0" />
- <TextBlock Text="{Binding Name}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center"
- Margin="0,8,0,0">
- <TextBlock Text="{lex:Loc 亮度}"
- 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="{lex:Loc 打开}"
- Command="{Binding TurnOnCommand}"
- Margin="0,0,8,0" />
- <Button Content="{lex:Loc 关闭}"
- Command="{Binding TurnOffCommand}"
- Margin="0,0,8,0" />
- <Button Content="{lex:Loc 保存}"
- Command="{Binding SaveCommand}" />
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </ScrollViewer>
- </Grid>
- </UserControl>
|