/// <summary>
        /// Initializes this instance. Loads all the errors and warnings that were added when the control was not yet loaded.
        /// </summary>
        private void Initialize()
        {
#if NET
            if (AutomaticallyRegisterToInfoBarMessageControl)
            {
                //_infoBarMessageControl = this.FindLogicalAncestorByType<InfoBarMessageControl>();
                _infoBarMessageControl = this.FindLogicalOrVisualAncestorByType <InfoBarMessageControl>();
                if (_infoBarMessageControl != null)
                {
                    _infoBarMessageControl.SubscribeWarningAndErrorValidator(this);
                }
            }
#endif

            var source = Source;
            if (source != null)
            {
                UpdateSource(null, source);
            }
        }
        /// <summary>
        /// Initializes this instance. Loads all the errors and warnings that were added when the control was not yet loaded.
        /// </summary>
        private void Initialize()
        {
#if NET || NETCORE
            if (AutomaticallyRegisterToInfoBarMessageControl)
            {
                //_infoBarMessageControl = this.FindLogicalAncestorByType<InfoBarMessageControl>();
                _infoBarMessageControl = this.FindLogicalOrVisualAncestorByType <InfoBarMessageControl>();
                if (_infoBarMessageControl != null)
                {
                    _infoBarMessageControl.SubscribeWarningAndErrorValidator(this);
                }
            }
#endif

            var source = Source;
            if (source != null)
            {
                UpdateSource(null, source);

                // Since we are initializing, we *must* force raising changes, fixes https://github.com/Catel/Catel/issues/1670
                RaiseEventsForDifferences(source, null, CreateValidationData(source, null, null));
            }
        }
        /// <summary>
        /// Initializes this instance. Loads all the errors and warnings that were added when the control was not yet loaded.
        /// </summary>
        private void Initialize()
        {
#if !NETFX_CORE
            if (AutomaticallyRegisterToInfoBarMessageControl)
            {
                //_infoBarMessageControl = this.FindLogicalAncestorByType<InfoBarMessageControl>();
                _infoBarMessageControl = this.FindLogicalOrVisualAncestorByType<InfoBarMessageControl>();
                if (_infoBarMessageControl != null)
                {
                    _infoBarMessageControl.SubscribeWarningAndErrorValidator(this);
                }
            }
#endif

            var source = Source;
            if (source != null)
            {
                UpdateSource(null, source);
            }
        }