NodeDataEditor.xaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl x:Class="Modules.Tree.NodeDataEditor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:tree="clr-namespace:Modules.Tree"
  7. mc:Ignorable="d" Height="220" Width="211" DataContextChanged="OnDataContextChanged"
  8. d:DataContext="{d:DesignInstance tree:TreeNodeViewModel}">
  9. <UserControl.Resources>
  10. <tree:ListToStringConverter x:Key="ListToStringConverter"/>
  11. </UserControl.Resources>
  12. <Grid VerticalAlignment="Stretch">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="*"/>
  15. <RowDefinition Height="*"/>
  16. <RowDefinition Height="*"/>
  17. <RowDefinition Height="4*"/>
  18. <RowDefinition Height="*"/>
  19. </Grid.RowDefinitions>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="47*"/>
  22. <ColumnDefinition Width="154*"/>
  23. </Grid.ColumnDefinitions>
  24. <Label Content="ID: " Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Top" VerticalContentAlignment="Stretch" Height="26" Margin="0,0,19,0" Width="28" />
  25. <Label Content="类型:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Top" Height="26" Margin="-2,0,9,0" Width="40" />
  26. <Label Content="参数:" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Top" Height="26" Margin="-2,1,9,0" Width="40" />
  27. <Label Content="备注:" Grid.Row="3" Grid.Column="0" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Top" Height="26" Margin="0,40,9,0" Width="40" />
  28. <Label Name="lblId" Grid.Column="1" Grid.Row="0" Margin="2" Content="{Binding Id}" />
  29. <ComboBox Name="cbType" Grid.Column="1" Grid.Row="1" Margin="2" SelectionChanged="CbType_OnSelectionChanged" />
  30. <TextBox Name="tbArgs" Grid.Column="1" Grid.Row="2" Margin="2" Text="{Binding Args, Converter={StaticResource ListToStringConverter}}" />
  31. <TextBox Name="tbComment" Grid.Column="1" Grid.Row="3" Margin="2" Text="{Binding Comment}" />
  32. <Button Content="OK" Grid.Row="4" Grid.Column="1" Margin="1,1,40,1"/>
  33. </Grid>
  34. </UserControl>