| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <UserControl x:Class="TeamAAS_VP.Controls.VibrationControl"
- 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:local="clr-namespace:TeamAAS_VP.Controls"
- xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
- xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- mc:Ignorable="d"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <UserControl.Resources>
- <Style TargetType="Button"
- BasedOn="{StaticResource MaterialDesignIconForegroundButton}">
- <Setter Property="Background"
- Value="Transparent" />
- <Setter Property="BorderBrush"
- Value="Transparent" />
- <Setter Property="HorizontalAlignment"
- Value="Center" />
- <Setter Property="VerticalAlignment"
- Value="Center" />
- <Setter Property="Width"
- Value="48" />
- <Setter Property="Height"
- Value="48" />
- </Style>
- <Style TargetType="TextBlock">
- <Setter Property="Margin"
- Value="0,30,0,0" />
- <Setter Property="FontSize"
- Value="16" />
- <Setter Property="Foreground"
- Value="#ff0078d7" />
- </Style>
- <Style TargetType="materialDesign:PackIcon">
- <Setter Property="FontSize"
- Value="30" />
- <Setter Property="Width"
- Value="50" />
- <Setter Property="Height"
- Value="50" />
- </Style>
- </UserControl.Resources>
- <Viewbox Stretch="Uniform">
- <Grid Width="400" Height="250">
- <Grid.Background>
- <ImageBrush ImageSource="pack://application:,,,/TeamAAS-VP;component/Resources/Images/FFFEEDER.png"
- Stretch="Fill" />
- </Grid.Background>
- <Grid Margin="43,18,107,20">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Button Grid.Row="0"
- Grid.Column="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Width="50"
- Height="50"
- Command="{Binding ActionCommand}"
- CommandParameter="6">
- <Grid>
- <materialDesign:PackIcon HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowBottomRightThick" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="G" />
- </Grid>
- </Button>
-
- <Button Grid.Row="0"
- Grid.Column="1"
- Command="{Binding ActionCommand}"
- CommandParameter="3">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowDownBold" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="D" />
- </Grid>
- </Button>
- <Button Grid.Row="1"
- Grid.Column="1"
- Command="{Binding ActionCommand}"
- CommandParameter="8">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowExpandAll" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="I" />
- </Grid>
- </Button>
- <Button Grid.Row="2"
- Grid.Column="1"
- Command="{Binding ActionCommand}"
- CommandParameter="4">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowUpBold" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="E" />
- </Grid>
- <!--<icon:PackIconMaterial
- Width="{Binding IconWidth}"
- Height="{Binding IconHeight}"
- Kind="ArrowUp" />-->
- </Button>
- <Button Grid.Row="1"
- Grid.Column="0"
- Command="{Binding ActionCommand}"
- CommandParameter="5">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowRightBold" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="F" />
- </Grid>
- </Button>
- <Button Grid.Row="2"
- Grid.Column="0"
- Command="{Binding ActionCommand}"
- CommandParameter="7">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowTopRightThick" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="H" />
- </Grid>
- </Button>
- <Button Grid.Row="0"
- Grid.Column="2"
- Command="{Binding ActionCommand}"
- CommandParameter="1">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowBottomLeftThick" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="B" />
- </Grid>
- </Button>
- <Button Grid.Row="1"
- Grid.Column="2"
- Command="{Binding ActionCommand}"
- CommandParameter="0">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowLeftBold" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="A" />
- </Grid>
- </Button>
- <Button Grid.Row="2"
- Grid.Column="2"
- Command="{Binding ActionCommand}"
- CommandParameter="2">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowTopLeftThick" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="C" />
- </Grid>
- </Button>
- </Grid>
- <Grid Margin="318,16,15,16">
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Button Grid.Row="0"
- Command="{Binding ActionCommand}"
- CommandParameter="9">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- Foreground="White"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowCollapseHorizontal" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="J" />
- </Grid>
- </Button>
- <Button Grid.Row="1"
- Command="{Binding ActionCommand}"
- CommandParameter="10">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- Foreground="White"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="ArrowCollapseVertical" />
- <TextBlock HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Text="K" />
- </Grid>
- </Button>
- <Button Grid.Row="2"
- Command="{Binding ActionCommand}"
- CommandParameter="-1">
- <Grid>
- <materialDesign:PackIcon Margin="1"
- Foreground="White"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Kind="{Binding LightKind}">
- <materialDesign:PackIcon.Style>
- <Style TargetType="materialDesign:PackIcon">
- <Style.Triggers>
- <Trigger Property="Kind"
- Value="LightbulbOnOutline">
- <Setter Property="Foreground"
- Value="Orange" />
- </Trigger>
- <Trigger Property="Kind"
- Value="LightbulbOutline">
- <Setter Property="Foreground"
- Value="Black" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </materialDesign:PackIcon.Style>
- </materialDesign:PackIcon>
- </Grid>
- </Button>
- </Grid>
- </Grid>
- </Viewbox>
- </UserControl>
|