开发者

Silverlight Parent Usercontrol Resources access

a simple question

it's possibile for a usercontrol, to view (directly in xaml) Parent resources?

for example e usercontrol contains

<UserControl.Resources>
    <viewModel:ExampleResource x:Key="ExampleResourcex1"></viewModel:ExampleResourcex>
</UserControl.Resources>开发者_Python百科

and a usercontrol inside him, need to reference and bind ExampleResourcex1 as StaticResource

It's possible?

Thanks

It is possible?


Static resources can be defined at any level and are visible to anything below that level using static resource binding.

We often put our converters into App.xaml instead of in pages as they can be seen by everything app-wide.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜