This commit is contained in:
Zihan Chen
2020-11-25 11:30:46 -08:00
parent 73929ce2be
commit b39360420d
3 changed files with 29 additions and 17 deletions

View File

@@ -111,30 +111,42 @@
<Folder name="MainWindow">
<InstanceStyle name="SharedStyle">
<Styles>
<Style ref.Path="//CheckBox">
<att.ControlTemplate>sample::TabHeaderButtonTemplate</att.ControlTemplate>
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
</Style>
<Style ref.Path="//Stack" Direction="Vertical" MinSizeLimitation="LimitToElementAndChildren"/>
<Style ref.Path="//RadioButton" GroupController-ref="groupDirection"/>
</Styles>
</InstanceStyle>
<Instance name="MainWindowResource">
<Instance ref.Class="sample::MainWindow" ref.Styles="res://MainWindow/SharedStyle">
<Instance ref.Class="sample::MainWindow" ref.Styles="res://MainWindow/SharedStyle" xmlns:x="presentation::controls::GuiSelectableButton::*">
<Window Text="kb_ctemplates" IconVisible="true" ClientSize="x:640 y:480">
<att.BoundsComposition-set PreferredMinSize="x:480 y:320"/>
<Tab>
<att.ControlTemplate>sample::TabTemplate</att.ControlTemplate>
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
<att.Pages>
<TabPage Text="First TabPage">
</TabPage>
<x:MutexGroupController ref.Name="groupDirection"/>
<TabPage Text="Second TabPage">
</TabPage>
<Tab>
<att.ControlTemplate>sample::TabTemplate</att.ControlTemplate>
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
<att.Pages>
<TabPage Text="First TabPage">
<Button Text="A button in the first page"/>
</TabPage>
<TabPage Text="Third TabPage">
</TabPage>
</att.Pages>
</Tab>
<TabPage Text="Second TabPage">
<Stack>
<StackItem><CheckBox Text="A check box in the second page"/></StackItem>
<StackItem><CheckBox Text="A check box in the second page"/></StackItem>
<StackItem><CheckBox Text="A check box in the second page"/></StackItem>
</Stack>
</TabPage>
<TabPage Text="Third TabPage">
<Stack>
<StackItem><RadioButton Text="A radio button in the third page"/></StackItem>
<StackItem><RadioButton Text="A radio button in the third page"/></StackItem>
<StackItem><RadioButton Text="A radio button in the third page"/></StackItem>
</Stack>
</TabPage>
</att.Pages>
</Tab>
</Window>
</Instance>
</Instance>