<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:loc="using:NewLife.XCoder.Services"
x:Class="NewLife.XCoder.Shell.FloatingToolWindow"
Title="{loc:Tr 'Floating Window'}"
Width="920" Height="660"
MinWidth="600" MinHeight="420"
WindowStartupLocation="CenterOwner"
Background="{DynamicResource BgPage}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="44" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{DynamicResource BgSurface2}"
BorderBrush="{DynamicResource BorderDefault}" BorderThickness="0,0,0,1"
Padding="12,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Name="TitleText" Text="{loc:Tr Tool}" VerticalAlignment="Center"
FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource TextPrimary}" />
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="8"
VerticalAlignment="Center">
<CheckBox Name="PinBox" Content="{loc:Tr 'Always on top'}" FontSize="11" />
<Button Name="ReturnButton" Classes="secondary" Content="{loc:Tr 'Move back to tab'}"
FontSize="11" Padding="10,4" />
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Classes="panel" Margin="12">
<ContentControl Name="Host" />
</Border>
</Grid>
</Window>
|