开发者

Components in Silverlight?

开发者 https://www.devze.com 2022-12-21 02:55 出处:网络
I want to set up data binding using a custom component. Basically, I\'d like to do something like this in my XAML file:

I want to set up data binding using a custom component.

Basically, I'd like to do something like this in my XAML file:

<ControllerDataBindingBridge>开发者_运维知识库
    <Bind TargetControl="eFirstName" Property="FirstName"/>
</ControllerDataBiondingBridge>

How do I create ControllerDataBindingBridge, there doesn't appear to be a simple Component which isn't visible, only UIElements.

Is this supported at all? I see things like Storyboard, that inherits from DependencyObject, is this the base class I want?

Any webpages, tutorials, hints, or tips anyone can give me towards achieving this?


DependencyObject is the base class you want.

I'd start by having a look at the Expression Blend SDK (Behaviours and Triggers). See here for samples. The binding listener sample may prove useful.

0

精彩评论

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

关注公众号