Commit 9fdd01a9 authored by 潘栩锋's avatar 潘栩锋 🚴

中心收卷,手动按钮修正

parent 3cf75cac
......@@ -97,6 +97,9 @@
</Compile>
<Compile Include="UIModule\ResetAction.cs" />
<Compile Include="UIModule\UcCenterWinder\UIModule_UcCenterWinder.cs" />
<Compile Include="UIModule\UcVelocityCtrl\UcVelocityCtrl.xaml.cs">
<DependentUpon>UcVelocityCtrl.xaml</DependentUpon>
</Compile>
<Compile Include="UIModule\Window_Measure.xaml.cs">
<DependentUpon>Window_Measure.xaml</DependentUpon>
</Compile>
......@@ -170,6 +173,14 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UIModule\UcVelocityCtrl\UcVelocityCtrl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UIModule\UcVelocityCtrl\UcVelocityCtrlStyle.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UIModule\WdManual\WdManualStyle.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
......@@ -265,6 +276,7 @@
<Version>2.6.1</Version>
</PackageReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\Project.FLY.IBC\packages\Fody.3.2.13\build\Fody.targets" Condition="Exists('..\..\Project.FLY.IBC\packages\Fody.3.2.13\build\Fody.targets')" />
</Project>
\ No newline at end of file
......@@ -14,7 +14,7 @@
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Border Grid.Row="2" Margin="5" CornerRadius="5" Background="{StaticResource Color_theme_background}">
<Border Margin="5" CornerRadius="5" Background="{StaticResource Color_theme_background}">
<Grid>
<Viewbox VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10">
<StackPanel>
......
......@@ -40,7 +40,7 @@
<Setter Property="Orientation" Value="Horizontal"/>
<Setter Property="Margin" Value="5"/>
</Style>
<Style TargetType="{x:Type Button}" x:Key="ButtonStyle_Separate" >
<Style TargetType="Button" x:Key="ButtonStyle_Separate" >
<Setter Property="Margin" Value="5"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
......@@ -66,9 +66,6 @@
</Setter.Value>
</Setter>
</Style>
<Style TargetType="Button" x:Key="ButtonStyle_Surface" >
<Setter Property="Margin" Value="5"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
......
<UserControl x:Class="FLY.Winder.UI.Client.UIModule.UcVelocityCtrl"
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:FLY.Winder.UI.Client.UIModule"
mc:Ignorable="d"
d:DataContext="{d:DesignData Source=../../UnitTests/WinderSystemUt.xaml}"
Unloaded="UserControl_Unloaded">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="UcVelocityCtrlStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Border Grid.Row="2" Margin="5" CornerRadius="5" Background="{StaticResource Color_theme_background}" >
<Grid>
<Viewbox VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10">
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
<ColumnDefinition Width="auto" SharedSizeGroup="A"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="auto" SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
<RowDefinition SharedSizeGroup="B"/>
</Grid.RowDefinitions>
<!--背景-->
<Rectangle Fill="{StaticResource Color_row0}" Grid.ColumnSpan="6" Grid.Row="1"/>
<Rectangle Fill="{StaticResource Color_row0}" Grid.ColumnSpan="6" Grid.Row="3"/>
<Border Grid.RowSpan="5" Grid.Column="1" BorderThickness="1" BorderBrush="{StaticResource Color_theme_static}"/>
<Border Grid.RowSpan="5" Grid.Column="2" BorderThickness="1" BorderBrush="{StaticResource Color_theme_static}"/>
<Border Grid.RowSpan="5" Grid.Column="3" BorderThickness="1" BorderBrush="{StaticResource Color_theme_static}"/>
<Border Grid.RowSpan="5" Grid.Column="4" BorderThickness="1" BorderBrush="{StaticResource Color_theme_static}"/>
<Border Grid.RowSpan="5" Grid.Column="5" BorderThickness="1" BorderBrush="{StaticResource Color_theme_static}"/>
<Border Grid.RowSpan="5" Grid.Column="1" Grid.ColumnSpan="5" BorderThickness="2" BorderBrush="{StaticResource Color_theme_static}"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="1" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderBackground}" Grid.Column="2"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderBackground}" Grid.Column="3"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="4"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Column="5"/>
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Row="1" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Row="2" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Row="3" />
<Rectangle Style="{StaticResource RectStyle_RowHeaderEditBackground}" Grid.Row="4" />
<!--列标题-->
<TextBlock Text="设定张力" Grid.Column="1" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="实际张力" Grid.Column="2" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="电机电流" Grid.Column="3" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="控制模式" Grid.Column="4" Style="{StaticResource TextBlockStyle_Header}"/>
<TextBlock Text="控制开关" Grid.Column="5" Style="{StaticResource TextBlockStyle_Header}"/>
<!--行标题-->
<TextBlock Text="上牵引" Grid.Row="1" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="二牵引" Grid.Row="2" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<TextBlock Text="内收卷" Grid.Row="3" Style="{DynamicResource TextBlockStyle_RowHeader}" />
<TextBlock Text="外收卷" Grid.Row="4" Style="{StaticResource TextBlockStyle_RowHeader}"/>
<!--一牵引-->
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="3" Grid.Row="1">
<TextBlock Style="{StaticResource TextBlockStyle_Content}" Text="{Binding Accessory.Traction1Current,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="A"/>
</StackPanel>
<ToggleButton Style="{StaticResource ToggleButtonStyle_start}" Grid.Column="5" Grid.Row="1" IsChecked="{Binding Accessory.IsTraction1On}"/>
<!--二牵引-->
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="1" Grid.Row="2" >
<TextBox Style="{StaticResource TextBoxStyle_Content}" Text="{Binding Accessory.Traction2TensionKgSet,StringFormat={}{0:F1}}" />
<TextBlock Text="kg" Style="{StaticResource TextBlockStyle_FieldContent_mm}" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="2" Grid.Row="2">
<TextBlock Style="{StaticResource TextBlockStyle_Content}" Text="{Binding Accessory.Traction2TensionKg,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="kg"/>
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="3" Grid.Row="2">
<TextBlock Style="{StaticResource TextBlockStyle_Content}" Text="{Binding Accessory.Traction2Current,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="A"/>
</StackPanel>
<ToggleButton Style="{StaticResource ToggleButtonStyle_auto}" Grid.Column="4" Grid.Row="2" IsChecked="{Binding Accessory.IsTraction2Manual}"/>
<ToggleButton Style="{StaticResource ToggleButtonStyle_start}" Grid.Column="5" Grid.Row="2" IsChecked="{Binding Accessory.IsTraction2On}"/>
<!--内收卷-->
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="1" Grid.Row="3" >
<TextBox Style="{StaticResource TextBoxStyle_Content}" Text="{Binding Items[0].TensionKgSet,StringFormat={}{0:F1}}" />
<TextBlock Text="kg" Style="{StaticResource TextBlockStyle_FieldContent_mm}" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="2" Grid.Row="3">
<TextBlock Style="{StaticResource TextBlockStyle_Content}" Text="{Binding Items[0].TensionKg,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="kg"/>
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="3" Grid.Row="3">
<TextBlock Style="{StaticResource TextBlockStyle_Content}" Text="{Binding Items[0].Current,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="A"/>
</StackPanel>
<ToggleButton Grid.Column="4" Grid.Row="3" Style="{StaticResource ToggleButtonStyle_auto}" IsChecked="{Binding Items[0].IsManual}"/>
<ToggleButton Grid.Column="5" Grid.Row="3" Style="{StaticResource ToggleButtonStyle_start}" IsChecked="{Binding Items[0].IsOn}"/>
<!--外收卷-->
<StackPanel Style="{StaticResource SpStyle_Editable}" Grid.Column="1" Grid.Row="4" >
<TextBox Style="{StaticResource TextBoxStyle_Content}" Text="{Binding Items[1].TensionKgSet,StringFormat={}{0:F1}}" />
<TextBlock Text="kg" Style="{StaticResource TextBlockStyle_FieldContent_mm}" />
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="2" Grid.Row="4">
<TextBlock Style="{StaticResource TextBlockStyle_Content}" Text="{Binding Items[1].TensionKg,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="kg"/>
</StackPanel>
<StackPanel Style="{StaticResource SpStyle_ReadOnly}" Grid.Column="3" Grid.Row="4">
<TextBlock Style="{StaticResource TextBlockStyle_Content}" Text="{Binding Items[1].Current,StringFormat={}{0:F1}}"/>
<TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="A"/>
</StackPanel>
<ToggleButton Grid.Column="4" Grid.Row="4" Style="{StaticResource ToggleButtonStyle_auto}" IsChecked="{Binding Items[1].IsManual}"/>
<ToggleButton Grid.Column="5" Grid.Row="4" Style="{StaticResource ToggleButtonStyle_start}" IsChecked="{Binding Items[1].IsOn}"/>
</Grid>
</Viewbox>
</Grid>
</Border>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace FLY.Winder.UI.Client.UIModule
{
/// <summary>
/// UcVelocityCtrl.xaml 的交互逻辑
/// </summary>
public partial class UcVelocityCtrl : UserControl
{
public UcVelocityCtrl()
{
InitializeComponent();
}
private void UserControl_Unloaded(object sender, RoutedEventArgs e)
{
}
}
}
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:FLY.Winder.UI.Client.UIModule">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.Winder.UI.Client;component/Themes/Dictionary_MyStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style TargetType="TextBlock" x:Key="TextBlockStyle_Header" BasedOn="{StaticResource TextBlockStyle_FieldHeaderEditable}">
<Setter Property="Margin" Value="30,3"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<Style TargetType="TextBlock" x:Key="TextBlockStyle_RowHeader" BasedOn="{StaticResource TextBlockStyle_FieldHeader}">
<Setter Property="Margin" Value="30,3"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style TargetType="TextBox" x:Key="TextBoxStyle_Content" BasedOn="{StaticResource TextBoxStyle_FieldContent}">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style TargetType="TextBlock" x:Key="TextBlockStyle_Content" BasedOn="{StaticResource TextBlockStyle_FieldContent}">
</Style>
<SolidColorBrush x:Key="Color_row0" Color="LightGray"/>
<Style TargetType="Rectangle" x:Key="RectStyle_RowHeaderEditBackground">
<Setter Property="Fill" Value="{StaticResource Color_theme_activity}"/>
<Setter Property="Stroke" Value="{StaticResource Color_theme_static}"/>
</Style>
<Style TargetType="Rectangle" x:Key="RectStyle_RowHeaderBackground">
<Setter Property="Fill" Value="{StaticResource Color_theme_static}"/>
<Setter Property="Stroke" Value="{StaticResource Color_theme_activity}"/>
</Style>
<Style TargetType="StackPanel" x:Key="SpStyle_Editable">
<Setter Property="Orientation" Value="Horizontal"/>
<Setter Property="Background" Value="#FF80C3EE"/>
<Setter Property="Margin" Value="5"/>
</Style>
<Style TargetType="StackPanel" x:Key="SpStyle_ReadOnly">
<Setter Property="Orientation" Value="Horizontal"/>
<Setter Property="Margin" Value="5"/>
</Style>
<Style TargetType="{x:Type ToggleButton}" x:Key="ToggleButtonStyle_auto" >
<Setter Property="Margin" Value="5"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Canvas x:Name="canvas" Height="55" Width="110" Background="{StaticResource Color_theme_activity}">
<Rectangle x:Name="Path_block" Height="45" Width="24" Margin="5" Fill="White" Canvas.Right="0" />
<StackPanel x:Name="SP_Text" Orientation="Horizontal" Margin="20,15" >
<TextBlock x:Name="TB_OnOff" Text="自动" Foreground="White" FontSize="24" FontFamily="YouYuan"/>
</StackPanel>
</Canvas>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="TB_OnOff" Property="Text" Value="手动"/>
<Setter TargetName="Path_block" Property="Canvas.Left" Value="0"/>
<Setter TargetName="SP_Text" Property="Canvas.Right" Value="0"/>
<Setter TargetName="canvas" Property="Background" Value="{StaticResource Color_theme_static}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ToggleButton}" x:Key="ToggleButtonStyle_start" >
<Setter Property="Margin" Value="5"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Canvas x:Name="canvas" Height="55" Width="110" Background="Red">
<Rectangle x:Name="Path_block" Height="45" Width="24" Margin="5" Fill="White" />
<StackPanel x:Name="SP_Text" Orientation="Horizontal" Margin="20,15" Canvas.Right="0">
<TextBlock x:Name="TB_OnOff" Text="停止" Foreground="White" FontSize="24" FontFamily="YouYuan"/>
</StackPanel>
</Canvas>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="TB_OnOff" Property="Text" Value="运行"/>
<Setter TargetName="Path_block" Property="Canvas.Right" Value="0"/>
<Setter TargetName="SP_Text" Property="Canvas.Left" Value="0"/>
<Setter TargetName="canvas" Property="Background" Value="Green"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
\ No newline at end of file
......@@ -51,41 +51,8 @@
</WrapPanel>
<WrapPanel Orientation="Horizontal">
<StackPanel Margin="10">
<Button Style="{StaticResource ButtonStyle_empty}">
<StackPanel>
<Grid HorizontalAlignment="Center">
<iconPacks:PackIconMaterial Kind="HandRight"
HorizontalAlignment="Center" VerticalAlignment="Center"
Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
Foreground="{StaticResource Color_theme_static}" />
<TextBlock Text="A" Foreground="Red" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Margin="0,0,0,-10">
<TextBlock.Style>
<Style TargetType="TextBlock" >
<Style.Triggers>
<DataTrigger Binding="{Binding IsTongAuto}" Value="False">
<Setter Property="Visibility" Value="Hidden"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Grid>
<TextBlock >
<TextBlock.Style>
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldHeader}">
<Setter Property="Text" Value="抓手手动"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsTongAuto}" Value="True">
<Setter Property="Text" Value="抓手自动"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</Button>
<ToggleButton Style="{StaticResource ToggleButtonStyle_hand}" IsChecked="{Binding IsTongAuto}" />
<TextBlock Style="{StaticResource TextBlockStyle_hand}" Tag="{Binding IsTongAuto}"/>
</StackPanel>
<StackPanel Margin="10">
<Button x:Name="button_tongClamp0" Style="{StaticResource ButtonStyle_tongClamp}" />
......@@ -146,41 +113,8 @@
</WrapPanel>
<WrapPanel Orientation="Horizontal">
<StackPanel Margin="10">
<Button Style="{StaticResource ButtonStyle_empty}">
<StackPanel>
<Grid HorizontalAlignment="Center">
<iconPacks:PackIconMaterial Kind="HandRight"
HorizontalAlignment="Center" VerticalAlignment="Center"
Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
Foreground="{StaticResource Color_theme_static}" />
<TextBlock Text="A" Foreground="Red" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Margin="0,0,0,-10">
<TextBlock.Style>
<Style TargetType="TextBlock" >
<Style.Triggers>
<DataTrigger Binding="{Binding IsTongAuto}" Value="False">
<Setter Property="Visibility" Value="Hidden"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Grid>
<TextBlock >
<TextBlock.Style>
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldHeader}">
<Setter Property="Text" Value="抓手手动"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsTongAuto}" Value="True">
<Setter Property="Text" Value="抓手自动"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</Button>
<ToggleButton Style="{StaticResource ToggleButtonStyle_hand}" IsChecked="{Binding IsTongAuto}" />
<TextBlock Style="{StaticResource TextBlockStyle_hand}" Tag="{Binding IsTongAuto}"/>
</StackPanel>
<StackPanel Margin="10">
<Button x:Name="button_tongClamp1" Style="{StaticResource ButtonStyle_tongClamp}" />
......
......@@ -140,11 +140,13 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}">
<iconPacks:PackIconMaterial x:Name="path" Kind="ArrowCollapseHorizontal" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="{StaticResource Color_theme_static}" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="path" Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
......@@ -162,11 +164,13 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}">
<iconPacks:PackIconMaterial x:Name="path" Kind="ArrowExpandHorizontal" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="{StaticResource Color_theme_static}" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="path" Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
......@@ -184,11 +188,13 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}">
<iconPacks:PackIconMaterial x:Name="path" Kind="ArrowUpBoldBox" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="{StaticResource Color_theme_static}" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="path" Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
......@@ -206,11 +212,13 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}">
<iconPacks:PackIconMaterial x:Name="path" Kind="ArrowDownBoldBox" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="{StaticResource Color_theme_static}" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="path" Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
......@@ -228,11 +236,13 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}">
<iconPacks:PackIconMaterial x:Name="path" Kind="ArrowLeftBoldBox" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="{StaticResource Color_theme_static}" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="path" Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
......@@ -250,11 +260,13 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}">
<iconPacks:PackIconMaterial x:Name="path" Kind="ArrowRightBoldBox" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
HorizontalAlignment="Center" VerticalAlignment="Center"
Foreground="{StaticResource Color_theme_static}" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="path" Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
......@@ -268,4 +280,42 @@
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ToggleButton}" x:Key="ToggleButtonStyle_hand" >
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<Grid HorizontalAlignment="Center">
<iconPacks:PackIconMaterial x:Name="path" Kind="HandRight"
HorizontalAlignment="Center" VerticalAlignment="Center"
Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"
Foreground="{StaticResource Color_theme_static}" />
<TextBlock x:Name="blocka" Text="A" Foreground="Red" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Margin="0,0,0,-10" Visibility="Hidden"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="blocka" Property="Visibility" Value="Visible"/>
<Setter TargetName="path" Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="TextBlock" x:Key="TextBlockStyle_hand" BasedOn="{StaticResource TextBlockStyle_FieldHeader}">
<Setter Property="Text" Value="抓手手动"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Tag,RelativeSource={RelativeSource Mode=Self}}" Value="True">
<Setter Property="Text" Value="抓手自动"/>
</DataTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
\ No newline at end of file
......@@ -46,6 +46,7 @@ namespace WpfApplication1
//FLY.FeedbackRenZiJia.UI.Client.UIModule.Page_Graph p = new FLY.FeedbackRenZiJia.UI.Client.UIModule.Page_Graph();
//var p = new FLY.IBC.UI.Client.UIModule.Page_Main();
//FLY.Winder.UI.Client.UIModule.UcCenterWinder p = new FLY.Winder.UI.Client.UIModule.UcCenterWinder();
FLY.Winder.UI.Client.UIModule.Page_Main p = new FLY.Winder.UI.Client.UIModule.Page_Main();
//FLY.Weight.UI.Client.UIModule.Page_Main p = new FLY.Weight.UI.Client.UIModule.Page_Main();
......
<?xml version="1.0" encoding="utf-8"?>
<FLYLayout DynAreaWidth="250" IsDynAreaVisible="True" Left="0" Top="2" Width="1366" Height="768" WindowState="Maximized">
<FLYLayout DynAreaWidth="250" IsDynAreaVisible="True" IsGraphReverse="False" Left="0" Top="2" Width="1366" Height="768" WindowState="Maximized" IsLogoHidden="False" IsYAxisTitleHidden="False">
<Items>
<GraphTabItem Header="收 卷" ColumnCount="1" RowCount="1">
<ColumnDefinitions>
......@@ -111,6 +111,10 @@
<ControllerStateTabItem ControllerState="SCAN" No="1" />
</ControllerStates>
<DynAreaItems>
<DynAreaComponent ID="16937562" Module="dyareathick" />
<DynAreaComponent ID="18220335" Module="dyareaprofile" />
<DynAreaComponent ID="29765295" Module="dyareablowing" />
<DynAreaComponent ID="66561065" Module="dyareaio" />
<DynAreaComponent ID="43395070" Module="FLY.FeedbackRenZiJia.UI.Client.UIModule.UIModule_DynAreaFB" />
<DynAreaComponent ID="55011311" Module="FLY.IBC.UI.Client.UIModule.UIModule_DynArea" />
<DynAreaComponent ID="25339754" Module="FLY.Weight.UI.Client.UIModule.UIModule_DynArea" />
......
<?xml version="1.0" encoding="utf-8"?>
<FLYLayout DynAreaWidth="250" IsDynAreaVisible="True" Left="0" Top="2" Width="1366" Height="768" WindowState="Maximized">
<FLYLayout DynAreaWidth="250" IsDynAreaVisible="True" IsGraphReverse="False" Left="0" Top="2" Width="1366" Height="768" WindowState="Maximized" IsLogoHidden="False" IsYAxisTitleHidden="False">
<Items>
<GraphTabItem Header="收 卷" ColumnCount="1" RowCount="1">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="49956960" Module="FLY.Winder.UI.Client.UIModule.UIModule_Main" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="称 重" ColumnCount="1" RowCount="2">
<ColumnDefinitions>
<Boolean value="False" />
......@@ -11,7 +22,19 @@
</RowDefinitions>
<Graphs>
<GraphComponent ID="60426628" Module="FLY.Weight.UI.Client.UIModule.UIModule_Main" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="25136147" Module="FLY.Weight.UI.Client.UIModule.UIModule_FlowGraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="51839388" Module="FLY.Weight.UI.Client.UIModule.UIModule_FlowGraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="I B C" ColumnCount="1" RowCount="1">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="65203096" Module="FLY.IBC.UI.Client.UIModule.UIModule_Main" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="风 环" ColumnCount="1" RowCount="4">
......@@ -67,8 +90,7 @@
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="56082556" Module="trendgraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="24898733" Module="scangraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="56082556" Module="trendgraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="定 点" ColumnCount="1" RowCount="2">
......@@ -90,7 +112,13 @@
<ControllerStateTabItem ControllerState="SCAN" No="1" />
</ControllerStates>
<DynAreaItems>
<DynAreaComponent ID="16937562" Module="dyareathick" />
<DynAreaComponent ID="18220335" Module="dyareaprofile" />
<DynAreaComponent ID="29765295" Module="dyareablowing" />
<DynAreaComponent ID="66561065" Module="dyareaio" />
<DynAreaComponent ID="43395070" Module="FLY.FeedbackRenZiJia.UI.Client.UIModule.UIModule_DynAreaFB" />
<DynAreaComponent ID="55011311" Module="FLY.IBC.UI.Client.UIModule.UIModule_DynArea" />
<DynAreaComponent ID="25339754" Module="FLY.Weight.UI.Client.UIModule.UIModule_DynArea" />
<DynAreaComponent ID="26731201" Module="FLY.Winder.UI.Client.UIModule.UIModule_DynArea" />
</DynAreaItems>
</FLYLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<FLYLayout DynAreaWidth="250" IsDynAreaVisible="True" Left="0" Top="2" Width="1366" Height="768" WindowState="Maximized">
<FLYLayout DynAreaWidth="250" IsDynAreaVisible="True" IsGraphReverse="False" Left="0" Top="2" Width="1366" Height="768" WindowState="Maximized" IsLogoHidden="False" IsYAxisTitleHidden="False">
<Items>
<GraphTabItem Header="称 重" ColumnCount="1" RowCount="1">
<GraphTabItem Header="收 卷" ColumnCount="1" RowCount="1">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="49956960" Module="FLY.Winder.UI.Client.UIModule.UIModule_Main" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="中心收卷" ColumnCount="1" RowCount="3">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="18840050" Module="FLY.Winder.UI.Client.UIModule.UIModule_UcCenterWinder" Row="0" Column="0" RowSpan="2" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="称 重" ColumnCount="1" RowCount="2">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="60426628" Module="FLY.Weight.UI.Client.UIModule.UIModule_Main" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="51839388" Module="FLY.Weight.UI.Client.UIModule.UIModule_FlowGraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="I B C" ColumnCount="1" RowCount="1">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
<RowDefinitions>
<Boolean value="False" />
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="65203096" Module="FLY.IBC.UI.Client.UIModule.UIModule_Main" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="风 环" ColumnCount="1" RowCount="4">
......@@ -66,7 +104,6 @@
</RowDefinitions>
<Graphs>
<GraphComponent ID="56082556" Module="trendgraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="36196647" Module="FLY.Weight.UI.Client.UIModule.UIModule_FlowGraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="定 点" ColumnCount="1" RowCount="2">
......@@ -88,7 +125,13 @@
<ControllerStateTabItem ControllerState="SCAN" No="1" />
</ControllerStates>
<DynAreaItems>
<DynAreaComponent ID="16937562" Module="dyareathick" />
<DynAreaComponent ID="18220335" Module="dyareaprofile" />
<DynAreaComponent ID="29765295" Module="dyareablowing" />
<DynAreaComponent ID="66561065" Module="dyareaio" />
<DynAreaComponent ID="43395070" Module="FLY.FeedbackRenZiJia.UI.Client.UIModule.UIModule_DynAreaFB" />
<DynAreaComponent ID="55011311" Module="FLY.IBC.UI.Client.UIModule.UIModule_DynArea" />
<DynAreaComponent ID="25339754" Module="FLY.Weight.UI.Client.UIModule.UIModule_DynArea" />
<DynAreaComponent ID="26731201" Module="FLY.Winder.UI.Client.UIModule.UIModule_DynArea" />
</DynAreaItems>
</FLYLayout>
\ No newline at end of file
......@@ -17,7 +17,7 @@
<GraphComponent ID="51984031" Module="FLY.FeedbackRenZiJia.UI.Client.UIModule.UIModule_GraphFB" Row="2" Column="0" RowSpan="2" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="扫 描" ColumnCount="1" RowCount="4">
<GraphTabItem Header="扫 描" ColumnCount="1" RowCount="2">
<ColumnDefinitions>
<Boolean value="False" />
</ColumnDefinitions>
......@@ -28,10 +28,7 @@
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="41846616" Module="scangraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="4049537" Module="scangraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="48011444" Module="scangraph" Row="2" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="13031334" Module="scangraph" Row="3" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="48011444" Module="scangraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="环 形" ColumnCount="1" RowCount="1">
......@@ -54,7 +51,8 @@
<Boolean value="False" />
</RowDefinitions>
<Graphs>
<GraphComponent ID="56082556" Module="trendgraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="56082556" Module="trendgraph" Row="1" Column="0" RowSpan="1" ColumnSpan="1" />
<GraphComponent ID="24898733" Module="scangraph" Row="0" Column="0" RowSpan="1" ColumnSpan="1" />
</Graphs>
</GraphTabItem>
<GraphTabItem Header="定 点" ColumnCount="1" RowCount="2">
......@@ -77,5 +75,6 @@
</ControllerStates>
<DynAreaItems>
<DynAreaComponent ID="43395070" Module="FLY.FeedbackRenZiJia.UI.Client.UIModule.UIModule_DynAreaFB" />
<DynAreaComponent ID="25339754" Module="FLY.Weight.UI.Client.UIModule.UIModule_DynArea" />
</DynAreaItems>
</FLYLayout>
\ No newline at end of file
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