Monitors changes to an element DataContext property.
Inheritance: System.Windows.DependencyObject, INotifyDisposed
        /// <summary>Constructor.</summary>
        public CoreImage()
        {
            // Setup initial conditions.
            InitializeComponent();

            // Wire up events.
            dataContextObserver = new DataContextObserver(this, OnDataContextChanged);
        }
        /// <summary>Constructor.</summary>
        public Pager()
        {
            // Setup initial conditions.
            InitializeComponent();

            // Wire up events.
            dataContextObserver = new DataContextObserver(this, OnDataContextChanged);
            Loaded += delegate { InsertPages(); };
        }
        /// <summary>Constructor.</summary>
        public DropdownDialog()
        {
            // Setup initial conditions.
            InitializeComponent();

            // Wire up events.
            dataContextObserver = new DataContextObserver(this, OnDataContextChanged);
            SizeChanged += delegate { UpdateDialogPositionAndSize(); };
            KeyDown += OnKeyDown;
            Loaded += delegate
                          {
                              content.SizeChanged += delegate { UpdateDialogPositionAndSize(); };
                              UpdateDialogPositionAndSize();
                          };

            // Finish up.
            SetTop(-50000);
        }
 /// <summary>Constructor.</summary>
 public ContentContainer()
 {
     InitializeComponent();
     dataContextObserver = new DataContextObserver(this, OnDataContextChanged);
     if (ViewModel != null) OnDataContextChanged();
 }
 /// <summary>Constructor.</summary>
 public ToolBarView()
 {
     InitializeComponent();
     dataContextObserver = new DataContextObserver(this, OnDataContextChanged);
 }
 public CoreComboBox()
 {
     dataContextObserver = new DataContextObserver(this, OnDataContextChanged);
 }