如何在WindowsFormHost控件中使用WPF控件

编程入门 行业动态 更新时间:2024-10-25 18:22:48
本文介绍了如何在WindowsFormHost控件中使用WPF控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

如何在WindowsFormHost控件中使用WPF控件

本文发布于:2023-11-05 09:35:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560481.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   如何在   WindowsFormHost   WPF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!