终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

50 satır
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. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition/>
  18. <RowDefinition Height="40"/>
  19. </Grid.RowDefinitions>
  20. <Grid>
  21. <Grid.ColumnDefinitions>
  22. <ColumnDefinition Width="*"/>
  23. <ColumnDefinition Width="3*"/>
  24. </Grid.ColumnDefinitions>
  25. <TabControl Margin="4">
  26. <TabItem Header="属性">
  27. <TreeView x:Name="Tree" Margin="0" AllowDrop="False" MouseMove="Tree_MouseMove">
  28. <TreeView.ItemTemplate>
  29. <HierarchicalDataTemplate ItemsSource="{Binding Path=Properties}">
  30. <TextBlock Text="{Binding Name}"/>
  31. </HierarchicalDataTemplate>
  32. </TreeView.ItemTemplate>
  33. </TreeView>
  34. </TabItem>
  35. </TabControl>
  36. <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"
  37. SyntaxHighlighting="JavaScript" ShowLineNumbers="True" FontSize="16" FontFamily="Consolas"/>
  38. </Grid>
  39. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
  40. <Button Width="80" Height="30" Content="取消" x:Name="CancelBtn" Click="CancelBtn_Click" IsCancel="True"/>
  41. <Button Width="80" Height="30" Content="确认" x:Name="ConfirmBtn" Margin="8 0 4 0" Click="ConfirmBtn_Click"/>
  42. </StackPanel>
  43. </Grid>
  44. </Window>