コード例 #1
0
        public SpecifyingTheSource()
        {
            InitializeComponent();

            var dataContext = new SomeNotifyPropertyChangedImplementingClass();
            dataContext.NotifyingProperty = "Notifying Property value from start";

            this.DataContext = dataContext;
        }
コード例 #2
0
        public SpecifyingTheSource()
        {
            InitializeComponent();

            var dataContext = new SomeNotifyPropertyChangedImplementingClass();

            dataContext.NotifyingProperty = "Notifying Property value from start";

            this.DataContext = dataContext;
        }
        public BindingToNotifyPropertyChangedProperties()
        {
            InitializeComponent();

            var dataContext = new SomeNotifyPropertyChangedImplementingClass();
            dataContext.NotifyingProperty = "Notifying Property value from start";

            this.DataContext = dataContext;

            chkPropertyNotPresent.DataContext = new SomeNotifyPropertyChangedImplementingClass();
            chkPropertyIsPresent.DataContext = new IsCheckedDataContext();
        }
コード例 #4
0
        public BindingToNotifyingProperties()
        {
            InitializeComponent();

            var dataContext = new SomeNotifyPropertyChangedImplementingClass();

            dataContext.NotifyingProperty = "Notifying Property value from start";

            this.DataContext = dataContext;

            chkPropertyNotPresent.DataContext = new SomeNotifyPropertyChangedImplementingClass();
            chkPropertyIsPresent.DataContext  = new IsCheckedDataContext();
        }