forked from rds1983/Myra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allControls.xmmp
106 lines (106 loc) · 5.29 KB
/
allControls.xmmp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<Project>
<Project.ExportOptions Namespace="Myra.Samples.AllWidgets" Class="AllWidgets" OutputPath="C:\Projects\Myra\samples\Myra.Samples.AllWidgets" />
<VerticalStackPanel Spacing="8">
<VerticalStackPanel.Proportions>
<Proportion Type="Auto" />
<Proportion Type="Fill" />
</VerticalStackPanel.Proportions>
<HorizontalMenu VerticalAlignment="Stretch" Id="_mainMenu">
<MenuItem Text="&File" Id="_menuFile">
<MenuItem Text="&Open" ShortcutText="Ctrl+O" Id="_menuItemOpenFile" />
<MenuItem Text="&Save" ShortcutText="Ctrl+S" Id="_menuItemSaveFile" />
<MenuItem Text="Choose Fol&der" ShortcutText="Ctrl+D" Id="_menuItemChooseFolder" />
<MenuItem Text="Choose Co&lor" ShortcutText="Ctrl+L" Id="_menuItemChooseColor" />
<MenuSeparator />
<MenuItem Text="&Quit" ShortcutText="Ctrl+Q" Id="_menuItemQuit" />
</MenuItem>
<MenuItem Text="&Edit" Id="_menuEdit">
<MenuItem Text="&Copy" ShortcutText="Ctrl+Insert, Ctrl+C" Id="_menuItemCopy" />
<MenuItem Text="&Paste" ShortcutText="Shift+Insert, Ctrl+V" Id="_menuItemPaste" />
<MenuSeparator />
<MenuItem Text="&Undo" ShortcutText="Ctrl+Z" Id="_menuItemUndo" />
<MenuItem Text="&Redo" ShortcutText="Ctrl+Y" Id="_menuItemRedo" />
</MenuItem>
<MenuItem Text="&Help" Id="_menuHelp">
<MenuItem Text="&About" Id="_menuItemAbout" />
</MenuItem>
</HorizontalMenu>
<HorizontalSplitPane>
<ScrollViewer>
<Grid ColumnSpacing="8" RowSpacing="8" Id="_gridRight">
<Grid.DefaultRowProportion Type="Auto" />
<Grid.ColumnsProportions>
<Proportion Type="Auto" />
<Proportion Type="Auto" />
<Proportion Type="Fill" />
</Grid.ColumnsProportions>
<Label Text="Button:" />
<ImageTextButton Text="Save File" Padding="8, 0" GridColumn="1" Id="_buttonSaveFile" />
<TextBox GridColumn="2" Id="_textSaveFile" />
<Label Text="Another Button:" GridRow="1" />
<ImageTextButton Text="Open File" Padding="8, 0" GridColumn="1" GridRow="1" Id="_buttonOpenFile" />
<TextBox GridColumn="2" GridRow="1" Id="_textOpenFile" />
<Label Text="Blue Button:" GridRow="2" />
<ImageTextButton Text="Choose Folder" StyleName="blue" Padding="8, 0" GridColumn="1" GridRow="2" Id="_buttonChooseFolder" />
<TextBox GridColumn="2" GridRow="2" Id="_textChooseFolder" />
<Label Text="Text Button:" GridRow="3" Id="_textButtonLabel" />
<TextButton Text="Choose Color" Padding="8, 0" GridColumn="1" GridRow="3" Id="_buttonChooseColor" />
<Label Text="Image Button:" GridRow="4" />
<ImageButton Padding="8, 0" GridColumn="1" GridRow="4" Id="_imageButton" />
<CheckBox Text="This is checkbox" ImageWidth="10" ImageHeight="10" GridRow="5" GridColumnSpan="2" />
<Label Text="Horizontal Slider:" GridRow="6" />
<HorizontalSlider GridColumn="1" GridRow="6" GridColumnSpan="2" />
<Label Text="Combo Box:" GridRow="7" />
<ComboBox Width="200" GridColumn="1" GridRow="7" GridColumnSpan="2">
<ListItem Text="Red" Color="#FF0000FF" />
<ListItem Text="Green" Color="#00FF00FF" />
<ListItem Text="Blue" Color="#0080FFFF" />
</ComboBox>
<Label Text="Text Field:" GridRow="8" />
<TextBox GridColumn="1" GridRow="8" GridColumnSpan="2" />
<Label Text="Spin Button:" GridRow="9" />
<SpinButton Value="1" Width="100" GridColumn="1" GridRow="9" />
<Label Text="List Box:" GridRow="10" />
<ListBox Width="200" GridColumn="1" GridRow="10" GridColumnSpan="2">
<ListItem Text="Red" Color="#FF0000FF" />
<ListItem Text="Green" Color="#00FF00FF" />
<ListItem Text="Blue" Color="#0000FFFF" />
</ListBox>
<Label Text="Vertical Menu:" GridRow="11" />
<VerticalMenu GridColumn="1" GridRow="11">
<MenuItem Text="Start New Game" />
<MenuItem Text="Options" />
<MenuItem Text="Quit" />
</VerticalMenu>
<Label Text="Tree" GridRow="12" />
</Grid>
</ScrollViewer>
<VerticalSplitPane>
<Grid RowSpacing="8">
<Grid.ColumnsProportions>
<Proportion Type="Fill" />
</Grid.ColumnsProportions>
<Grid.RowsProportions>
<Proportion Type="Auto" />
<Proportion Type="Fill" />
</Grid.RowsProportions>
<Label Text="Vertical Slider:" />
<VerticalSlider HorizontalAlignment="Center" GridRow="1" />
</Grid>
<Grid RowSpacing="8">
<Grid.ColumnsProportions>
<Proportion Type="Fill" />
</Grid.ColumnsProportions>
<Grid.RowsProportions>
<Proportion Type="Auto" />
<Proportion Type="Auto" />
<Proportion Type="Fill" />
</Grid.RowsProportions>
<Label Text="Progress Bars:" />
<HorizontalProgressBar GridRow="1" Id="_horizontalProgressBar" />
<VerticalProgressBar HorizontalAlignment="Center" GridRow="2" Id="_verticalProgressBar" />
</Grid>
</VerticalSplitPane>
</HorizontalSplitPane>
</VerticalStackPanel>
</Project>