<UserControl x:Class="PdmSwPlugin.Main.MainTab"
|
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:PdmSwPlugin.Main"
|
mc:Ignorable="d"
|
d:DesignHeight="450" d:DesignWidth="800">
|
<UserControl.Resources>
|
<ResourceDictionary>
|
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary Source="/PdmSwPlugin.Common;component/Style/LinkButton.xaml"/>
|
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary>
|
</UserControl.Resources>
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition />
|
<RowDefinition Height="Auto"/>
|
</Grid.RowDefinitions>
|
<TabControl Grid.Row="0" x:Name="tabControl" Background="#f0f0f0">
|
<TabControl.Resources>
|
<Style TargetType="{x:Type TabItem}">
|
<Setter Property="FontSize" Value="16"/>
|
<Style.Triggers>
|
<Trigger Property="IsSelected" Value="True">
|
<Setter Property="Background" Value="#f0f0f0"/>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
</TabControl.Resources>
|
</TabControl>
|
<DockPanel Grid.Row="1" Margin="0" LastChildFill="False">
|
<Label DockPanel.Dock="Left" x:Name="userLabel" FontWeight="Bold" Padding="0" Margin="0,0,20,0" />
|
<Button DockPanel.Dock="Left" Style="{StaticResource LinkButton}" Click="Button_Click">退出登录</Button>
|
<Button DockPanel.Dock="Right" Style="{StaticResource LinkButton}" Margin="0,0,20,0" Click="Refresh_Click">刷新</Button>
|
<Label DockPanel.Dock="Right" x:Name="configLabel" FontWeight="Bold" Padding="0" Margin="0,0,20,0" />
|
<Label DockPanel.Dock="Right" FontWeight="Bold" Padding="0" Content="历史节点:" />
|
</DockPanel>
|
</Grid>
|
</UserControl>
|