Example #1
0
        private static void OnLabelTemplateChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            WaterMarkTextBox target   = obj as WaterMarkTextBox;
            DataTemplate     oldValue = (DataTemplate)args.OldValue;
            DataTemplate     newValue = (DataTemplate)args.NewValue;

            if (oldValue != newValue)
            {
                target.OnLabelTemplateChanged(oldValue, newValue);
            }
        }
Example #2
0
        private static void OnPopupChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            WaterMarkTextBox target   = obj as WaterMarkTextBox;
            object           oldValue = (object)args.OldValue;
            object           newValue = (object)args.NewValue;

            if (oldValue != newValue)
            {
                target.OnPopupChanged(oldValue, newValue);
            }
        }