/// <summary> /// Update the redirector with new reference. /// </summary> /// <param name="redirect">Target redirector.</param> public void SetRedirector(PaletteRedirect redirect) { OverrideFocus.SetRedirector(redirect); OverrideBolded.SetRedirector(redirect); OverrideToday.SetRedirector(redirect); StateCommon.SetRedirector(redirect); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles StateCommon.PopulateFromBase(common, PaletteState.Normal); StateDisabled.PopulateFromBase(common, PaletteState.Disabled); StateNormal.PopulateFromBase(common, PaletteState.Normal); StateHighlight.PopulateFromBase(common, PaletteState.Tracking); StateChecked.PopulateFromBase(common, PaletteState.CheckedNormal); }
/// <summary> /// Populate values from the base palette. /// </summary> public void PopulateFromBase() => StateCommon.PopulateFromBase();
/// <summary> /// Update the redirector with new reference. /// </summary> /// <param name="redirect">Target redirector.</param> public void SetRedirector(PaletteRedirect redirect) { StateCommon.SetRedirector(redirect); OverrideFocus.SetRedirector(redirect); }
/// <summary> /// Update the redirector with new reference. /// </summary> /// <param name="redirect">Target redirector.</param> public void SetRedirector(PaletteRedirect redirect) { StateCommon.SetRedirector(redirect); }