Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="WpfWinFormsIntegration.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="WinForms Integration" Height="400" Width="600">
- <Grid>
- <WindowsFormsHost Name="windowsFormsHost" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <wf:Form x:Name="winFormsContainer" AutoScaleMode="Font">
- <wf:Panel Name="drawingPanel" Dock="Fill" MouseDown="drawingPanel_MouseDown" MouseUp="drawingPanel_MouseUp"></wf:Panel>
- <wf:Button x:Name="btnDrawShape" Text="Draw Shape" Location="10, 10" Click="btnDrawShape_Click"/>
- <wf:RadioButton x:Name="radioEllipse" Text="Ellipse" Location="10, 40" Checked="radioEllipse_CheckedChanged"/>
- <wf:RadioButton x:Name="radioRoundedRectangle" Text="Rounded Rectangle" Location="10, 60" Checked="radioRoundedRectangle_CheckedChanged"/>
- <wf:RadioButton x:Name="radioRectangle" Text="Rectangle" Location="10, 80" Checked="radioRectangle_CheckedChanged"/>
- </wf:Form>
- </WindowsFormsHost>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement