开发者

Silverlight Popup: How do I call a method after popup is opened?

开发者 https://www.devze.com 2023-02-07 13:42 出处:网络
I\'m working with a Silverlight Popup control (SL4). I would like to update data shown on that popup every time the user opens it (IsOpen=true) by passing a string and calling a Private method located

I'm working with a Silverlight Popup control (SL4). I would like to update data shown on that popup every time the user opens it (IsOpen=true) by passing a string and calling a Private method located in the Popup control behind code to fetch updated data.

I was hoping to place code to make this happen in the Opened event of the Popup, but such an event does not seem to exist (even though I found some document开发者_如何学Cation on it).

I'm doing this in VB.


There is definitely an Opened Event Handler

Namespace:

using System.Windows.Controls.Primitives;

Code:

 Popup popup = new Popup();
 popup.Opened += (s, args) =>
 {
    // do work
 };
0

精彩评论

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