| | |
| | | </UserControl.Resources> |
| | | |
| | | <Border Style="{StaticResource CardBoarder}" Padding="0" Background="#FFF"> |
| | | <TabControl |
| | | pu:TabControlHelper.HeaderPanelAlignment="Stretch" |
| | | pu:TabControlHelper.ItemsBackground="{DynamicResource VerBar}" |
| | | pu:TabControlHelper.ItemsForeground="#FFFFFF" |
| | | pu:TabControlHelper.ItemsFontSize="14" |
| | | pu:TabControlHelper.ItemsHeight="30" |
| | | pu:TabControlHelper.ItemsHorizontalHeaderAlignment="Left" |
| | | pu:TabControlHelper.ItemsHoverBackground="{DynamicResource SecondPrimaryColor}" |
| | | pu:TabControlHelper.ItemsHoverForeground="#FFFFFF" |
| | | pu:TabControlHelper.ItemsPadding="20,0,20,0" |
| | | pu:TabControlHelper.ItemsRibbonLineCornerRadius="4" |
| | | pu:TabControlHelper.ItemsRibbonLineMargin="0,5,0,5" |
| | | pu:TabControlHelper.ItemsRibbonLineThickness="4" |
| | | pu:TabControlHelper.ItemsRibbonLineVisibility="Visible" |
| | | pu:TabControlHelper.ItemsSelectedBackground="#FFF" |
| | | pu:TabControlHelper.ItemsSelectedRibbonLineBrush="#FFFFFF" |
| | | pu:TabControlHelper.ItemsSelectedRibbonLineThickness="2"> |
| | | <TabControl.Template> |
| | | <ControlTemplate TargetType="{x:Type TabControl}"> |
| | | <Grid> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="*"/> |
| | | </Grid.RowDefinitions> |
| | | <Border BorderThickness="1,1,1,0" BorderBrush="#acacac" Background="{DynamicResource VerBar}" Padding="2,2,10,0"> |
| | | <TabPanel x:Name="HeaderPanel" Grid.Row="0" Panel.ZIndex="1" IsItemsHost="True"/> |
| | | </Border> |
| | | |
| | | <Border Grid.Row="1" BorderBrush="{TemplateBinding BorderBrush}" |
| | | BorderThickness="1,0,1,1" Background="{TemplateBinding Background}"> |
| | | <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent"/> |
| | | </Border> |
| | | </Grid> |
| | | </ControlTemplate> |
| | | </TabControl.Template> |
| | | <TabItem Header="老化调试"> |
| | | <Grid dp:GridHelper.Space="5" Background="#f3f9ff"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | |
| | | |
| | | <pu:Switch CheckedContent="静音ON" x:Name="lightSw" |
| | | CheckedBackground="Green" |
| | | Background="{StaticResource DangerColor}" |
| | | Background="{DynamicResource DangerColor}" |
| | | IsChecked="{Binding PlcMute,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" |
| | | Content="静音OFF"/> |
| | | </StackPanel> |
| | | |
| | | <local:BurnInOvenCollection Grid.Row="1" Grid.Column="0" x:Name="ovenCollection"/> |
| | | </Grid> |
| | | </TabItem> |
| | | <TabItem Header="电流监控"> |
| | | |
| | | <Grid dp:GridHelper.Space="8"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <DockPanel> |
| | | <StackPanel dp:StackPanelHelper.ChildSpace="10" DockPanel.Dock="Right" Orientation="Horizontal"> |
| | | <Button Style="{StaticResource AddBtn}" x:Name="addBtn" Click="Button_Click"/> |
| | | <Button Style="{StaticResource RfhBtn}" x:Name="rfhBtn" Click="Button_Click"/> |
| | | <Button Style="{StaticResource ExportBtn}" x:Name="exportBtn" Click="Button_Click"/> |
| | | <Button Style="{StaticResource ImportBtn}" x:Name="importBtn" Click="Button_Click"/> |
| | | <!--<Button Style="{StaticResource DelBtn}"/>--> |
| | | </StackPanel> |
| | | |
| | | <StackPanel Orientation="Horizontal" VerticalAlignment="Center" dp:StackPanelHelper.ChildSpace="10"> |
| | | <pu:FormGroup FontSize="18" Header="电流传感器" Orientation="Horizontal"> |
| | | |
| | | </pu:FormGroup> |
| | | <Button Style="{StaticResource ResetBtn}" |
| | | x:Name="connectAllBtn" Click="Button_Click" Content="全部连接" /> |
| | | <Button Style="{StaticResource SettingBtn}" Content="全部断开" x:Name="disConnectAllBtn" Click="Button_Click"/> |
| | | <!--<Button Style="{StaticResource SettingBtn}" Content="设置" x:Name="settingBtn" Click="Button_Click"/>--> |
| | | </StackPanel> |
| | | </DockPanel> |
| | | <TabControl Grid.Row="1" |
| | | pu:TabControlHelper.HeaderPanelAlignment="Stretch" |
| | | pu:TabControlHelper.ItemsBackground="{DynamicResource VerBar}" |
| | | pu:TabControlHelper.ItemsForeground="#FFFFFF" |
| | | pu:TabControlHelper.ItemsFontSize="14" |
| | | pu:TabControlHelper.ItemsHeight="30" |
| | | pu:TabControlHelper.ItemsHorizontalHeaderAlignment="Left" |
| | | pu:TabControlHelper.ItemsHoverBackground="{DynamicResource SecondPrimaryColor}" |
| | | pu:TabControlHelper.ItemsHoverForeground="#FFFFFF" |
| | | pu:TabControlHelper.ItemsPadding="20,0,0,0" |
| | | pu:TabControlHelper.ItemsRibbonLineCornerRadius="4" |
| | | pu:TabControlHelper.ItemsRibbonLineMargin="0,5,0,5" |
| | | pu:TabControlHelper.ItemsRibbonLineThickness="4" |
| | | pu:TabControlHelper.ItemsRibbonLineVisibility="Visible" |
| | | pu:TabControlHelper.ItemsSelectedBackground="#FFF" |
| | | pu:TabControlHelper.ItemsSelectedRibbonLineBrush="#FFFFFF" |
| | | pu:TabControlHelper.ItemsSelectedRibbonLineThickness="2" |
| | | pu:TabControlHelper.ItemsWidth="100" > |
| | | <TabControl.Template> |
| | | <ControlTemplate TargetType="{x:Type TabControl}"> |
| | | <Grid> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="*"/> |
| | | </Grid.RowDefinitions> |
| | | <Border BorderThickness="1,1,1,0" BorderBrush="#acacac" Background="{DynamicResource VerBar}" Padding="2,2,10,0"> |
| | | <TabPanel x:Name="HeaderPanel" Grid.Row="0" Panel.ZIndex="1" IsItemsHost="True"/> |
| | | </Border> |
| | | |
| | | <Border Grid.Row="1" BorderBrush="{TemplateBinding BorderBrush}" |
| | | BorderThickness="1,0,1,1" Background="{TemplateBinding Background}"> |
| | | <ContentPresenter x:Name="PART_SelectedContentHost" ContentSource="SelectedContent"/> |
| | | </Border> |
| | | </Grid> |
| | | </ControlTemplate> |
| | | </TabControl.Template> |
| | | |
| | | <TabItem Header="控件"> |
| | | <ScrollViewer Grid.Row="1" Grid.Column="0" |
| | | Style="{StaticResource DefaultScrollViewer}" |
| | | VerticalScrollBarVisibility="Auto"> |
| | | <WrapPanel Background="#FFF" x:Name="diWrap"/> |
| | | </ScrollViewer> |
| | | </TabItem> |
| | | <TabItem Header="列表"> |
| | | <Grid> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition/> |
| | | </Grid.RowDefinitions> |
| | | <ListView Grid.Row="1" Style="{StaticResource DefaultListTable}" x:Name="table" |
| | | ItemsSource="{Binding Datasource}" |
| | | VirtualizingPanel.IsContainerVirtualizable="True" |
| | | VirtualizingPanel.IsVirtualizing="True" |
| | | VirtualizingPanel.VirtualizationMode="Standard"> |
| | | <ListView.Resources> |
| | | <Style x:Key="RowLink" TargetType="Button" BasedOn="{StaticResource LinkButton}"> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding Path=IsMouseOver, |
| | | RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListViewItem,AncestorLevel=1}}" |
| | | Value="True"> |
| | | <Setter Property="Foreground" Value="#FFF"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding Path=IsSelected, |
| | | RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListViewItem,AncestorLevel=1}}" |
| | | Value="True"> |
| | | <Setter Property="Foreground" Value="#FFF"/> |
| | | </DataTrigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | | |
| | | <Style x:Key="DeleteLink" TargetType="Button" BasedOn="{StaticResource DangerLinkButton}"> |
| | | <Setter Property="Content" Value="{DynamicResource App.Delete}"/> |
| | | </Style> |
| | | |
| | | <Style x:Key="EditLink" TargetType="Button" BasedOn="{StaticResource RowLink}"> |
| | | <Setter Property="Content" Value="{DynamicResource App.Edit}"/> |
| | | </Style> |
| | | </ListView.Resources> |
| | | <ListView.View> |
| | | <GridView AllowsColumnReorder="False"> |
| | | <GridViewColumn Width="60" Header="#"> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <TextBlock Text="{Binding Converter={StaticResource lvRowNumber}, |
| | | RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListViewItem,AncestorLevel=1}}"/> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | |
| | | <GridViewColumn Width="700"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource doc.name}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Name}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="100"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="IP"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Ip}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="端口"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Port}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="地址"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Address}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="通道"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <Border Style="{StaticResource CellBorder}"> |
| | | <TextBlock Style="{StaticResource ListTableTextBlock}" |
| | | Text="{Binding Channel}"/> |
| | | </Border> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | <GridViewColumn Width="120"> |
| | | <GridViewColumn.Header> |
| | | <TextBlock Text="{DynamicResource App.Opt}"/> |
| | | </GridViewColumn.Header> |
| | | <GridViewColumn.CellTemplate> |
| | | <DataTemplate> |
| | | <StackPanel Orientation="Horizontal" dp:StackPanelHelper.ChildSpace="10"> |
| | | <Button x:Name="editBtn" Style="{StaticResource EditLink}" |
| | | Click="Button_Click" Tag="{Binding }"/> |
| | | |
| | | <Button x:Name="delBtn" Style="{StaticResource DeleteLink}" |
| | | Click="Button_Click" Tag="{Binding }"/> |
| | | </StackPanel> |
| | | </DataTemplate> |
| | | </GridViewColumn.CellTemplate> |
| | | </GridViewColumn> |
| | | </GridView> |
| | | </ListView.View> |
| | | </ListView> |
| | | </Grid> |
| | | </TabItem> |
| | | </TabControl> |
| | | </Grid> |
| | | </TabItem> |
| | | </TabControl> |
| | | </Border> |
| | | </hb:SimpleMaskControl> |
| | | |