阅读背景:

自动调整ElementHost的内容

来源:互联网 

I have a small WPF control that has a TextBlock with TextWrapping set to Wrap. I am trying to host this in an existing WinForms application. I have the ElementHost docked to the top of the form, and I would like to size the height of the ElementHost based on the height that the TextBlock require. Is there any way to accomplish this?I have a small WPF control that has a TextBlock




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: