Class BarConfig
Configuration for the bar plugin.
public class BarConfig : INotifyPropertyChanged
- Inheritance
-
BarConfig
- Implements
- Inherited Members
Remarks
The components lists can be changed up until when Whim is initialized.
Constructors
BarConfig(IList<BarComponent>, IList<BarComponent>, IList<BarComponent>)
Configuration for the bar plugin.
public BarConfig(IList<BarComponent> leftComponents, IList<BarComponent> centerComponents, IList<BarComponent> rightComponents)
Parameters
leftComponents
IList<BarComponent>- The components to display on the left side of the bar.
centerComponents
IList<BarComponent>- The components to display in the center of the bar.
rightComponents
IList<BarComponent>- The components to display on the right side of the bar.
Remarks
The components lists can be changed up until when Whim is initialized.
Properties
Backdrop
The backdrop/material to use for the bar. Changes to this property during runtime will
not be reflected in the UI - any changes must be done in the csx config prior to initializing Whim.
Switching between different backdrops can influence the transparency - for more see BackdropType.
Defaults to Mica, and to always show the backdrop.
public WindowBackdropConfig Backdrop { get; set; }
Property Value
Remarks
To change the opacity for the bar's background color, make sure the hex color includes the alpha values.
Height
The height of the bar, in device-independent pixels.
Setting this explicitly takes precedence over the ResourceDictionary.
public int Height { get; set; }
Property Value
Methods
OnPropertyChanged(string)
Handler to call when a property changes.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
string- The name of the property that changed.
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler? PropertyChanged