Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 1.51 KB

SpectrumVisualizer.md

File metadata and controls

25 lines (23 loc) · 1.51 KB

SpectrumVisualizer

Displays spectrum in stacked bars representation

Source (IVisualizationSource)

The visualization data source this control pulls data from.

Levels (MeterBarLevel [])

Array of values indicating the number of bar elements and their threshold levels and colors.

Orientation (Windows.UI.Xaml.Controls.Orientation)

Set the bar to be either horizontal or vertical

ChannelIndex (Int32)

Sets the audio channel of the visualization data

RelativeElementMargin (Windows.UI.Xaml.Thickness)

This property will allow setting the spacing for elements. During layout the space between elements (number of which is defined by Levels property) is divided equally. Setting RelativeElementMargin will allow to set margins for individual elements (in relative coordinates). For example Thickness(0.1,0.1,0.1,0.1) will leave spacing 1/10 of the cell width and height on each side.

UnlitElement (Windows.UI.Color)

Defines the color of an unlit element

ElementShadowOffset (Windows.Foundation.Numerics.Vector3)

Offset of a shadow from the element

ElementShadowColor (Windows.UI.Color)

Sets the color of the shadow that the element is casting

ElementShadowBlurRadius (float)

Set the element shadow blur radius

ElementFactory (IBarElementFactory)

By default the bar elements are rectangles. You can define your own shape by creating a class that implements IBarElementFactory and setting ElementFactory property to the instance of that class.

Home