77 lines
3.1 KiB
XML
77 lines
3.1 KiB
XML
<UserControl
|
|
x:Class="FluentTerminal.App.Views.TerminalView"
|
|
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"
|
|
d:DesignHeight="300"
|
|
d:DesignWidth="600"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid
|
|
x:Name="WebViewContainer"
|
|
Grid.Row="0"
|
|
Margin="12" />
|
|
<Grid
|
|
Grid.Row="0"
|
|
Margin="12"
|
|
Padding="6"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Visibility="{x:Bind ViewModel.ShowResizeOverlay, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}">
|
|
<Grid.Background>
|
|
<SolidColorBrush Color="{ThemeResource SystemAccentColor}" />
|
|
</Grid.Background>
|
|
<TextBlock Foreground="White" Text="{x:Bind ViewModel.ResizeOverlayContent, Mode=OneWay}" />
|
|
</Grid>
|
|
<RelativePanel
|
|
Grid.Row="1"
|
|
Padding="12"
|
|
Visibility="{x:Bind ViewModel.ShowSearchPanel, Mode=OneWay, Converter={StaticResource TrueToVisibleConverter}}">
|
|
<TextBlock
|
|
Name="SearchLabel"
|
|
Margin="0,6,0,0"
|
|
RelativePanel.AlignLeftWithPanel="True"
|
|
Text="Search" />
|
|
<TextBox
|
|
Name="SearchTextBox"
|
|
Width="300"
|
|
Margin="6,0,6,0"
|
|
KeyUp="SearchTextBox_KeyUp"
|
|
PlaceholderText="Enter search term"
|
|
RelativePanel.RightOf="SearchLabel"
|
|
Text="{x:Bind ViewModel.SearchText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
<Button
|
|
Name="PreviousButton"
|
|
Margin="0,0,6,0"
|
|
Command="{x:Bind ViewModel.FindPreviousCommand}"
|
|
RelativePanel.RightOf="SearchTextBox"
|
|
ToolTipService.ToolTip="Find previous">
|
|
<Button.Content>
|
|
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" />
|
|
</Button.Content>
|
|
</Button>
|
|
<Button
|
|
Command="{x:Bind ViewModel.FindNextCommand}"
|
|
RelativePanel.RightOf="PreviousButton"
|
|
ToolTipService.ToolTip="Find next">
|
|
<Button.Content>
|
|
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" />
|
|
</Button.Content>
|
|
</Button>
|
|
<Button
|
|
Command="{x:Bind ViewModel.CloseSearchPanelCommand}"
|
|
RelativePanel.AlignRightWithPanel="True"
|
|
ToolTipService.ToolTip="Close search panel">
|
|
<Button.Content>
|
|
<SymbolIcon Symbol="Cancel" />
|
|
</Button.Content>
|
|
</Button>
|
|
</RelativePanel>
|
|
</Grid>
|
|
</UserControl>
|