Minor GUI changes.

This commit is contained in:
jrhodnik 2019-06-03 19:29:39 -04:00
parent 7226c724d7
commit 7ca043edba
3 changed files with 4 additions and 6 deletions

View File

@ -80,6 +80,7 @@ namespace VRDash.UI.LocationEditors
var lstControl = lstElement.OfType<Control>();
//Lazy way of updating all of those text boxes.
foreach(var control in children)
{
if (control.GetType() == typeof(DockPanel))

View File

@ -21,7 +21,7 @@
<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" />
</GroupBox>
<TextBlock Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Overlay Width:</TextBlock>

View File

@ -40,14 +40,11 @@ namespace VRDash.UI
UserControl locationEditor = (UserControl)Activator.CreateInstance(locationInfo.LocationEditorType, new object[] { Config.Location });
bdrLocationEditor.Child = locationEditor;
}
#if DEBUG
else
{
var textBlock = new TextBlock();
textBlock.Text = "No location editor!";
bdrLocationEditor.Child = textBlock;
var parent = VisualTreeHelper.GetParent(gbLocationSettings);
((Panel)parent).Children.Remove(gbLocationSettings);
}
#endif
}
private void tbWidth_PreviewTextInput(object sender, TextCompositionEventArgs e)