67 lines
3.0 KiB
XML
67 lines
3.0 KiB
XML
<antd:AntWindow x:Class="AntDesignWPFDemo.Views.ShellView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:antd="https://github.com/ShrlAlgo/AntDesignWPF"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="using:AntDesignWPFDemo.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:views="clr-namespace:AntDesignWPFDemo.Views"
|
|
Width="930"
|
|
Height="600"
|
|
mc:Ignorable="d">
|
|
<antd:AntWindow.Resources>
|
|
<ObjectDataProvider x:Key="DockEnumValues"
|
|
MethodName="GetValues"
|
|
ObjectType="{x:Type sys:Enum}">
|
|
<ObjectDataProvider.MethodParameters>
|
|
<x:Type TypeName="Dock" />
|
|
</ObjectDataProvider.MethodParameters>
|
|
</ObjectDataProvider>
|
|
<!-- ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Theme.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/Controls.xaml" />
|
|
<ResourceDictionary Source="pack://application:,,,/AntDesignWPF;component/Themes/AntIcons.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary> -->
|
|
</antd:AntWindow.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Margin="5"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Orientation="Horizontal">
|
|
<Label VerticalAlignment="Center" Content="标签对齐:" />
|
|
<ComboBox x:Name="AlignmentComboBox"
|
|
Width="120"
|
|
ItemsSource="{Binding Source={StaticResource DockEnumValues}}" />
|
|
</StackPanel>
|
|
<!-- antd:TabControlHelper.IsEditable="True"
|
|
antd:TabControlHelper.TabType="Card" -->
|
|
<TabControl Grid.Row="1" x:Name="Items" TabStripPlacement="{Binding ElementName=AlignmentComboBox, Path=SelectedItem}">
|
|
<!-- <TabItem Header="Tab1" >
|
|
<StackPanel >
|
|
<views:AlertView/>
|
|
</StackPanel>
|
|
</TabItem>
|
|
<TabItem Header="Tab2" />
|
|
<TabItem Header="Tab3" /> -->
|
|
</TabControl>
|
|
</Grid>
|
|
|
|
<!-- <StackPanel>
|
|
|
|
<TabControl TabStripPlacement="Left">
|
|
<TabItem Header="Tab1" />
|
|
<TabItem Header="Tab2" />
|
|
<TabItem Header="Tab3" />
|
|
</TabControl>
|
|
<antd:Alert Type="Success" Description="描述"/>
|
|
<antd:Button Content="Button"/>
|
|
|
|
</StackPanel> -->
|
|
</antd:AntWindow> |