我现在向WPF迁移,需要一个快速验证。
- <Window x:Class="madamingTXControl4WPF.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:tx="clr-namespace:TXTextControl;assembly=TXTextControl.Windows.Forms"
- Title="MainWindow" Height="350" Width="525">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="25"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Button x:Name="button_open" Content="打开文件" VerticalAlignment="Center" HorizontalAlignment="Left" Click="button_open_Click" ></Button>
- <WindowsFormsHost Grid.Row="1">
- <tx:TextControl x:Name="madamingTX" ></tx:TextControl>
- </WindowsFormsHost>
- </Grid>
- </Window>
复制代码 |