Class ToolBarManager
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
[SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Metro/MetroToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Office2007Silver/Office2007SilverToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Transparent/TransparentToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Blend/BlendToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Default, Type = typeof(ToolBarManager), XamlResource = "/Syncfusion.Shared.Wpf;component/Controls/ToolBarAdv/Themes/Default/DefaultToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/VS2010/VS2010ToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Office2010Blue/Office2010BlueToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Office2010Black/Office2010BlackToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Office2010Silver/Office2010SilverToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Office2007Blue/Office2007BlueToolBarManagerStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(ToolBarManager), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/ToolBarAdv/Themes/Office2007Black/Office2007BlackToolBarManagerStyle.xaml")]
public class ToolBarManager : Control
Constructors
ToolBarManager()
Initializes the nwe instance of ToolBarManager
Declaration
public ToolBarManager()
Fields
BottomToolBarTrayProperty
Using a DependencyProperty as the backing store for LeftToolBarTray. This enables , styling, binding, etc...
Declaration
public static readonly DependencyProperty BottomToolBarTrayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CanDockAtBottomProperty
Using a DependencyProperty as the backing store for CanDockAtTopTray. This enables,styling, binding, etc...
Declaration
public static readonly DependencyProperty CanDockAtBottomProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CanDockAtLeftProperty
Using a DependencyProperty as the backing store for CanDockAtTopTray. This enables,styling, binding, etc...
Declaration
public static readonly DependencyProperty CanDockAtLeftProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CanDockAtRightProperty
Using a DependencyProperty as the backing store for CanDockAtTopTray. This enables,styling, binding, etc...
Declaration
public static readonly DependencyProperty CanDockAtRightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CanDockAtTopProperty
Using a DependencyProperty as the backing store for CanDockAtTopTray. This enables,styling, binding, etc...
Declaration
public static readonly DependencyProperty CanDockAtTopProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ContentProperty
Using a DependencyProperty as the backing store for Content. This enables , styling, binding, etc...
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FloatingToolBarStyleProperty
Using a DependencyProperty as the backing store for FloatingToolBarStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty FloatingToolBarStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LeftToolBarTrayProperty
Declaration
public static readonly DependencyProperty LeftToolBarTrayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RightToolBarTrayProperty
Using a DependencyProperty as the backing store for LeftToolBarTray. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty RightToolBarTrayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ToolBarStateProperty
Using a DependencyProperty as the backing store for ToolBarState. This enables,styling, binding, etc...
Declaration
public static readonly DependencyProperty ToolBarStateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TopToolBarTrayProperty
Using a DependencyProperty as the backing store for LeftToolBarTray. This enables, styling, binding, etc...
Declaration
public static readonly DependencyProperty TopToolBarTrayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
BottomToolBarTray
Gets or Sets the ToolBarTrayAdv displayed at the Bottom side of ToolBarManager
Declaration
public ToolBarTrayAdv BottomToolBarTray { get; set; }
Property Value
Type |
---|
ToolBarTrayAdv |
CanDockAtBottom
Gets or Sets value indicating whether toolbar can be docked at Bottom position
Declaration
public bool CanDockAtBottom { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | returns the boolean value The default value is True |
CanDockAtLeft
Gets or Sets value indicating whether toolbar can be docked at Left position
Declaration
public bool CanDockAtLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | returns the boolean value The default value is True |
CanDockAtRight
Gets or Sets value indicating whether toolbar can be docked at Right position
Declaration
public bool CanDockAtRight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | returns the boolean value The default value is True |
CanDockAtTop
Gets or Sets value indicating whether toolbar can be docked at top position
Declaration
public bool CanDockAtTop { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | returns the boolean value |
Content
Gets or Sets the Content of ToolBarManager
Declaration
public UIElement Content { get; set; }
Property Value
Type |
---|
System.Windows.UIElement |
FloatingToolBarStyle
Gets or Sets a style of floating toolbar
Declaration
public Style FloatingToolBarStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | returns the System.Windows.Style of floating toolbar |
LeftToolBarTray
Gets or Sets the ToolBarTrayAdv displayed at the left side of ToolBarManager
Declaration
public ToolBarTrayAdv LeftToolBarTray { get; set; }
Property Value
Type |
---|
ToolBarTrayAdv |
RightToolBarTray
Gets or Sets the ToolBarTrayAdv displayed at the Right side of ToolBarManager
Declaration
public ToolBarTrayAdv RightToolBarTray { get; set; }
Property Value
Type |
---|
ToolBarTrayAdv |
TopToolBarTray
Gets or Sets the ToolBarTrayAdv displayed at the Top side of ToolBarManager
Declaration
public ToolBarTrayAdv TopToolBarTray { get; set; }
Property Value
Type |
---|
ToolBarTrayAdv |
Methods
ArrangeOverride(Size)
Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | The final area within the parent that this object should use to arrange itself and its children. |
Returns
Type | Description |
---|---|
System.Windows.Size | The actual size that is used after the element is arranged in layout. |
GetToolBarState(ToolBarAdv)
Gets the tool bar state
Declaration
public static ToolBarState GetToolBarState(ToolBarAdv obj)
Parameters
Type | Name | Description |
---|---|---|
ToolBarAdv | obj | Syncfusion.Windows.Tools.Controls.ToolBarAdv |
Returns
Type | Description |
---|---|
ToolBarState | returns the ToolBarState |
InvalidateLayout()
Invalidates the entire layout
Declaration
public void InvalidateLayout()
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | The available size that this object can give to child objects. Infinity (System.Double.PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available. |
Returns
Type | Description |
---|---|
System.Windows.Size | The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
SetToolBarState(ToolBarAdv, ToolBarState)
Sets the tool bar state
Declaration
public static void SetToolBarState(ToolBarAdv obj, ToolBarState value)
Parameters
Type | Name | Description |
---|---|---|
ToolBarAdv | obj | Syncfusion.Windows.Tools.Controls.ToolBarAdv. |
ToolBarState | value | Represent ToolBarState Value |