|
@@ -7,13 +7,17 @@
|
|
|
xmlns:ui="clr-namespace:PixiEditor.UI.Common.Localization;assembly=PixiEditor.UI.Common"
|
|
|
xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters"
|
|
|
xmlns:controls="clr-namespace:PixiEditor.UI.Common.Controls;assembly=PixiEditor.UI.Common"
|
|
|
+ xmlns:properties1="clr-namespace:PixiEditor.ViewModels.Nodes.Properties"
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
x:Class="PixiEditor.Views.Nodes.Properties.VecDPropertyView">
|
|
|
+ <Design.DataContext>
|
|
|
+ <properties1:VecDPropertyViewModel />
|
|
|
+ </Design.DataContext>
|
|
|
<StackPanel HorizontalAlignment="{Binding IsInput, Converter={converters:BoolToValueConverter FalseValue='Right', TrueValue='Stretch'}}">
|
|
|
<TextBlock VerticalAlignment="Center" ui:Translator.Key="{Binding DisplayName}"/>
|
|
|
<StackPanel IsVisible="{Binding ShowInputField}">
|
|
|
- <controls:NumberInput EnableScrollChange="False" MinWidth="100" Value="{Binding XValue, Mode=TwoWay}" Margin="0,2" />
|
|
|
- <controls:NumberInput EnableScrollChange="False" MinWidth="100" Value="{Binding YValue, Mode=TwoWay}" />
|
|
|
+ <controls:NumberInput DraggingGrabber="{Binding MergeChanges, Mode=OneWayToSource}" EnableScrollChange="False" MinWidth="100" Value="{Binding XValue, Mode=TwoWay}" Margin="0,2" />
|
|
|
+ <controls:NumberInput DraggingGrabber="{Binding MergeChanges, Mode=OneWayToSource}" EnableScrollChange="False" MinWidth="100" Value="{Binding YValue, Mode=TwoWay}" />
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</properties:NodePropertyView>
|