public void SetBackgroundSource(AcrylicBackgroundSource source) { if (ControlPanel_ControlPanelVisibilityStates_Border.Background is AcrylicBrush brush) { brush.BackgroundSource = source; } }
public static AcrylicBrush GetAcrylicBrush(AcrylicBackgroundSource acrylicBackground, Color TintColor, Color FallbackColor, double TintOpacity) { var brush = new AcrylicBrush(); brush.BackgroundSource = acrylicBackground; brush.TintColor = TintColor; brush.FallbackColor = FallbackColor; brush.TintOpacity = TintOpacity; return(brush); }
void UpdateBackgroundSource() { backgroundSource = (AcrylicBackgroundSource)Enum.Parse(typeof(AcrylicBackgroundSource), AcrylicMaterial.GetBackgroundSource(Element).ToString()); }