-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZXOutputLog.axaml
More file actions
35 lines (35 loc) · 1.83 KB
/
ZXOutputLog.axaml
File metadata and controls
35 lines (35 loc) · 1.83 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
32
33
34
35
<UserControl xmlns="https://github.com/avaloniaui"
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:svg="using:Avalonia.Svg.Skia"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="ZXBasicStudio.Controls.ZXOutputLog">
<UserControl.ContextMenu>
<ContextMenu Placement="Pointer">
<MenuItem Header="Clear output window" Name="mnuClearOutputWindow" />
<MenuItem Header="Copy to clipboard" Name="mnuCopyToClipboard" />
</ContextMenu>
</UserControl.ContextMenu>
<Grid RowDefinitions="auto,*">
<Grid ColumnDefinitions="1*" DataContext=".ZXMemoryView">
<StackPanel Grid.Row="0" Spacing="2" Orientation="Horizontal" Margin="2" HorizontalAlignment="Left">
<Button Width="30" Foreground="Black" Classes="toolbar" Name="btnClearOutputWindow" ToolTip.Tip="Clear output window">
<svg:Svg Path="/Svg/eraser-solid.svg"></svg:Svg>
</Button>
<Button Width="30" Foreground="Black" Classes="toolbar" Name="btnCopyToClipboard" ToolTip.Tip="Copy output log to clipboard">
<svg:Svg Path="/Svg/copy-solid.svg"></svg:Svg>
</Button>
</StackPanel>
</Grid>
<Grid Grid.Row="1">
<ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="#FF202020" Name="scrOutput"
VerticalScrollBarVisibility="Auto">
<!--
<TextBlock TextWrapping="Wrap" Foreground="White" Name="tbOutput" Padding="10" IsVisible="False"/>
-->
<TextBox TextWrapping="Wrap" AcceptsReturn="True" Foreground="White" Name="tbOutput" Padding="10" IsReadOnly="True"/>
</ScrollViewer>
</Grid>
</Grid>
</UserControl>