Class SfGroupBar
SfGroupBar control allows to arrange controls in a manner similar to Outlook bar.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls.Navigation
Assembly: Syncfusion.SfGroupBar.UWP.dll
Syntax
[ClassReference(IsReviewed = false)]
public class SfGroupBar : ItemsControl, IDisposable
Constructors
SfGroupBar()
Initializes the new instance of SfGroupBar class.
Declaration
[ClassReference(IsReviewed = false)]
public SfGroupBar()
Fields
AnimationSpeedProperty
Using a DependencyProperty as the backing store for AnimationSpeed. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AnimationSpeedProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
CollapsedTemplateProperty
Using a DependencyProperty as the backing store for CollapsedTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CollapsedTemplateProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
CollapsedWidthProperty
Using a DependencyProperty as the backing store for CollapsedWidth. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CollapsedWidthProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ContentTemplateProperty
Using a DependencyProperty as the backing store for ContentTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ContentTemplateProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ContentTemplateSelectorProperty
Using a DependencyProperty as the backing store for ContentTemplateSelector. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ContentTemplateSelectorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
DefaultTemplateProperty
Using a DependencyProperty as the backing store for DefaultTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DefaultTemplateProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IsCollapsedProperty
Using a DependencyProperty as the backing store for IsCollapsed. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsCollapsedProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PopupAnimationProperty
Using a DependencyProperty as the backing store for PopupAnimation. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PopupAnimationProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PopupHeightProperty
Using a DependencyProperty as the backing store for PopupHeight. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PopupHeightProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PopupPlacementPositionProperty
Using a DependencyProperty as the backing store for PopupPlacementPosition. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PopupPlacementPositionProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PopupSizeModeProperty
Using a DependencyProperty as the backing store for PopupSizeMode. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PopupSizeModeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PopupWidthProperty
Using a DependencyProperty as the backing store for PopupWidth. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PopupWidthProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
SelectedContentProperty
Using a DependencyProperty as the backing store for SelectedContent. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedContentProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
AnimationSpeed
Gets or sets the AnimationSpeed.
Declaration
[ClassReference(IsReviewed = false)]
public double AnimationSpeed { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 300. |
CollapsedTemplate
Gets or sets the CollapsedTemplate.
Declaration
[ClassReference(IsReviewed = false)]
public ControlTemplate CollapsedTemplate { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.ControlTemplate | The default value is null. |
CollapsedWidth
Gets or sets the CollapsedWidth.
Declaration
[ClassReference(IsReviewed = false)]
public double CollapsedWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 45.0. |
ContentTemplate
Gets or sets the data used to display the content of the selected SfGroupBarItem.
Declaration
[ClassReference(IsReviewed = false)]
public DataTemplate ContentTemplate { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.DataTemplate |
ContentTemplateSelector
Gets or sets the Template Selector for the data used to display the content of the selected SfGroupBarItem.
Declaration
[ClassReference(IsReviewed = false)]
public DataTemplateSelector ContentTemplateSelector { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Controls.DataTemplateSelector |
DefaultTemplate
Gets or sets the DefaultTemplate.
Declaration
[ClassReference(IsReviewed = false)]
public ControlTemplate DefaultTemplate { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.ControlTemplate | The default value is null. |
IsCollapsed
Gets or sets the IsCollapsed.
Declaration
[ClassReference(IsReviewed = false)]
public bool IsCollapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false. |
PopupAnimation
Gets or sets the PopupAnimation.
Declaration
[ClassReference(IsReviewed = false)]
public ContentPopupAnimationTypes PopupAnimation { get; set; }
Property Value
Type | Description |
---|---|
ContentPopupAnimationTypes | The default value is ContentPopupAnimationTypes.None. |
PopupHeight
Gets or sets the PopupHeight.
Declaration
[ClassReference(IsReviewed = false)]
public double PopupHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 300. |
PopupPlacementPosition
Gets or sets the PopupPlacementPosition.
Declaration
[ClassReference(IsReviewed = false)]
public PopupPlacement PopupPlacementPosition { get; set; }
Property Value
Type | Description |
---|---|
PopupPlacement | The default value is PopupPlacement.Right. |
PopupSizeMode
Gets or sets the PopupSizeMode.
Declaration
[ClassReference(IsReviewed = false)]
public PopupSizeModes PopupSizeMode { get; set; }
Property Value
Type | Description |
---|---|
PopupSizeModes | The default value is PopupSizeMode.DefaultSize. |
PopupWidth
Gets or sets the PopupWidth.
Declaration
[ClassReference(IsReviewed = false)]
public double PopupWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 300. |
SelectedContent
Gets or sets the SelectedContent.
Declaration
[ClassReference(IsReviewed = false)]
public object SelectedContent { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null. |
Methods
Dispose()
To clear unused objects
Declaration
public void Dispose()
Dispose(Boolean)
To remove all the instance which is used in SfAccordion
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type |
---|
Windows.UI.Xaml.DependencyObject |
IsItemItsOwnContainerOverride(Object)
Determines if the specified item is (or is eligible to be) its own container
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item |
Returns
Type |
---|
System.Boolean |
OnApplyTemplate()
Initializes all the child elements of SfGroupBar control.
Declaration
protected override void OnApplyTemplate()
OnKeyDown(KeyRoutedEventArgs)
Invoked when Key(s) down
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | Key Routed Event Args |
PrepareContainerForItemOverride(DependencyObject, Object)
Arranges the container for overrided items
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | element | |
System.Object | item |
Events
Collapsed
Collasped event fires when GroupBar moves to collapsed mode.
Declaration
[ClassReference(IsReviewed = false)]
public event RoutedEventHandler Collapsed
Event Type
Type |
---|
Windows.UI.Xaml.RoutedEventHandler |
Expanded
Expanded event fires when GroupBar moves to expanded mode.
Declaration
[ClassReference(IsReviewed = false)]
public event RoutedEventHandler Expanded
Event Type
Type |
---|
Windows.UI.Xaml.RoutedEventHandler |