Commit 8031283b by liulongfei

按钮样式

parent 7fae08c0
...@@ -54,10 +54,12 @@ ...@@ -54,10 +54,12 @@
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="CheckBox"> <ControlTemplate TargetType="CheckBox">
<Grid x:Name="border" Background="Transparent"> <Grid x:Name="border" Background="Transparent">
<Image x:Name="img" Visibility="Visible" Width="32" Height="32" <Image x:Name="img" Visibility="Visible" Width="24" Height="24"
Source="/VIZ.H2V.Module.Resource;component/Icons/footbal_field_32x32.png"></Image> VerticalAlignment="Center" HorizontalAlignment="Center"
<Image x:Name="img_over" Visibility="Collapsed" Width="32" Height="32" Source="/VIZ.H2V.Module.Resource;component/Icons/footbal_field_24x24.png"></Image>
Source="/VIZ.H2V.Module.Resource;component/Icons/footbal_field_over_32x32.png"></Image> <Image x:Name="img_over" Visibility="Collapsed" Width="24" Height="24"
VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.H2V.Module.Resource;component/Icons/footbal_field_over_24x24.png"></Image>
</Grid> </Grid>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True"> <Trigger Property="IsChecked" Value="True">
...@@ -84,10 +86,12 @@ ...@@ -84,10 +86,12 @@
<Setter.Value> <Setter.Value>
<ControlTemplate TargetType="CheckBox"> <ControlTemplate TargetType="CheckBox">
<Grid x:Name="border" Background="Transparent"> <Grid x:Name="border" Background="Transparent">
<Image x:Name="img" Visibility="Visible" Width="32" Height="32" <Image x:Name="img" Visibility="Visible" Width="24" Height="24"
Source="/VIZ.H2V.Module.Resource;component/Icons/filter_32x32.png"></Image> VerticalAlignment="Center" HorizontalAlignment="Center"
<Image x:Name="img_over" Visibility="Collapsed" Width="32" Height="32" Source="/VIZ.H2V.Module.Resource;component/Icons/filter_24x24.png"></Image>
Source="/VIZ.H2V.Module.Resource;component/Icons/filter_over_32x32.png"></Image> <Image x:Name="img_over" Visibility="Collapsed" Width="24" Height="24"
VerticalAlignment="Center" HorizontalAlignment="Center"
Source="/VIZ.H2V.Module.Resource;component/Icons/filter_over_24x24.png"></Image>
</Grid> </Grid>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True"> <Trigger Property="IsChecked" Value="True">
......
...@@ -187,10 +187,10 @@ ...@@ -187,10 +187,10 @@
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Resource Include="Icons\filter_32x32.png" /> <Resource Include="Icons\filter_24x24.png" />
<Resource Include="Icons\filter_over_32x32.png" /> <Resource Include="Icons\filter_over_24x24.png" />
<Resource Include="Icons\footbal_field_32x32.png" /> <Resource Include="Icons\footbal_field_24x24.png" />
<Resource Include="Icons\footbal_field_over_32x32.png" /> <Resource Include="Icons\footbal_field_over_24x24.png" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
</Grid> </Grid>
</Grid> </Grid>
<StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,20,0,0" Orientation="Horizontal"> <StackPanel Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0,20,0,0" Orientation="Horizontal">
<Button Width="80" Height="30" Content="算法重启" Style="{StaticResource Button_Restart}" <Button Width="80" Height="30" Content="重启算法" Style="{StaticResource Button_Restart}"
IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter_SettingButton}}" IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter_SettingButton}}"
Command="{Binding RestartCommand}"></Button> Command="{Binding RestartCommand}"></Button>
<Button Width="80" Height="30" Content="关闭算法" Style="{StaticResource Button_Restart}" Margin="15,0,0,0" <Button Width="80" Height="30" Content="关闭算法" Style="{StaticResource Button_Restart}" Margin="15,0,0,0"
...@@ -178,8 +178,8 @@ ...@@ -178,8 +178,8 @@
<!-- 显示组 --> <!-- 显示组 -->
<StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,5" Orientation="Horizontal"> <StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,5" Orientation="Horizontal">
<CheckBox Style="{StaticResource CheckBox_IsBorderEnabled}" Width="32" Height="32" Margin="0,0,15,0" <CheckBox Style="{StaticResource CheckBox_IsBorderEnabled}" Width="32" Height="32" Margin="0,0,10,0"
ToolTip="是否启用边线检测" ToolTip="启用边线过滤"
IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter}}" IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter}}"
IsChecked="{Binding Path=AlgorithmConfig.IsBorderEnabled,Mode=TwoWay}"> IsChecked="{Binding Path=AlgorithmConfig.IsBorderEnabled,Mode=TwoWay}">
<behaviors:Interaction.Triggers> <behaviors:Interaction.Triggers>
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
</behaviors:Interaction.Triggers> </behaviors:Interaction.Triggers>
</CheckBox> </CheckBox>
<CheckBox Style="{StaticResource CheckBox_IsBorderShow}" Width="32" Height="32" <CheckBox Style="{StaticResource CheckBox_IsBorderShow}" Width="32" Height="32"
ToolTip="是否显示边线检测区域" ToolTip="显示边线"
IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter}}" IsEnabled="{Binding Path=ViewStatus,Converter={StaticResource NDIViewStatus2IsEnabledConverter}}"
IsChecked="{Binding Path=AlgorithmConfig.IsShowBorder,Mode=TwoWay}"> IsChecked="{Binding Path=AlgorithmConfig.IsShowBorder,Mode=TwoWay}">
<behaviors:Interaction.Triggers> <behaviors:Interaction.Triggers>
......
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