-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
31 lines (30 loc) · 1.74 KB
/
Copy pathMainWindow.xaml
File metadata and controls
31 lines (30 loc) · 1.74 KB
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
<Window x:Class="TermExample.MainWindow"
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:TermExample" xmlns:term="clr-namespace:EasyWindowsTerminalControl;assembly=EasyWindowsTerminalControl"
mc:Ignorable="d" Background="{Binding BackroundColorBrush}"
Title="Sample Term" Height="550" Width="1200">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<term:EasyTerminalControl x:Name="basicTermControl" StartupCommandLine="{Binding StartupCommand}" WorkingDirectory="{Binding WorkingDirectory}" Theme="{Binding Theme, Mode=OneWay}" FontFamilyWhenSettingTheme="Consolas" LogConPTYOutput="True" Win32InputMode="True" InputCapture="TabKey,DirectionKeys" >
<term:EasyTerminalControl.Resources>
<Style TargetType="ScrollBar" BasedOn="{StaticResource {x:Type ScrollBar}}">
<!--Lazy Theming-->
<Setter Property="Opacity" Value="0.7"/>
</Style>
</term:EasyTerminalControl.Resources>
</term:EasyTerminalControl>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="1" >
<Button Content="Duplicate New" Click="DuplicateClicked" Margin="5" />
<Button Content="Clear Term" Click="ClearTermClicked" Margin="5" />
<Button Content="Restart Term" Click="RestartTermClicked" Margin="5" />
<Button Content="Show Buffer" Click="ShowBufferClicked" Margin="5" />
<Button Content="Process Output Sample" Click="ShowProcessOutputClicked" Margin="5" />
</StackPanel>
</Grid>
</Window>