开发者

how to re-use a composite UserControl inside another region in cal(prism) framework?

开发者 https://www.devze.com 2023-02-20 11:31 出处:网络
I\'m using CAL framework in my application and I came to a point where I needed to re-use my composite UserControl somewhere else, i.e. would create a new instance of that usercont开发者_如何学Gorol f

I'm using CAL framework in my application and I came to a point where I needed to re-use my composite UserControl somewhere else, i.e. would create a new instance of that usercont开发者_如何学Gorol for the next region and change some of it's properties as per the UIContext.

When I tried to do so, I got an exception that it's children have already been registered.

Any sample-code in this regard would be appreciated.


There was a glitch. CAL is not that flexible to re-use composite usercontrols. I had to finally create a base UI and then derrived two different composite usercontrol classes from it.

0

精彩评论

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