-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
allControls.xmmp
126 lines (126 loc) · 6.24 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<Project>
<Project.ExportOptions Namespace="Myra.Samples.AllWidgets" Class="AllWidgets" OutputPath="D:\Projects\Myra\samples\Myra.Samples.AllWidgets" />
<Panel>
<VerticalStackPanel Spacing="8">
<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 StackPanel.ProportionType="Fill">
<ScrollViewer ShowHorizontalScrollBar="False">
<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:" />
<Button Padding="8, 0" Tooltip="E=mc/v[-8]2/n/vdMass–energy equivalence." Id="_buttonSaveFile" Grid.Column="1">
<HorizontalStackPanel>
<Image Id="_imageSaveFile" />
<Label Text="Save File" />
</HorizontalStackPanel>
</Button>
<TextBox Id="_textSaveFile" Grid.Column="2" />
<Label Text="Another Button:" Grid.Row="1" />
<Button Padding="8, 0" Tooltip="Tooltip 2" Id="_buttonOpenFile" Grid.Column="1" Grid.Row="1">
<HorizontalStackPanel>
<Image Id="_imageOpenFile" />
<Label Text="Open File" />
</HorizontalStackPanel>
</Button>
<TextBox Id="_textOpenFile" Grid.Column="2" Grid.Row="1" />
<Label Text="Blue Button:" Grid.Row="2" />
<Button StyleName="blue" Padding="8, 0" Id="_buttonChooseFolder" Grid.Column="1" Grid.Row="2">
<HorizontalStackPanel>
<Image Id="_imageChooseFolder" />
<Label Text="Choose Folder" />
</HorizontalStackPanel>
</Button>
<TextBox Id="_textChooseFolder" Grid.Column="2" Grid.Row="2" />
<Label Text="Text Button:" Id="_textButtonLabel" Grid.Row="3" />
<Button Padding="8, 0" Id="_buttonChooseColor" Grid.Column="1" Grid.Row="3">
<Label Text="Choose Color" />
</Button>
<Label Text="Image Button:" Grid.Row="4" />
<Button Padding="8, 0" Id="_imageButton" Grid.Column="1" Grid.Row="4">
<Image />
</Button>
<CheckButton CheckContentSpacing="4" Grid.Row="5" Grid.ColumnSpan="2">
<Label Text="This is checkbox" />
</CheckButton>
<Label Text="Horizontal Slider:" Grid.Row="6" />
<HorizontalSlider Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="2" />
<Label Text="Combo View:" Grid.Row="7" />
<ComboView Width="200" Grid.Column="1" Grid.Row="7" Grid.ColumnSpan="2">
<Label Text="Red" TextColor="#FF0000FF" />
<Label Text="Green" TextColor="#00FF00FF" />
<Label Text="Blue" TextColor="#0000FFFF" />
</ComboView>
<Label Text="Text Field:" Grid.Row="8" />
<TextBox Grid.Column="1" Grid.Row="8" Grid.ColumnSpan="2" />
<Label Text="Spin Button:" Grid.Row="9" />
<SpinButton Value="1" Width="100" Grid.Column="1" Grid.Row="9" />
<Label Text="List View:" Grid.Row="10" />
<ListView Width="200" Grid.Column="1" Grid.Row="10" Grid.ColumnSpan="2">
<Label Text="Red" TextColor="#FF0000FF" />
<Label Text="Green" TextColor="#00FF00FF" />
<Label Text="Blue" TextColor="#0000FFFF" />
</ListView>
<Label Text="Vertical Menu:" Grid.Row="11" />
<VerticalMenu Grid.Column="1" Grid.Row="11">
<MenuItem Text="Start New Game" />
<MenuItem Text="Options" />
<MenuItem Text="Quit" />
</VerticalMenu>
<Label Text="Tree" Grid.Row="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" Grid.Row="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 Id="_horizontalProgressBar" Grid.Row="1" />
<VerticalProgressBar HorizontalAlignment="Center" Id="_verticalProgressBar" Grid.Row="2" />
</Grid>
</VerticalSplitPane>
</HorizontalSplitPane>
</VerticalStackPanel>
<Label Text="Is mouse over GUI: true" VerticalAlignment="Bottom" Id="_labelOverGui" />
</Panel>
</Project>