mirror of
https://github.com/babalae/better-genshin-impact
synced 2025-01-09 04:19:47 +08:00
37 lines
1.3 KiB
XML
37 lines
1.3 KiB
XML
<Window x:Class="Vision.WindowCapture.Test.PickerWindow"
|
|
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:Vision.WindowCapture.Test"
|
|
mc:Ignorable="d"
|
|
Title="选择捕获窗口" Height="450" Width="800">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Margin="5,0"
|
|
Orientation="Horizontal">
|
|
<TextBlock FontSize="20" Text="双击选中要捕获的窗口" />
|
|
</StackPanel>
|
|
|
|
<ListBox
|
|
x:Name="WindowList"
|
|
Grid.Row="1"
|
|
Padding="0,10"
|
|
BorderThickness="0">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<ContentControl MouseDoubleClick="WindowsOnMouseDoubleClick">
|
|
<TextBlock FontSize="14" Text="{Binding Name}" />
|
|
</ContentControl>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Grid>
|
|
</Window>
|