mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-03-24 08:54:21 +08:00
...
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user