本文介绍了使Wndows Form Host适应容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
更改表单大小时,我需要使WindowsFormsHost适应容器.我尝试了
使用下面的代码.但这行不通.
Hi All,
I need to fit WindowsFormsHost to container when form size change. I have try
with using below code. But It will not work.
<Border Grid.Row="4" Grid.ColumnSpan="1" Style="{StaticResource bStyle}">
<WindowsFormsHost HorizontalAlignment="Stretch"
Name="FrmHostEmpAtt" VerticalAlignment="Stretch" Grid.ColumnSpan="1"
Focusable="False" IsManipulationEnabled="False" Padding="2"
ClipToBounds="True">
<rv:ReportViewer x:Name="RptEmpAttViwer"/>
</WindowsFormsHost>
</Border>
请帮我
谢谢,
Chamara
Plese help me
Thanks,
Chamara
推荐答案
<grid grid.row="4" grid.columnspan="1" style="{StaticResource bStyle}">
<windowsformshost horizontalalignment="Stretch" name="FrmHostEmpAtt" verticalalignment="Stretch" grid.columnspan="1" focusable="False" ismanipulationenabled="False" padding="2" cliptobounds="True">
<rv:reportviewer x:name="RptEmpAttViwer" xmlns:x="#unknown" xmlns:rv="#unknown" />
</windowsformshost>
</grid>
问候,
达山.
Regards,
Darshan.
这篇关于使Wndows Form Host适应容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!