-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScriptViewer.xaml
36 lines (33 loc) · 1.58 KB
/
ScriptViewer.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<UserControl x:Class="ScriptCommander.ScriptViewer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d" x:Name="Me"
d:DesignHeight="300" d:DesignWidth="800">
<UserControl.Resources>
<!-- <Style TargetType="{x:Type Button}">-->
<!-- <Setter Property="Margin" Value="3" />-->
<!-- </Style>-->
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="36" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<TextBox x:Name="UiTxtRun" Text="{Binding ElementName=Me, Path=Api.Script.CurrentLine, Mode=OneWay}"
FontSize="17" VerticalContentAlignment="Center"
KeyUp="UiTxtRun_OnKeyUp"/>
<Button x:Name="UiBtnRun" Content="Run" Grid.Column="1" Click="ButtonBase_OnClick" />
</Grid>
<ListBox Grid.Row="1" x:Name="UiScriptList"
ItemsSource="{Binding ElementName=Me, Path=Api.Script.Lines}"
SelectedIndex="{Binding ElementName=Me, Path=Api.Script.CurrentIndex, Mode=TwoWay}">
</ListBox>
</Grid>
</UserControl>