/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/snippets/visualbasic/VS_Snippets_Wpf/InsertText/VisualBasic/Window1.xaml
54 строки
2 KB
Andy De George
Move snippets from samples repo to this repo (#17296)
03 мар 2020, 19:23
Не верифицирован
03 мар 2020, 19:23
dbbeda1
Код
Авторство
О чём код?
<Window x:Class="InsertTextClient.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="InsertTextClient" Width="400" Height="400" Left="50" Top="50" Name="Client" > <DockPanel> <StackPanel Name="Controls" DockPanel.Dock="Left"> <Button Margin="10,0,10,0" Name="btnStartApp" Height="25" Click="btnStartApp_Click" IsTabStop="True" KeyboardNavigation.AcceptsReturn="True" KeyboardNavigation.IsTabStop="True">Start Target App</Button> <TextBlock Name="tbkInsert" Margin="10,10,10,10" Visibility="Visible" IsEnabled="False"> Insert Text Using UI Automation or Win32: </TextBlock> <StackPanel Name="spInsert" Margin="0,0,0,20" Orientation="Horizontal" Visibility="Visible" IsEnabled="False"> <TextBox Width="250" Height="25" Margin="10,0,0,0" MaxLength="100" Name="tbInsert" MaxLines="1"></TextBox> <Button Margin="10,0,0,0" Name="btnUIAutoInsert" Height="25" Width="50" Click="btnInsert_Click" IsTabStop="True" KeyboardNavigation.AcceptsReturn="True" KeyboardNavigation.IsTabStop="True">UIAutomation</Button> <Button Margin="10,0,10,0" Name="btnWin32Insert" Height="25" Width="50" Click="btnInsert_Click" IsTabStop="True" KeyboardNavigation.AcceptsReturn="True" KeyboardNavigation.IsTabStop="True">Win32</Button> </StackPanel> <TextBlock Margin="10,0,10,0" Name="txtFeedback" TextWrapping="WrapWithOverflow" /> </StackPanel> </DockPanel> </Window>