终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

51 linhas
2.3 KiB

  1. <Window x:Class="BeDesignerSCADA.View.JsEditWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BeDesignerSCADA.View"
  7. xmlns:avae="http://icsharpcode.net/sharpdevelop/avalonedit"
  8. mc:Ignorable="d"
  9. Title="编辑脚本" Height="600" Width="920"
  10. Background="White"
  11. BorderBrush="#FFDEDEDE"
  12. BorderThickness="1"
  13. ResizeMode="NoResize"
  14. WindowStartupLocation="CenterOwner"
  15. WindowStyle="None">
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition/>
  19. <RowDefinition Height="40"/>
  20. </Grid.RowDefinitions>
  21. <Grid>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="*"/>
  24. <ColumnDefinition Width="3*"/>
  25. </Grid.ColumnDefinitions>
  26. <TabControl Margin="4">
  27. <TabItem Header="属性">
  28. <TreeView x:Name="Tree" Margin="0" AllowDrop="False" MouseMove="Tree_MouseMove">
  29. <TreeView.ItemTemplate>
  30. <HierarchicalDataTemplate ItemsSource="{Binding Path=Properties}">
  31. <TextBlock Text="{Binding Name}"/>
  32. </HierarchicalDataTemplate>
  33. </TreeView.ItemTemplate>
  34. </TreeView>
  35. </TabItem>
  36. </TabControl>
  37. <avae:TextEditor AllowDrop="True" Margin="4" Drop="txtBox_Drop" BorderThickness="1" BorderBrush="LightGray" x:Name="txtBox" DragOver="txtBox_DragOver" Grid.Column="1" Padding="4" HorizontalScrollBarVisibility="Disabled"
  38. SyntaxHighlighting="JavaScript" ShowLineNumbers="True" FontSize="16" FontFamily="Consolas"/>
  39. </Grid>
  40. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
  41. <Button Width="80" Height="30" Content="取消" x:Name="CancelBtn" Click="CancelBtn_Click" IsCancel="True"/>
  42. <Button Width="80" Height="30" Content="确认" x:Name="ConfirmBtn" Margin="8 0 4 0" Click="ConfirmBtn_Click"/>
  43. </StackPanel>
  44. </Grid>
  45. </Window>