月更
This commit is contained in:
@@ -1,40 +1,67 @@
|
||||
<antd:AntdWindow x:Class="AntdWpfDemo.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/AntdWpf"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="using:AntdWpfDemo.Views"
|
||||
xmlns:views="clr-namespace:AntdWpfDemo.Views"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Width="930"
|
||||
Height="600"
|
||||
mc:Ignorable="d">
|
||||
<!--<antd:Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<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:,,,/AntdWpf;component/Themes/Theme.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Themes/Controls.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Themes/AntIcons.xaml" />
|
||||
<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:Window.Resources>-->
|
||||
<TabControl x:Name="Items" TabStripPlacement="Top" >
|
||||
<!--<TabItem Header="Tab1" >
|
||||
<StackPanel >
|
||||
<views:AlertView/>
|
||||
</StackPanel>
|
||||
</TabItem>
|
||||
<TabItem Header="Tab2" />
|
||||
<TabItem Header="Tab3" />-->
|
||||
</TabControl>
|
||||
</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">
|
||||
<!-- <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:AntdWindow>
|
||||
</TabControl>
|
||||
<antd:Alert Type="Success" Description="描述"/>
|
||||
<antd:Button Content="Button"/>
|
||||
|
||||
</StackPanel> -->
|
||||
</antd:AntWindow>
|
||||
Reference in New Issue
Block a user