Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- <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>
|