/// <summary>
        /// Initializes a new instance of the <see cref="RadContentControl"/> class.
        /// </summary>
        public RadContentControl()
        {
            //TODO:License
            TelerikLicense.Verify();
            this.Loaded           += this.OnLoaded;
            this.Unloaded         += this.OnUnloaded;
            this.IsEnabledChanged += this.OnIsEnabledChanged;

            this.currentVisualState = string.Empty;
        }
Пример #2
0
        /// <summary>
        /// Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.
        /// </summary>
        protected override void OnApplyTemplate()
        {
            if (this.isTemplateApplied)
            {
                this.UnapplyTemplateCore();
            }

            base.OnApplyTemplate();

            this.isTemplateApplied = this.ApplyTemplateCore();

            if (this.isTemplateApplied)
            {
                this.OnTemplateApplied();
            }

            TelerikLicense.Verify();
        }