Commit dbb39925 by liulongfei

预览 和 控制 页面样式

parent 1e46c374
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- CheckBox_Preview_TA -->
<Style x:Key="CheckBox_Preview_TA" TargetType="CheckBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Height" Value="30"></Setter>
<Setter Property="Width" Value="30"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="content" Opacity="0.7">
<Image x:Name="img" Width="30" Height="30" Visibility="Visible"
Source="/VIZ.Package.Module.Resource;component/Icons/ta_36x36.png"></Image>
<Image x:Name="img_hover" Width="30" Height="30" Visibility="Collapsed"
Source="/VIZ.Package.Module.Resource;component/Icons/ta_hover_36x36.png"></Image>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- CheckBox_Preview_SA -->
<Style x:Key="CheckBox_Preview_SA" TargetType="CheckBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="content" Opacity="0.7">
<Image x:Name="img" Width="30" Height="30" Visibility="Visible"
Source="/VIZ.Package.Module.Resource;component/Icons/sa_36x36.png"></Image>
<Image x:Name="img_hover" Width="30" Height="30" Visibility="Collapsed"
Source="/VIZ.Package.Module.Resource;component/Icons/sa_hover_36x36.png"></Image>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- CheckBox_Preview_BB -->
<Style x:Key="CheckBox_Preview_BB" TargetType="CheckBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Grid x:Name="content" Opacity="0.7">
<Image x:Name="img" Width="30" Height="30" Visibility="Visible"
Source="/VIZ.Package.Module.Resource;component/Icons/bb_36x36.png"></Image>
<Image x:Name="img_hover" Width="30" Height="30" Visibility="Collapsed"
Source="/VIZ.Package.Module.Resource;component/Icons/bb_hover_36x36.png"></Image>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
\ No newline at end of file
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common">
<!-- IconButton_Take -->
<Style x:Key="IconButton_Take" TargetType="fcommon:IconButton">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Background" Value="#ff353d48"></Setter>
<Setter Property="Foreground" Value="White"></Setter>
<Setter Property="BorderBrush" Value="#ff59626b"></Setter>
<Setter Property="BorderThickness" Value="0,0,0,3"></Setter>
<Setter Property="IconWidth" Value="20"></Setter>
<Setter Property="IconHeight" Value="20"></Setter>
<Setter Property="Height" Value="30"></Setter>
<Setter Property="Width" Value="120"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="fcommon:IconButton">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}">
<Grid x:Name="content" Opacity="0.7">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="45"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Width="20" Height="20" HorizontalAlignment="Right" VerticalAlignment="Center"
Source="{TemplateBinding Icon}"></Image>
<ContentPresenter Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"></ContentPresenter>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" Value="#ff4e4bde"></Setter>
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="BorderBrush" Value="#aa4e4bde"></Setter>
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- IconButton_Preview -->
<Style x:Key="IconButton_Preview" TargetType="fcommon:IconButton">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="Foreground" Value="White"></Setter>
<Setter Property="BorderBrush" Value="Transparent"></Setter>
<Setter Property="BorderThickness" Value="0"></Setter>
<Setter Property="IconWidth" Value="30"></Setter>
<Setter Property="IconHeight" Value="30"></Setter>
<Setter Property="Height" Value="30"></Setter>
<Setter Property="Width" Value="30"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="fcommon:IconButton">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}">
<Grid x:Name="content" Opacity="0.7">
<Image x:Name="img" Width="30" Height="30" Visibility="Visible"
Source="{TemplateBinding Icon}"></Image>
<Image x:Name="img_hover" Width="30" Height="30" Visibility="Collapsed"
Source="{TemplateBinding IconHover}"></Image>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
\ No newline at end of file
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- RadioButton_Preview_RGB -->
<Style x:Key="RadioButton_Preview_RGB" TargetType="RadioButton">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Grid x:Name="content" Opacity="0.7">
<Image x:Name="img" Width="30" Height="30" Visibility="Visible"
Source="/VIZ.Package.Module.Resource;component/Icons/rgb_36x36.png"></Image>
<Image x:Name="img_hover" Width="30" Height="30" Visibility="Collapsed"
Source="/VIZ.Package.Module.Resource;component/Icons/rgb_hover_36x36.png"></Image>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- RadioButton_Preview_Key -->
<Style x:Key="RadioButton_Preview_Key" TargetType="RadioButton">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Grid x:Name="content" Opacity="0.7">
<Image x:Name="img" Width="30" Height="30" Visibility="Visible"
Source="/VIZ.Package.Module.Resource;component/Icons/keyed_36x36.png"></Image>
<Image x:Name="img_hover" Width="30" Height="30" Visibility="Collapsed"
Source="/VIZ.Package.Module.Resource;component/Icons/keyed_hover_36x36.png"></Image>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- RadioButton_Preview_KeydPreview -->
<Style x:Key="RadioButton_Preview_KeydPreview" TargetType="RadioButton">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Grid x:Name="content" Opacity="0.7">
<Image x:Name="img" Width="30" Height="30" Visibility="Visible"
Source="/VIZ.Package.Module.Resource;component/Icons/keyed_preview_36x36.png"></Image>
<Image x:Name="img_hover" Width="30" Height="30" Visibility="Collapsed"
Source="/VIZ.Package.Module.Resource;component/Icons/keyed_preview_hover_36x36.png"></Image>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="content" Property="Opacity" Value="0.9"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="content" Property="Opacity" Value="1"></Setter>
<Setter TargetName="img" Property="Visibility" Value="Collapsed"></Setter>
<Setter TargetName="img_hover" Property="Visibility" Value="Visible"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
\ No newline at end of file
...@@ -77,6 +77,18 @@ ...@@ -77,6 +77,18 @@
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Page> </Page>
<Page Include="Style\CheckBox\CheckBox_Preview.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Style\IconButton\IconButton_Default.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Style\RadioButton\RadioButton_Preview.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Themes\Generic.xaml"> <Page Include="Themes\Generic.xaml">
<Generator>MSBuild:Compile</Generator> <Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
...@@ -114,5 +126,45 @@ ...@@ -114,5 +126,45 @@
<ItemGroup> <ItemGroup>
<None Include="Resources\cmd_template.jpg" /> <None Include="Resources\cmd_template.jpg" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Resource Include="Icons\take_continue_30x30.png" />
<Resource Include="Icons\take_in_30x30.png" />
<Resource Include="Icons\take_out_30x30.png" />
<Resource Include="Icons\take_update_30x30.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common.Resource\VIZ.Framework.Common.Resource.csproj">
<Project>{76ef480a-e486-41b7-b7a5-2a849fc8d5bf}</Project>
<Name>VIZ.Framework.Common.Resource</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Common\VIZ.Framework.Common.csproj">
<Project>{92834c05-703e-4f05-9224-f36220939d8f}</Project>
<Name>VIZ.Framework.Common</Name>
</ProjectReference>
<ProjectReference Include="..\..\VIZ.Framework\VIZ.Framework.Core\VIZ.Framework.Core.csproj">
<Project>{75b39591-4bc3-4b09-bd7d-ec9f67efa96e}</Project>
<Name>VIZ.Framework.Core</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Resource Include="Icons\bb_36x36.png" />
<Resource Include="Icons\bb_hover_36x36.png" />
<Resource Include="Icons\continue_36x36.png" />
<Resource Include="Icons\continue_hover_36x36.png" />
<Resource Include="Icons\keyed_36x36.png" />
<Resource Include="Icons\keyed_hover_36x36.png" />
<Resource Include="Icons\keyed_preview_36x36.png" />
<Resource Include="Icons\keyed_preview_hover_36x36.png" />
<Resource Include="Icons\play_36x36.png" />
<Resource Include="Icons\play_hover_36x36.png" />
<Resource Include="Icons\rgb_36x36.png" />
<Resource Include="Icons\rgb_hover_36x36.png" />
<Resource Include="Icons\sa_36x36.png" />
<Resource Include="Icons\sa_hover_36x36.png" />
<Resource Include="Icons\stop_36x36.png" />
<Resource Include="Icons\stop_hover_36x36.png" />
<Resource Include="Icons\ta_36x36.png" />
<Resource Include="Icons\ta_hover_36x36.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -9,21 +9,35 @@ ...@@ -9,21 +9,35 @@
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core" xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
xmlns:plugin="clr-namespace:VIZ.Package.Plugin;assembly=VIZ.Package.Plugin" xmlns:plugin="clr-namespace:VIZ.Package.Plugin;assembly=VIZ.Package.Plugin"
xmlns:local="clr-namespace:VIZ.Package.Module" xmlns:local="clr-namespace:VIZ.Package.Module"
d:DataContext="{d:DesignInstance Type=local:ControlViewModel}" d:DataContext="{d:DesignInstance Type=local:ControlViewModel}"
mc:Ignorable="d" x:Name="uc" mc:Ignorable="d" x:Name="uc"
d:DesignHeight="35" d:DesignWidth="800"> d:DesignHeight="45" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.Package.Module.Resource;component/Style/IconButton/IconButton_Default.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid> <Grid>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<Button Height="20" Width="80" Content="Take" Margin="10,0,10,0" <fcommon:IconButton Content="Take" Style="{StaticResource IconButton_Take}"
Command="{Binding TakeCommand}"></Button> Icon="/VIZ.Package.Module.Resource;component/Icons/take_in_30x30.png"
<Button Height="20" Width="80" Content="Continue" Margin="10,0,10,0" Command="{Binding TakeCommand}"></fcommon:IconButton>
Command="{Binding ContinueCommand}"></Button> <fcommon:IconButton Content="Continue" Style="{StaticResource IconButton_Take}" Margin="3,0,0,0"
<Button Height="20" Width="80" Content="Take Out" Margin="10,0,10,0" Icon="/VIZ.Package.Module.Resource;component/Icons/take_continue_30x30.png"
Command="{Binding TakeOutCommand}"></Button> Command="{Binding ContinueCommand}"></fcommon:IconButton>
<Button Height="20" Width="80" Content="Update" Margin="10,0,10,0" <fcommon:IconButton Content="Take Out" Style="{StaticResource IconButton_Take}" Margin="3,0,0,0"
Command="{Binding UpdateCommand}"></Button> Icon="/VIZ.Package.Module.Resource;component/Icons/take_out_30x30.png"
Command="{Binding TakeOutCommand}"></fcommon:IconButton>
<fcommon:IconButton Content="Update" Style="{StaticResource IconButton_Take}" Margin="3,0,0,0"
Icon="/VIZ.Package.Module.Resource;component/Icons/take_update_30x30.png"
Command="{Binding UpdateCommand}"></fcommon:IconButton>
</StackPanel> </StackPanel>
</Grid> </Grid>
</UserControl> </UserControl>
...@@ -10,6 +10,16 @@ ...@@ -10,6 +10,16 @@
d:DataContext="{d:DesignInstance Type=local:VizPreviewViewModel}" d:DataContext="{d:DesignInstance Type=local:VizPreviewViewModel}"
d:DesignHeight="450" d:DesignWidth="800"> d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.Package.Module.Resource;component/Style/IconButton/IconButton_Default.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.Package.Module.Resource;component/Style/CheckBox/CheckBox_Preview.xaml"></ResourceDictionary>
<ResourceDictionary Source="/VIZ.Package.Module.Resource;component/Style/RadioButton/RadioButton_Preview.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Loaded" Command="{Binding Path=LoadedCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Loaded" Command="{Binding Path=LoadedCommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors> </dxmvvm:Interaction.Behaviors>
...@@ -26,44 +36,55 @@ ...@@ -26,44 +36,55 @@
<ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
<Button Content="播放" Width="60" Height="30" Margin="5,0,0,0" Command="{Binding Path=PlayCommand}"></Button> <fcommon:IconButton Content="播放" Margin="5,0,0,0"
<Button Content="继续" Width="60" Height="30" Margin="5,0,0,0" Command="{Binding Path=ContinueCommand}"></Button> Style="{StaticResource IconButton_Preview}"
<Button Content="停止" Width="60" Height="30" Margin="5,0,0,0" Command="{Binding Path=StopCommand}"></Button> Icon="/VIZ.Package.Module.Resource;component/Icons/play_36x36.png"
IconHover="/VIZ.Package.Module.Resource;component/Icons/play_hover_36x36.png"
Command="{Binding Path=PlayCommand}"></fcommon:IconButton>
<fcommon:IconButton Content="继续" Margin="5,0,0,0" Style="{StaticResource IconButton_Preview}"
Icon="/VIZ.Package.Module.Resource;component/Icons/continue_36x36.png"
IconHover="/VIZ.Package.Module.Resource;component/Icons/continue_hover_36x36.png"
Command="{Binding Path=ContinueCommand}"></fcommon:IconButton>
<fcommon:IconButton Content="停止" Margin="5,0,0,0" Style="{StaticResource IconButton_Preview}"
Icon="/VIZ.Package.Module.Resource;component/Icons/stop_36x36.png"
IconHover="/VIZ.Package.Module.Resource;component/Icons/stop_hover_36x36.png"
Command="{Binding Path=StopCommand}"></fcommon:IconButton>
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center"> <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">
<CheckBox Content="TA" Width="40" Height="30" Margin="5,0,0,0"> <CheckBox Content="TA" Style="{StaticResource CheckBox_Preview_TA}" Margin="5,0,0,0">
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowTSCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowTSCommand}"></dxmvvm:EventToCommand>
<dxmvvm:EventToCommand EventName="Unchecked" Command="{Binding Path=HideTSCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Unchecked" Command="{Binding Path=HideTSCommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors> </dxmvvm:Interaction.Behaviors>
</CheckBox> </CheckBox>
<CheckBox Content="SA" Width="40" Height="30" Margin="5,0,0,0"> <CheckBox Content="SA" Style="{StaticResource CheckBox_Preview_SA}" Margin="5,0,0,0">
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowSACommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowSACommand}"></dxmvvm:EventToCommand>
<dxmvvm:EventToCommand EventName="Unchecked" Command="{Binding Path=HideSACommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Unchecked" Command="{Binding Path=HideSACommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors> </dxmvvm:Interaction.Behaviors>
</CheckBox> </CheckBox>
<CheckBox Content="BB" Width="40" Height="30" Margin="5,0,0,0"> <CheckBox Content="BB" Style="{StaticResource CheckBox_Preview_BB}" Margin="5,0,0,0">
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowBBCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowBBCommand}"></dxmvvm:EventToCommand>
<dxmvvm:EventToCommand EventName="Unchecked" Command="{Binding Path=HideBBCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Unchecked" Command="{Binding Path=HideBBCommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors> </dxmvvm:Interaction.Behaviors>
</CheckBox> </CheckBox>
<Rectangle Width="2" VerticalAlignment="Stretch" Fill="Red"></Rectangle> <RadioButton Content="RGB" Style="{StaticResource RadioButton_Preview_RGB}"
Margin="5,0,0,0" IsChecked="True">
<RadioButton Content="RGB" Width="40" Height="30" Margin="5,0,0,0" IsChecked="True">
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowRGBCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowRGBCommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors> </dxmvvm:Interaction.Behaviors>
</RadioButton> </RadioButton>
<RadioButton Content="Key" Width="40" Height="30" Margin="5,0,0,0"> <RadioButton Content="Key" Style="{StaticResource RadioButton_Preview_Key}"
Margin="5,0,0,0">
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowKeyCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowKeyCommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors> </dxmvvm:Interaction.Behaviors>
</RadioButton> </RadioButton>
<RadioButton Content="KeyedPreveiew" Width="60" Height="30" Margin="5,0,0,0"> <RadioButton Content="KeyedPreveiew" Style="{StaticResource RadioButton_Preview_KeydPreview}"
Margin="5,0,0,0">
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowKeyPreviewCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Checked" Command="{Binding Path=ShowKeyPreviewCommand}"></dxmvvm:EventToCommand>
</dxmvvm:Interaction.Behaviors> </dxmvvm:Interaction.Behaviors>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment