开发者

Get actual height of content in Silverlight Popup control

开发者 https://www.devze.com 2023-02-08 12:41 出处:网络
I need to get the actual height of the displayed content inside an opened pop up control: Problem: I want to show开发者_C百科 a lot of data in a grid inside a pop up. If this content became higher t

I need to get the actual height of the displayed content inside an opened pop up control:

Problem:

I want to show开发者_C百科 a lot of data in a grid inside a pop up. If this content became higher than the browser height, this content is cropped at the end of the window.

I there any way to get the height of this content (i know that pop up isn't in the visual tree)?


Try calling UpdateLayout() once all controls have been added to your popup.

You will then be able to get the ActualHeight of the popup.

This has a bit of a performance overhead so trying calling it as little as possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消