Yuhan.WPF.CustomWindow.WindowButton.RefreshContent C# (CSharp) Method

RefreshContent() protected method

Set's the content of the button according to the current 'IsEnabled' state of the button
protected RefreshContent ( ) : void
return void
        protected void RefreshContent()
        {
            // Button is enabled
            if (this.IsEnabled)
                this.ActiveContent = this.Content;
            else
                this.ActiveContent = this.ContentDisabled;
        }