You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <Window x:Class="BeDesignerSCADA.View.JsEditWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- 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:local="clr-namespace:BeDesignerSCADA.View"
- xmlns:avae="http://icsharpcode.net/sharpdevelop/avalonedit"
- mc:Ignorable="d"
- Title="编辑脚本" Height="600" Width="920"
- Background="White"
- BorderBrush="#FFDEDEDE"
- BorderThickness="1"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterOwner">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition Height="40"/>
- </Grid.RowDefinitions>
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="3*"/>
- </Grid.ColumnDefinitions>
-
- <TabControl Margin="4">
- <TabItem Header="属性">
- <TreeView x:Name="Tree" Margin="0" AllowDrop="False" MouseMove="Tree_MouseMove">
- <TreeView.ItemTemplate>
- <HierarchicalDataTemplate ItemsSource="{Binding Path=Properties}">
- <TextBlock Text="{Binding Name}"/>
- </HierarchicalDataTemplate>
- </TreeView.ItemTemplate>
- </TreeView>
- </TabItem>
- </TabControl>
-
-
- <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"
- SyntaxHighlighting="JavaScript" ShowLineNumbers="True" FontSize="16" FontFamily="Consolas"/>
- </Grid>
-
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Width="80" Height="30" Content="取消" x:Name="CancelBtn" Click="CancelBtn_Click" IsCancel="True"/>
- <Button Width="80" Height="30" Content="确认" x:Name="ConfirmBtn" Margin="8 0 4 0" Click="ConfirmBtn_Click"/>
- </StackPanel>
- </Grid>
- </Window>
|