Ejemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="dataContextChangedEventArgs"></param>
        private void OnDataContextChanged(object sender, DataContextChangedEventArgs dataContextChangedEventArgs)
        {
            _viewManager.RegisterView(this);

            EnsureParentChildRelationship(dataContextChangedEventArgs.NewContext);

            ViewModelChanged.SafeInvoke(this);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Occurs when the data context has changed.
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="eventArgs">The data context changed event args.</param>
        private void OnDataContextChanged(object sender, DataContextChangedEventArgs eventArgs)
        {
            _viewManager.RegisterView(this);

            ViewModelChanged.SafeInvoke(this);
        }