如何在WindowsFormHost控件中使用WPF控件 [英] How to use WPF control with in a WindowsFormHost control

查看:198
本文介绍了如何在WindowsFormHost控件中使用WPF控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在WPF应用程序中使用Windows窗体用户控件(可折叠GroupBox),如下所示



 <  网格 >  
< WindowsFormsHost 名称 = grpPTP 保证金 = < span class =code-keyword> 0,0,12,185 >
< ; GrpCollapse:gCollapsableGroupBox 名称 = grpPTP 宽度 = 568 高度 = 145 >
< / GrpCollapse:gCollapsableGroupBox >
< / WindowsFormsHost >
< / Grid >





我想添加WPF控件(Label,TextBox) )在这个groupbox控件中。



请帮我看看如何添加WPF控件在WIndowsFormHost控件中使用

解决方案

目前尚不清楚您期望得到什么样的帮助。也许你可以从这里开始: https://msdn.microsoft.com/ en-us / library / ms751761%28v = vs.110%29.aspx [ ^ ]。



-SA

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: https://msdn.microsoft.com/en-us/library/ms751761%28v=vs.110%29.aspx[^].

—SA


这篇关于如何在WindowsFormHost控件中使用WPF控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆