Example #1
0
        public static void OnDateTimeChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            ApplyTemplateControl apply = (ApplyTemplateControl)sender;

            DateTime oldValue = (DateTime)args.OldValue;
            DateTime newValue = (DateTime)args.NewValue;

            //apply.OnDateTimeChanged(oldValue, newValue);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.customControlClock = ((WpfApp1.ApplyTemplateControl)(target));
                return;

            case 2:
                this.customControlAnalogClock = ((WpfApp1.ApplyTemplateControl)(target));
                return;
            }
            this._contentLoaded = true;
        }