<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:editorcontrols="clr-namespace:GolgothEditor.Controls"
xmlns:viewmodels="clr-namespace:GolgothEditor.ViewModels"
x:Class="GolgothEditor.Controls.GameObjectPropertyPanel"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded">
<UserControl.DataContext>
<viewmodels:GameObjectViewModel />
</UserControl.DataContext>
<ScrollViewer BorderThickness="0">
<StackPanel Background="{StaticResource NormalBrush}">
<Expander x:Name="GameObjectPanel" Header="Game Object Properties" BorderThickness="0" >
<StackPanel>
<Expander Header="Name" BorderThickness="0" Margin="10,0,0,0">
<editorcontrols:PropertyEditorField x:Name="GameObjectName" LabelValue="Name" TextValue="{Binding GameObject.Name, Mode=TwoWay, UpdateSourceTrigger=LostFocus}"/>
</Expander>
<Expander Header="Appearance" BorderThickness="0" Margin="10,0,0,0">
<StackPanel>
<editorcontrols:PropertyEditorField x:Name="GameObjectPosition" LabelValue="Position" TextValue="{Binding GameObject.Position, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectScale" LabelValue="Scale" TextValue="{Binding GameObject.Scale, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectOrientation" LabelValue="Orientation" TextValue="{Binding Orientation, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectOrientationCenter" LabelValue="OrientationCenter" TextValue="{Binding OrientationCenter, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectRotation" LabelValue="Rotation" TextValue="{Binding Rotation, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectFlipH" LabelValue="FlipH" TextValue="{Binding FlipH, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectFlipV" LabelValue="FlipV" TextValue="{Binding FlipV, Mode=TwoWay}"/>
</StackPanel>
</Expander>
<Expander Header="Misc" BorderThickness="0" Margin="10,0,0,0">
<StackPanel>
<editorcontrols:PropertyEditorField x:Name="GameObjectActive" LabelValue="Active" TextValue="{Binding Active, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectVisible" LabelValue="Visible" TextValue="{Binding Visible, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectPersistent" LabelValue="Persistent" TextValue="{Binding Persistent, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectSendEvent" LabelValue="SendEvent" TextValue="{Binding SendEvent, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectReceiveEvent" LabelValue="ReceiveEvent" TextValue="{Binding ReceiveEvent, Mode=TwoWay}"/>
<editorcontrols:PropertyEditorField x:Name="GameObjectLayer" LabelValue="Layer" TextValue="{Binding Layer, Mode=TwoWay}"/>
</StackPanel>
</Expander>
</StackPanel>
</Expander>
</StackPanel>
</ScrollViewer>
</UserControl>