最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Binding overridden class usage? - Stack Overflow

programmeradmin3浏览0评论

[this is not a two way binding question, the question is WHY IS THIS CLASS USED AT RUNTIME WHILE NOT PRESENT IN ANY TEMPLATE]

This Binding class override default Binding behavior.

But how if this class used if I don't find it anywhere but in this file :

public class SettingBindingExtension : Binding
{
    public SettingBindingExtension()
    {
        Initialize();
    }

    public SettingBindingExtension(string path)
        : base(path)
    {
        Initialize();
    }

    private void Initialize()
    {
        Source = Properties.Settings.Default;
        Mode = BindingMode.TwoWay;
    }
}

The Initialize function gets called when the app is launched, but SettingBindingExtension is nowhere to be found elsewhere in the Application.

I would expect this to be used in templates binding statements.

发布评论

评论列表(0)

  1. 暂无评论