menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartToolBar - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartToolBar

    Represents ChartToolBar Class.

    Inheritance
    System.Object
    ChartToolBar
    Implements
    IChartSerializer
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.dll
    Syntax
    public class ChartToolBar : HeaderedItemsControl, IChartSerializer
    Remarks

    Chart Toolbar hosts various items to perform Chart functions such as Print, Save, Change chart type and so on.

    Examples
    <syncfusion:Chart.ToolBar > <syncfusion:ChartToolBar
    CloseButtonVisibility="True" TitleBarVisibility="True" Header="True" />
    </syncfusion:Chart.ToolBar>

    Constructors

    ChartToolBar()

    Initializes a new instance of the ChartToolBar class.

    Declaration
    public ChartToolBar()

    Fields

    CloseButtonVisibilityProperty

    Identifies the CloseButtonVisibility dependency property.

    Declaration
    public static readonly DependencyProperty CloseButtonVisibilityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    HeaderBackgroundProperty

    Identifies the HeaderBackground dependency property.

    Declaration
    public static readonly DependencyProperty HeaderBackgroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ItemsOrientationProperty

    Identifies the ItemsOrientation dependency property.

    Declaration
    public static DependencyProperty ItemsOrientationProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedItemProperty

    Identifies the SelectedItem dependency property.

    Declaration
    public static readonly DependencyProperty SelectedItemProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    TitleBarVisibilityProperty

    Identifies the TitleBarVisibility dependency property.

    Declaration
    public static readonly DependencyProperty TitleBarVisibilityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    CloseButton

    Gets or sets the ToolBar CloseButton

    Declaration
    public Button CloseButton { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.Button

    The CloseButton.

    CloseButtonVisibility

    Gets or sets the Close Button Visibility

    Declaration
    public Visibility CloseButtonVisibility { get; set; }
    Property Value
    Type Description
    System.Windows.Visibility

    The CloseButtonVisibility.

    HeaderBackground

    Gets or sets the Header Background.

    Declaration
    public Brush HeaderBackground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    The HeaderBackground.

    ItemsOrientation

    Gets or sets the Items Orientation.

    Declaration
    public Orientation ItemsOrientation { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.Orientation

    The ItemsOrientation.

    SelectedItem

    Gets or sets the Selected Item

    Declaration
    public ToolBarItem SelectedItem { get; set; }
    Property Value
    Type Description
    ToolBarItem

    The SelectedItem.

    TitleBarVisibility

    Gets or sets the TitleBar Visibility

    Declaration
    public Visibility TitleBarVisibility { get; set; }
    Property Value
    Type Description
    System.Windows.Visibility

    The TitleBarVisibility.

    Methods

    Deserialize(String)

    Method declaration for DeSerialize

    Declaration
    public object Deserialize(string xamlString)
    Parameters
    Type Name Description
    System.String xamlString
    Returns
    Type
    System.Object

    OnApplyTemplate()

    Invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

    Declaration
    public override void OnApplyTemplate()
    See Also
    ChartToolBar

    OnSelectedItemChanged(DependencyPropertyChangedEventArgs)

    Invoked when SelectedItem property is changed.

    Declaration
    protected virtual void OnSelectedItemChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    The System.Windows.DependencyPropertyChangedEventArgs that contains the event data.

    Serialize()

    Method declaration for Serialize

    Declaration
    public string Serialize()
    Returns
    Type
    System.String

    ToolBarItemPalette_MouseLeftButtonDown(Object, MouseButtonEventArgs)

    Handles the MouseLeftButtonDown event of the toolBarItemPalette control.

    Declaration
    public void ToolBarItemPalette_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The source of the event.

    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs instance containing the event data.

    ToolBarItemProperties_MouseLeftButtonDown(Object, MouseButtonEventArgs)

    Handles the KeyDown event of the toolBarItemProperties control.

    Declaration
    public void ToolBarItemProperties_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The source of the event.

    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.KeyEventArgs instance containing the event data.

    ToolBarItemType_MouseLeftButtonDown(Object, MouseButtonEventArgs)

    Handles the MouseLeftButtonDown event of the toolBarItemType control.

    Declaration
    public void ToolBarItemType_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The source of the event.

    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs instance containing the event data.

    Events

    SelectedItemChanged

    Represents Selected Item changed.

    Declaration
    public event ChartToolBarEventHandler SelectedItemChanged
    Event Type
    Type
    ChartToolBarEventHandler

    Implements

    IChartSerializer

    See Also

    ChartToolBar
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved