Commit 70ae67ed authored by 潘栩锋's avatar 潘栩锋 🚴

画完界面

parent 50bd6a40
......@@ -71,21 +71,27 @@
</Compile>
<Compile Include="SysParam.cs" />
<Compile Include="TDGage.cs" />
<Compile Include="UIModule\IbcCtrlGraph.xaml.cs">
<Compile Include="UIModule\IbcCtrlGraph\IbcCtrlGraph.xaml.cs">
<DependentUpon>IbcCtrlGraph.xaml</DependentUpon>
</Compile>
<Compile Include="UIModule\MenuSelect.xaml.cs">
<DependentUpon>MenuSelect.xaml</DependentUpon>
</Compile>
<Compile Include="UIModule\UcIbcPanel.xaml.cs">
<Compile Include="UIModule\UcIbcPanel\UcIbcPanel.xaml.cs">
<DependentUpon>UcIbcPanel.xaml</DependentUpon>
</Compile>
<Compile Include="UIModule\WdGraphSet.xaml.cs">
<Compile Include="UIModule\UcRotaryPanel\UcRotaryPanel.xaml.cs">
<DependentUpon>UcRotaryPanel.xaml</DependentUpon>
</Compile>
<Compile Include="UIModule\IbcCtrlGraph\WdGraphSet.xaml.cs">
<DependentUpon>WdGraphSet.xaml</DependentUpon>
</Compile>
<Compile Include="UIModule\WdK123.xaml.cs">
<Compile Include="UIModule\UcIbcPanel\WdK123.xaml.cs">
<DependentUpon>WdK123.xaml</DependentUpon>
</Compile>
<Compile Include="UIModule\UcTractionPanel\UcTractionPanel.xaml.cs">
<DependentUpon>UcTractionPanel.xaml</DependentUpon>
</Compile>
<Page Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
......@@ -106,11 +112,15 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Themes\GeometryDict.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Themes\Styles.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UIModule\IbcCtrlGraph.xaml">
<Page Include="UIModule\IbcCtrlGraph\IbcCtrlGraph.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
......@@ -118,18 +128,34 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UIModule\UcIbcPanel.xaml">
<Page Include="UIModule\UcIbcPanel\UcIbcPanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UIModule\WdGraphSet.xaml">
<Page Include="UIModule\UcRotaryPanel\UcRotaryPanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UIModule\UcRotaryPanel\UcRotaryPanelStyle.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="UIModule\WdK123.xaml">
<Page Include="UIModule\IbcCtrlGraph\WdGraphSet.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UIModule\UcIbcPanel\WdK123.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UIModule\UcTractionPanel\UcTractionPanelStyle.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="UIModule\UcTractionPanel\UcTractionPanel.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
......@@ -202,5 +228,6 @@
<Version>3.2.5</Version>
</PackageReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ 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">
<Geometry x:Key="Geometry_origin">
M512 150.016A361.984 361.984 0 1 1 150.016 512 362.496 362.496 0 0 1 512 150.016M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z
M512 512m-229.376 0a229.376 229.376 0 1 0 458.752 0 229.376 229.376 0 1 0-458.752 0Z
</Geometry>
<Geometry x:Key="Geometry_light">
M510.707071 140.282828C343.973495 140.282828 208.808081 275.448242 208.808081 442.181818c0 166.734869 135.165414 301.89899 301.89899 301.89899 166.734869 0 301.89899-135.164121 301.89899-301.89899 0-166.733576-135.164121-301.89899-301.89899-301.89899z
m217.056969 314.181818c-18.531556 0-34.417778-15.896566-34.417777-31.79701 0-50.344081-18.531556-90.096485-55.59596-121.890909-37.064404-31.800889-76.774141-47.696162-119.135677-47.696161-21.178182 0-34.412606-13.252525-34.412606-34.450101 0-18.548364 13.234424-31.802182 34.412606-31.802182 63.539717 0 119.135677 21.202747 169.439677 63.597899 50.298828 42.397737 74.127515 100.693333 74.127515 172.240161 0 15.901737-13.239596 31.798303-34.417778 31.798303z
</Geometry>
</ResourceDictionary>
\ No newline at end of file
......@@ -5,6 +5,7 @@
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.Integrated.UI.Client;component/Themes/GeometryDict.xaml"/>
</ResourceDictionary.MergedDictionaries>
<SolidColorBrush x:Key="Color_title" Color="#FF464646"/>
......@@ -20,7 +21,8 @@
<sys:Double x:Key="FontSize_title">18</sys:Double>
<sys:Double x:Key="FontSize_unit">18</sys:Double>
<sys:Double x:Key="FontSize_text">48</sys:Double>
<Style x:Key="TextBlockStyle_title" TargetType="TextBlock">
<Setter Property="FontSize" Value="{StaticResource FontSize_title}"/>
<Setter Property="Foreground" Value="{DynamicResource Color_title}"/>
......@@ -62,4 +64,12 @@
<Setter Property="Height" Value="40"/>
<Setter Property="Margin" Value="5"/>
</Style>
<Style x:Key="HeaderBroadTextStyle" TargetType="TextBlock">
<Setter Property="FontSize" Value="35"/>
<Setter Property="Foreground" Value="{StaticResource WhiteBrush}"/>
<Setter Property="Background" Value="{StaticResource GrayBrush2}"/>
<Setter Property="Margin" Value="3"/>
<Setter Property="Padding" Value="7,0"/>
</Style>
</ResourceDictionary>
\ No newline at end of file
<UserControl x:Class="FLY.Integrated.UI.Client.UIModule.UcRotaryPanel"
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.Integrated.UI.Client.UIModule"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:flyctrl="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:iCommon="clr-namespace:FLY.Integrated.Common;assembly=FLY.Integrated"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance iCommon:WinderAccessory}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="UcRotaryPanelStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Border Grid.Row="1" Margin="{StaticResource ControlMargin}" CornerRadius="5" Background="{StaticResource WhiteBrush}" >
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Viewbox Margin="30,10">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<StackPanel >
<TextBlock Text="显示" FontSize="{StaticResource FontSize_title}" Margin="3,0" Foreground="{StaticResource TextBrush}"/>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding RotaryFreq,StringFormat={}{0:F1}}" Style="{StaticResource TextBlockStyle_FieldContent}" FontSize="25" Foreground="{StaticResource TextBrush}"/>
<TextBlock Text="Hz" Style="{StaticResource TextBlockStyle_FieldContent_mm}" FontSize="{StaticResource FontSize_unit}" />
</StackPanel>
</StackPanel>
<TextBlock Style="{StaticResource HeaderBroadTextStyle}" Text="旋转塔"
Grid.Column="2"/>
<flyctrl:NoToggleButton Style="{StaticResource ButonStyle_rOrg}"
Grid.Column="2"
HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,-30,-30"
IsChecked="{Binding IsRotaryOrg}" />
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" >
<Button Style="{StaticResource ButtonStyle_empty}" Click="button_freq_Click">
<StackPanel Orientation="Horizontal" Margin="20,0,0,0">
<TextBlock Text="{Binding RotaryFreqSet,StringFormat={}{0:F1}}" Style="{StaticResource TextBlockStyle_FieldContent}" FontSize="35" Foreground="{StaticResource HighlightBrush}"/>
<TextBlock Text="Hz" Style="{StaticResource TextBlockStyle_FieldContent_mm}"/>
</StackPanel>
</Button>
</StackPanel>
<flyctrl:ToggleButtonOnOff OnLabel="运行" OffLabel="停止" IsChecked="{Binding IsRotaryOn}"
HorizontalAlignment="Left" Margin="{StaticResource ControlMargin}"
Grid.Row="2" Grid.ColumnSpan="2"
/>
</Grid>
</Viewbox>
<Viewbox Grid.Column="1" Margin="30,10" MaxHeight="110" HorizontalAlignment="Left" VerticalAlignment="Top">
<WrapPanel Orientation="Horizontal" >
<StackPanel >
<flyctrl:NoToggleButton Style="{StaticResource NoToggleButtonStyle_light}" IsChecked="{Binding IsRotaryForw}">
正转中
</flyctrl:NoToggleButton>
<flyctrl:NoToggleButton Style="{StaticResource NoToggleButtonStyle_light}" IsChecked="{Binding IsRotaryBackw}">
反转中
</flyctrl:NoToggleButton>
</StackPanel>
<StackPanel >
<flyctrl:NoToggleButton Style="{StaticResource NoToggleButtonStyle_light}" IsChecked="{Binding IsRotaryForwTurn}">
正转换向
</flyctrl:NoToggleButton>
<flyctrl:NoToggleButton Style="{StaticResource NoToggleButtonStyle_light}" IsChecked="{Binding IsRotaryOrgSign}">
复位原点
</flyctrl:NoToggleButton>
<flyctrl:NoToggleButton Style="{StaticResource NoToggleButtonStyle_light}" IsChecked="{Binding IsRotaryBackwTurn}">
反转换向
</flyctrl:NoToggleButton>
</StackPanel>
<StackPanel >
<flyctrl:NoToggleButton Style="{StaticResource NoToggleButtonStyle_light}" IsChecked="{Binding IsRotaryForwLimit}">
正向限位
</flyctrl:NoToggleButton>
<flyctrl:NoToggleButton Style="{StaticResource NoToggleButtonStyle_light}" IsChecked="{Binding IsRotaryBackwLimit}">
反向限位
</flyctrl:NoToggleButton>
</StackPanel>
</WrapPanel>
</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.Integrated.UI.Client.UIModule
{
/// <summary>
/// UcRotaryPanel.xaml 的交互逻辑
/// </summary>
public partial class UcRotaryPanel : UserControl
{
public UcRotaryPanel()
{
InitializeComponent();
}
}
}
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:FLY.Integrated.UI.Client.UIModule"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:flyctrl="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.Integrated.UI.Client;component/Themes/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<sys:Double x:Key="FontSize_title">18</sys:Double>
<sys:Double x:Key="FontSize_unit">12</sys:Double>
<sys:Double x:Key="FontSize_context_min">32</sys:Double>
<sys:Double x:Key="FontSize_context_max">48</sys:Double>
<sys:Double x:Key="MaxHeight_viewer1">130</sys:Double>
<Style TargetType="flyctrl:NoToggleButton" x:Key="ButonStyle_rOn" >
<Setter Property="Margin" Value="{StaticResource ControlMargin}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="OffBrush" Value="{StaticResource ValidationSummaryColor5}" />
<Setter Property="OnBrush" Value="{StaticResource AccentColorBrush}" />
<Setter Property="OffLabel" Value="停止中" />
<Setter Property="OnLabel" Value="运行中" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="flyctrl:NoToggleButton">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}" >
<Ellipse Stretch="Uniform" Fill="{StaticResource WhiteBrush}" Margin="2" />
<iconPacks:PackIconMaterial x:Name="icon" Kind="StopCircle" Foreground="{TemplateBinding OffBrush}" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"/>
<TextBlock x:Name="tbOnOff" Margin="0,0,0,-10" Padding="2" Foreground="{StaticResource WhiteBrush}" FontSize="15" VerticalAlignment="Bottom" HorizontalAlignment="Center"
Background="{TemplateBinding OffBrush}"
Text="{TemplateBinding OffLabel}"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="icon" Property="Foreground" Value="{Binding OnBrush,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
<Setter TargetName="icon" Property="Kind" Value="PlayCircle"/>
<Setter TargetName="tbOnOff" Property="Text" Value="{Binding OnLabel,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
<Setter TargetName="tbOnOff" Property="Background" Value="{Binding OnBrush,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter TargetName="icon" Property="Width" Value="46"/>
<Setter TargetName="grid" Property="Margin" Value="2"/>
<Setter TargetName="grid" Property="Effect" Value="{x:Null}" />
<Setter Property="Opacity" Value="1"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.7"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="flyctrl:NoToggleButton" x:Key="ButonStyle_rOrg" >
<Setter Property="Margin" Value="{StaticResource ControlMargin}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="OffBrush" Value="{StaticResource GrayBrush1}" />
<Setter Property="OnBrush" Value="{StaticResource AccentColorBrush}" />
<Setter Property="OffLabel" Value="复位" />
<Setter Property="OnLabel" Value="复位中" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="flyctrl:NoToggleButton">
<Border Background="Transparent">
<Grid x:Name="grid" Style="{StaticResource GridStyle_ButtonShadow}" >
<Ellipse Stretch="Uniform" Fill="{StaticResource WhiteBrush}" Margin="2" Width="40" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"/>
<iconPacks:PackIconMaterial x:Name="icon" Kind="Bullseye" Foreground="{TemplateBinding OffBrush}" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}"/>
<TextBlock x:Name="tbOnOff" Margin="0,0,0,-10" Padding="2" Foreground="{StaticResource WhiteBrush}" FontSize="15" VerticalAlignment="Bottom" HorizontalAlignment="Center"
Background="{TemplateBinding OffBrush}"
Text="{TemplateBinding OffLabel}"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="icon" Property="Foreground" Value="{Binding OnBrush,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
<Setter TargetName="tbOnOff" Property="Text" Value="{Binding OnLabel,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
<Setter TargetName="tbOnOff" Property="Background" Value="{Binding OnBrush,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter TargetName="icon" Property="Width" Value="46"/>
<Setter TargetName="grid" Property="Margin" Value="2"/>
<Setter TargetName="grid" Property="Effect" Value="{x:Null}" />
<Setter Property="Opacity" Value="1"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.7"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="flyctrl:NoToggleButton" x:Key="NoToggleButtonStyle_light" >
<Setter Property="Margin" Value="0"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="OffBrush" Value="{StaticResource GrayBrush1}" />
<Setter Property="OnBrush" Value="{StaticResource AccentColorBrush2}" />
<Setter Property="IsEnabled" Value="False" />
<Setter Property="OnLabel" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}"/>
<Setter Property="OffLabel" Value="{Binding Content,RelativeSource={RelativeSource Mode=Self}}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="flyctrl:NoToggleButton">
<StackPanel Orientation="Horizontal">
<Path x:Name="icon" Data="{StaticResource Geometry_light}" Stretch="Uniform" Width="30" Margin="2" Fill="{TemplateBinding OffBrush}"/>
<TextBlock x:Name="tbOnOff" Text="{TemplateBinding OffLabel}" Style="{StaticResource TextBlockStyle_FieldHeader}" Foreground="{StaticResource TextBrush}"/>
</StackPanel>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="icon" Property="Fill" Value="{Binding OnBrush,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
<Setter TargetName="tbOnOff" Property="Text" Value="{Binding OnLabel,RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
\ No newline at end of file
<UserControl x:Class="FLY.Integrated.UI.Client.UIModule.UcTractionPanel"
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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:flyctrl="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:iCommon="clr-namespace:FLY.Integrated.Common;assembly=FLY.Integrated"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance iCommon:WinderAccessory}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="UcTractionPanelStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Border Grid.Row="0" Margin="5" CornerRadius="5" Background="{StaticResource Color_theme_background}" >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition SharedSizeGroup="A"/>
<ColumnDefinition SharedSizeGroup="A"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<Viewbox Margin="30,10">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<StackPanel >
<TextBlock Text="显示" FontSize="{StaticResource FontSize_title}" Margin="3,0" Foreground="{StaticResource TextBrush}"/>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding TractionVelocity,StringFormat={}{0:F1}}" Style="{StaticResource TextBlockStyle_FieldContent}" FontSize="25" Foreground="{StaticResource TextBrush}"/>
<TextBlock Text="Hz" Style="{StaticResource TextBlockStyle_FieldContent_mm}" FontSize="{StaticResource FontSize_unit}" />
</StackPanel>
</StackPanel>
<TextBlock Style="{StaticResource HeaderBroadTextStyle}" Text="牵引"
Grid.Column="2"/>
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" >
<Button Style="{StaticResource ButtonStyle_empty}" Click="button_freq_Click">
<StackPanel Orientation="Horizontal" Margin="20,0,0,0">
<TextBlock Text="{Binding TractionVelocitySet,StringFormat={}{0:F1}}" Style="{StaticResource TextBlockStyle_FieldContent}" FontSize="35" Foreground="{StaticResource HighlightBrush}"/>
<TextBlock Text="Hz" Style="{StaticResource TextBlockStyle_FieldContent_mm}"/>
</StackPanel>
</Button>
</StackPanel>
<flyctrl:ToggleButtonOnOff OnLabel="运行" OffLabel="停止" IsChecked="{Binding TractionOn}"
HorizontalAlignment="Left" Margin="{StaticResource ControlMargin}"
Grid.Row="2" Grid.ColumnSpan="2"
/>
</Grid>
</Viewbox>
<Viewbox Margin="30,10" Grid.Column="1" VerticalAlignment="Top">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<TextBlock Style="{StaticResource HeaderBroadTextStyle}" Text="气垫辊"
Grid.Column="2"/>
<flyctrl:ToggleButtonOnOff OnLabel="运行" OffLabel="停止" IsChecked="{Binding AirCushionOn}"
HorizontalAlignment="Left" Margin="{StaticResource ControlMargin}"
Grid.Row="2" Grid.ColumnSpan="2"
/>
</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.Integrated.UI.Client.UIModule
{
/// <summary>
/// UcTractionPanel.xaml 的交互逻辑
/// </summary>
public partial class UcTractionPanel : UserControl
{
public UcTractionPanel()
{
InitializeComponent();
}
}
}
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:FLY.Integrated.UI.Client.UIModule"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:flyctrl="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.Integrated.UI.Client;component/Themes/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<sys:Double x:Key="FontSize_title">18</sys:Double>
<sys:Double x:Key="FontSize_unit">12</sys:Double>
<sys:Double x:Key="FontSize_context_min">32</sys:Double>
<sys:Double x:Key="FontSize_context_max">48</sys:Double>
<sys:Double x:Key="MaxHeight_viewer1">130</sys:Double>
</ResourceDictionary>
\ 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