Pushed
Do you have an example or guide for Xaml that you use?
I spent the last 20 minutes trying to figure out how to edit the Xaml file for example routine, but I can't see anything farther down the scroll bar.
Do you just write the code, or do you use blend to design it by hand, or what?
XAML is just a
Microsoft thing.
There is a WYSIWYG editor in Visual Studio, but take a look at ExampleBot's SettingsGui.xaml. The way all my settings layouts are, follow a multi-column, multi-row approach using a Grid to give things a nice organized, linear layout.
Most of it is just copy/paste the main surrounding code, and then add each Grid entry. For example:
Code:
<Label Grid.Row="0" Grid.Column="0" Content="TestTextBox: " Margin="3,5,3,1" ToolTipService.ToolTip="This is a test TextBox."/>
<TextBox Name="TestTextBox" Grid.Row="0" Grid.Column="1" Margin="3"/>
<Label Grid.Row="1" Grid.Column="0" Content="TestCheckBox: " Margin="3,5,3,1" ToolTipService.ToolTip="This is a test CheckBox."/>
<CheckBox Name="TestCheckBox" Grid.Row="1" Grid.Column="1" Margin="3"/>
The Grid.Row and Grid.Column determine where that control is put, in an auto-flowing layout so you don't have to worry about positioning things yourself. Grid.RowDefinitions and Grid.ColumnDefinitions controls how many rows/cols are allowed in the layout.
If you wanted to add another entry, you'd just use the next row # and add your index 0/1 cols (at most, you don't have to have each index filled).
As for knowing all the controls and stuff, you just kind of learn it as you go along. The setup I have right now, is as simple as possible, for more advanced stuff, you'd do things differently, and have a lot more code.
About not being able to see past the scrollbar, I'm not sure how to fix that in Visual Studio, sorry! I just make changes, test, and scroll, or move the entries at the top though another set of Grid, then move it back afterwards.