Minor GUI changes.
This commit is contained in:
parent
7226c724d7
commit
7ca043edba
|
|
@ -80,6 +80,7 @@ namespace VRDash.UI.LocationEditors
|
||||||
|
|
||||||
var lstControl = lstElement.OfType<Control>();
|
var lstControl = lstElement.OfType<Control>();
|
||||||
|
|
||||||
|
//Lazy way of updating all of those text boxes.
|
||||||
foreach(var control in children)
|
foreach(var control in children)
|
||||||
{
|
{
|
||||||
if (control.GetType() == typeof(DockPanel))
|
if (control.GetType() == typeof(DockPanel))
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
<Border x:Name="bdrContent" Grid.Row="0" Grid.ColumnSpan="3"/>
|
<Border x:Name="bdrContent" Grid.Row="0" Grid.ColumnSpan="3"/>
|
||||||
|
|
||||||
|
|
||||||
<GroupBox Header="Location Settings" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Left" Margin="0,5,0,5">
|
<GroupBox x:Name="gbLocationSettings" Header="Location Settings" Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Left" Margin="0,5,0,5">
|
||||||
<Border x:Name="bdrLocationEditor" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
<Border x:Name="bdrLocationEditor" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
<TextBlock Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Overlay Width:</TextBlock>
|
<TextBlock Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Overlay Width:</TextBlock>
|
||||||
|
|
|
||||||
|
|
@ -40,14 +40,11 @@ namespace VRDash.UI
|
||||||
UserControl locationEditor = (UserControl)Activator.CreateInstance(locationInfo.LocationEditorType, new object[] { Config.Location });
|
UserControl locationEditor = (UserControl)Activator.CreateInstance(locationInfo.LocationEditorType, new object[] { Config.Location });
|
||||||
bdrLocationEditor.Child = locationEditor;
|
bdrLocationEditor.Child = locationEditor;
|
||||||
}
|
}
|
||||||
#if DEBUG
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var textBlock = new TextBlock();
|
var parent = VisualTreeHelper.GetParent(gbLocationSettings);
|
||||||
textBlock.Text = "No location editor!";
|
((Panel)parent).Children.Remove(gbLocationSettings);
|
||||||
bdrLocationEditor.Child = textBlock;
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void tbWidth_PreviewTextInput(object sender, TextCompositionEventArgs e)
|
private void tbWidth_PreviewTextInput(object sender, TextCompositionEventArgs e)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue