|
@@ -0,0 +1,16 @@
|
|
|
+<properties:NodePropertyView xmlns="https://github.com/avaloniaui"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:properties="clr-namespace:PixiEditor.AvaloniaUI.Views.Nodes.Properties"
|
|
|
+ xmlns:input="clr-namespace:PixiEditor.AvaloniaUI.Views.Input"
|
|
|
+ xmlns:ui="clr-namespace:PixiEditor.Extensions.UI;assembly=PixiEditor.Extensions"
|
|
|
+ xmlns:converters="clr-namespace:PixiEditor.AvaloniaUI.Helpers.Converters"
|
|
|
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
+ x:Class="PixiEditor.AvaloniaUI.Views.Nodes.Properties.GenericEnumPropertyView">
|
|
|
+ <Grid HorizontalAlignment="{Binding IsInput, Converter={converters:BoolToValueConverter FalseValue='Right', TrueValue='Stretch'}}">
|
|
|
+ <TextBlock VerticalAlignment="Center" ui:Translator.Key="{Binding DisplayName}"/>
|
|
|
+ <ComboBox HorizontalAlignment="Right" MinWidth="100" IsVisible="{Binding IsInput}"
|
|
|
+ SelectedValue="{Binding Value, Mode=TwoWay}" ItemsSource="{Binding Values}" />
|
|
|
+ </Grid>
|
|
|
+</properties:NodePropertyView>
|