/// <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);
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 public void PopulateFromBase() => StateCommon.PopulateFromBase();
Esempio n. 4
0
 /// <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);
 }