Example #1
0
        public virtual void Attach(FrameworkElement element)
        {
            if (null != element)
            {
                element.AddDataContextChangedHandler(DataContextChanged);

                if (null != element.DataContext)
                {
                    DataContextChanged(element, EventArgs.Empty);
                }
            }
        }