mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-20 03:11:23 +08:00
demo: control_basic_datecombo
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Resource>
|
||||
<Folder name="GacGenConfig">
|
||||
<Folder name="ResX86">
|
||||
<Text name="Resource">..\..\UIRes\32bits\control_basic_datecombo.bin</Text>
|
||||
</Folder>
|
||||
<Folder name="ResX64">
|
||||
<Text name="Resource">..\..\UIRes\64bits\control_basic_datecombo.bin</Text>
|
||||
</Folder>
|
||||
</Folder>
|
||||
<Folder name="MainWindow">
|
||||
<Instance name="MainWindowResource">
|
||||
<Instance ref.Class="sample::MainWindow">
|
||||
<ref.Ctor><![CDATA[
|
||||
{
|
||||
localeList.Items.Add(new TextItem^("en-US"));
|
||||
localeList.Items.Add(new TextItem^("ja-JP"));
|
||||
localeList.Items.Add(new TextItem^("zh-CN"));
|
||||
localeCombo.SelectedIndex = 0;
|
||||
}
|
||||
]]></ref.Ctor>
|
||||
<Window ref.Name="self" Text="control_basic_datecombo" ClientSize="x:480 y:320">
|
||||
<Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" BorderVisible="false" MinSizeLimitation="LimitToElementAndChildren">
|
||||
<att.Rows>
|
||||
<CellOption>composeType:Absolute absolute:64</CellOption>
|
||||
<CellOption>composeType:MinSize</CellOption>
|
||||
<CellOption>composeType:MinSize</CellOption>
|
||||
<CellOption>composeType:Percentage percentage:1.0</CellOption>
|
||||
</att.Rows>
|
||||
<att.Columns>
|
||||
<CellOption>composeType:Percentage percentage:0.5</CellOption>
|
||||
<CellOption>composeType:MinSize</CellOption>
|
||||
<CellOption>composeType:Absolute absolute:160</CellOption>
|
||||
<CellOption>composeType:Percentage percentage:0.5</CellOption>
|
||||
</att.Columns>
|
||||
|
||||
<Cell Site="row:1 column:1">
|
||||
<Label Text="Locale: "/>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:1 column:2">
|
||||
<ComboBox ref.Name="localeCombo">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
<att.ListControl>
|
||||
<TextList ref.Name="localeList" HorizontalAlwaysVisible="false" VerticalAlwaysVisible="false"/>
|
||||
</att.ListControl>
|
||||
</ComboBox>
|
||||
</Cell>
|
||||
|
||||
<Cell Site="row:2 column:1 columnSpan:2">
|
||||
<DateComboBox ref.Name="dateCombo">
|
||||
<att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
|
||||
<att.DatePicker-set>
|
||||
<att.DateLocale-bind>localeCombo.SelectedIndex == -1 ? Application::GetApplication().Locale : cast Locale localeCombo.Text</att.DateLocale-bind>
|
||||
</att.DatePicker-set>
|
||||
</DateComboBox>
|
||||
</Cell>
|
||||
</Table>
|
||||
</Window>
|
||||
</Instance>
|
||||
</Instance>
|
||||
</Folder>
|
||||
</Resource>
|
||||
Reference in New Issue
Block a user