Example #1
0
        private static void SetBinding(DependencyObject source, DependencyProperty property, Action applyChange)
        {
            if (source != null)
            {
                applyChange();

                source.RegisterPropertyChangedCallback(property, (sender, dp) =>
                {
                    applyChange();
                });
            }
        }