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