本文介绍了如何在WindowsFormHost控件中使用WPF控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-SA —SA
我在WPF应用程序中使用Windows窗体用户控件(可折叠GroupBox),如下所示
< 网格 > < WindowsFormsHost 名称 = grpPTP 保证金 = 0,0,12,185 > < ; GrpCollapse:gCollapsableGroupBox 名称 = grpPTP 宽度 = 568 高度 = 145 > < / GrpCollapse:gCollapsableGroupBox > < / WindowsFormsHost > < / Grid >我想添加WPF控件(Label,TextBox) )在这个groupbox控件中。 请帮我看看如何添加WPF控件在WIndowsFormHost控件中使用
解决方案目前尚不清楚您期望得到什么样的帮助。也许你可以从这里开始: msdn.microsoft/ en-us / library / ms751761%28v = vs.110%29.aspx [ ^ ]。
Hi, I am using Windows Forms user control (Collapsable GroupBox) in WPF application like below
<Grid> <WindowsFormsHost Name="grpPTP" Margin="0,0,12,185"> <GrpCollapse:gCollapsableGroupBox Name="grpPTP" Width="568" Height="145" > </GrpCollapse:gCollapsableGroupBox> </WindowsFormsHost> </Grid>I want to add the WPF controls(Label, TextBox) with in this groupbox control. Please help me how to add the WPF controls with in the WIndowsFormHost control
解决方案 It's not clear what kind of help would you expect. Maybe you can start here: msdn.microsoft/en-us/library/ms751761%28v=vs.110%29.aspx[^].更多推荐
如何在WindowsFormHost控件中使用WPF控件
发布评论