menu

WPF

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

    Show / Hide Table of Contents

    Class GroupViewItem

    Represents the GroupViewItem UI element. Class instances are hosted in the GroupView.

    Inheritance
    System.Object
    TextImageControl
    GroupViewItem
    Inherited Members
    TextImageControl.Content
    TextImageControl.ContentProperty
    TextImageControl.ImageHeight
    TextImageControl.ImageHeightProperty
    TextImageControl.ImageHorizontalAlignment
    TextImageControl.ImageHorizontalAlignmentProperty
    TextImageControl.ImageMargin
    TextImageControl.ImageMarginProperty
    TextImageControl.ImageSource
    TextImageControl.ImageSourceProperty
    TextImageControl.ImageVerticalAlignment
    TextImageControl.ImageVerticalAlignmentProperty
    TextImageControl.ImageWidth
    TextImageControl.ImageWidthProperty
    TextImageControl.TextHorizontalAlignment
    TextImageControl.TextHorizontalAlignmentProperty
    TextImageControl.TextMargin
    TextImageControl.TextMarginProperty
    TextImageControl.TextProperty
    TextImageControl.TextVerticalAlignment
    TextImageControl.TextVerticalAlignmentProperty
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2007BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2010BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2010BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2010SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2003Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/ShinyBlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/ShinyRedStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/SyncOrangeStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/BlendStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf;component/Controls/GroupBar/Themes/DefaultStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/VS2010Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(GroupViewItem), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/TransparentStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2013, Type = typeof(GroupBar), XamlResource = "/Syncfusion.Tools.Wpf.Classic;component/Controls/GroupBar/Themes/Office2013Style.xaml")]
    public class GroupViewItem : TextImageControl

    Constructors

    GroupViewItem()

    Initializes a new instance of the GroupViewItem class.

    Declaration
    public GroupViewItem()

    Fields

    AfterEditEvent

    Identifies AfterEdit routed event.

    Declaration
    public static readonly RoutedEvent AfterEditEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    BeforeEditEvent

    Identifies BeforeEdit routed event.

    Declaration
    public static readonly RoutedEvent BeforeEditEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    ClickEvent

    Identifies Click routed event.

    Declaration
    public static readonly RoutedEvent ClickEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    CustomAnimationsProperty

    Identifies CustomAnimations dependency property.

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

    DoubleClickEvent

    Identifies DoubleClick routed event.

    Declaration
    public static readonly RoutedEvent DoubleClickEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    DragEndEvent

    Identifies DragEnd routed event.

    Declaration
    public static readonly RoutedEvent DragEndEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    DragStartEvent

    Identifies DragStart routed event.

    Declaration
    public static readonly RoutedEvent DragStartEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    HoverEvent

    Identifies Hover routed event.

    Declaration
    public static readonly RoutedEvent HoverEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    IsDraggingProperty

    Identifies IsDragging dependency property.

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

    IsDragOverDownProperty

    Identifies IsDragOverDown dependency property.

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

    IsDragOverTopProperty

    Identifies IsDragOverTop dependency property.

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

    IsInEditModeProperty

    Identifies IsInEditMode dependency property.

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

    IsPressedProperty

    Identifies IsPressed dependency property.

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

    IsSelectedProperty

    Identifies IsSelected dependency property.

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

    MouseDownColorProperty

    Identifies MouseDownColor dependency property.

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

    MouseHoverColorProperty

    Identifies MouseHoverColor dependency property.

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

    PressEvent

    Identifies Press routed event.

    Declaration
    public static readonly RoutedEvent PressEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    SelectedEvent

    Identifies Selected routed event.

    Declaration
    public static readonly RoutedEvent SelectedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    SelectedItemColorProperty

    Identifies SelectedItemColorProperty dependency property.

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

    SelectedItemMouseHoverColorProperty

    Identifies SelectedItemMouseHoverColor dependency property.

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

    UnselectedEvent

    Identifies Unselected routed event.

    Declaration
    public static readonly RoutedEvent UnselectedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    Properties

    CustomAnimations

    Gets or sets the custom animations.

    Declaration
    public CustomAnimationsCollection CustomAnimations { get; set; }
    Property Value
    Type Description
    CustomAnimationsCollection

    The custom animations.

    IsDragging

    Gets or sets a value indicating whether this instance is dragging.

    Declaration
    public bool IsDragging { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is dragging; otherwise, false

    IsDragOverDown

    Gets or sets a value indicating whether this instance is drag over down.

    Declaration
    public bool IsDragOverDown { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is drag over down; otherwise, false.

    IsDragOverTop

    Gets or sets a value indicating whether this instance is drag over top.

    Declaration
    public bool IsDragOverTop { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is drag over top; otherwise, false.

    IsInEditMode

    Gets or sets a value indicating whether this instance is in edit mode.

    Declaration
    public bool IsInEditMode { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is in edit mode; otherwise, false.

    IsPressed

    Gets a value indicating whether this instance is pressed.

    Declaration
    public bool IsPressed { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is pressed; otherwise, false.

    IsSelected

    Gets or sets a value indicating whether this instance is selected.

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is selected; otherwise, false.

    LogicalParent

    Gets the logical parent.

    Declaration
    public GroupView LogicalParent { get; }
    Property Value
    Type Description
    GroupView

    The logical parent.

    MouseDownColor

    Gets or sets the color of the mouse down.

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

    The color of the mouse down.

    MouseHoverColor

    Gets or sets the color of the mouse hover.

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

    The color of the mouse hover.

    ParentGroupBar

    Gets the parent group bar.

    Declaration
    public GroupBar ParentGroupBar { get; }
    Property Value
    Type Description
    GroupBar

    The parent group bar.

    ParentTab

    Gets the parent tab.

    Declaration
    public GroupBarItem ParentTab { get; }
    Property Value
    Type Description
    GroupBarItem

    The parent tab.

    SelectedItemColor

    Gets or sets the color of the selected item.

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

    The color of the selected item.

    SelectedItemMouseHoverColor

    Gets or sets the color of the selected item mouse hover.

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

    The color of the selected item mouse hover.

    ShowToolTip

    Gets a value indicating whether [show tool tip].

    Declaration
    public bool ShowToolTip { get; }
    Property Value
    Type Description
    System.Boolean

    true if [show tool tip]; otherwise, false.

    Text

    Gets or sets text to display.

    Declaration
    public override string Text { get; set; }
    Property Value
    Type Description
    System.String

    Type: System.String

    Overrides
    TextImageControl.Text
    See Also
    System.String

    Methods

    MeasureOverride(Size)

    Overrides MeasureOverride method.

    Declaration
    protected override Size MeasureOverride(Size constraint)
    Parameters
    Type Name Description
    System.Windows.Size constraint

    Settled by a father measure.

    Returns
    Type Description
    System.Windows.Size

    GroupView measure.

    OnAfterEdit()

    Invoked after renaming the GroupBarItem.

    Declaration
    protected virtual void OnAfterEdit()

    OnApplyTemplate()

    Builds the current template's visual tree if necessary.

    Declaration
    public override void OnApplyTemplate()

    OnBeforeEdit()

    Invoked before renaming the GroupBarItem.

    Declaration
    protected virtual void OnBeforeEdit()

    OnClick()

    Invoked when mouse performs click on the header.

    Declaration
    protected virtual void OnClick()

    OnDoubleClick()

    Invoked when mouse performs double click on the header.

    Declaration
    protected virtual void OnDoubleClick()

    OnDragEnd()

    Invoked when item is ended to drag.

    Declaration
    protected virtual void OnDragEnd()

    OnDragStart()

    Invoked when item is started to drag.

    Declaration
    protected virtual void OnDragStart()

    OnGotFocus(RoutedEventArgs)

    Invoked whenever an unhandled System.Windows.UIElement.GotFocus event reaches this element in its route.

    Declaration
    protected override void OnGotFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

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

    OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

    Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyboardFocusChangedEventArgs e

    The System.Windows.Input.KeyboardFocusChangedEventArgs that contains the event data.

    OnHover()

    Invoked when mouse hovers over the header.

    Declaration
    protected virtual void OnHover()

    OnInitialized(EventArgs)

    Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

    Declaration
    protected override void OnInitialized(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

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

    OnKeyDown(KeyEventArgs)

    Invoked when to the System.Windows.Input.Keyboard.KeyDown event is received.

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    The System.Windows.Input.KeyEventArgs that contains the event data.

    OnLoaded(Object, RoutedEventArgs)

    Called when the control is loaded and ready for presentation.

    Declaration
    protected virtual void OnLoaded(object sender, RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    Source of the event.

    System.Windows.RoutedEventArgs e

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

    OnLostFocus(RoutedEventArgs)

    Raises the System.Windows.UIElement.LostFocus routed event by using the event data that is provided.

    Declaration
    protected override void OnLostFocus(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

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

    OnMouseDoubleClick(MouseButtonEventArgs)

    Raises the System.Windows.Controls.Control.MouseDoubleClick event.

    Declaration
    protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data.

    OnMouseEnter(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter attached event is raised on this element. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseEnter(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseEventArgs that contains the event data.

    OnMouseLeftButtonDown(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

    OnMouseLeftButtonUp(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released.

    OnMouseMove(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseEventArgs that contains the event data.

    OnMouseRightButtonUp(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.UIElement.MouseRightButtonUp�routed event reaches an element in its route that is derived from this class. Used for correct editing of the groupViewItem.

    Declaration
    protected override void OnMouseRightButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs that contains the event data.

    OnPress()

    Invoked when the item is pressed.

    Declaration
    protected virtual void OnPress()

    OnPropertyChanged(DependencyPropertyChangedEventArgs)

    Called when some dependencyProperty is changed.

    Declaration
    protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Provides data for various property changed events. Typically these events report effective value changes in the value of a read-only dependency property.

    OnSelected()

    Invoked when IsSelected property is changed. Items is selected.

    Declaration
    protected virtual void OnSelected()

    OnUnselected()

    Invoked when IsSelected property is changed. Items isn't selected.

    Declaration
    protected virtual void OnUnselected()

    OnVisualParentChanged(DependencyObject)

    Invoked when the parent of this element in the visual tree is changed.

    Declaration
    protected override void OnVisualParentChanged(DependencyObject oldParent)
    Parameters
    Type Name Description
    System.Windows.DependencyObject oldParent

    The object that the context menu was previously attached to.

    Events

    AfterEdit

    Bubbling routed event is fired after renaming the GroupBarItem.

    Declaration
    public event RoutedEventHandler AfterEdit
    Event Type
    Type
    System.Windows.RoutedEventHandler

    BeforeEdit

    Bubbling routed event is fired before renaming the GroupBarItem.

    Declaration
    public event RoutedEventHandler BeforeEdit
    Event Type
    Type
    System.Windows.RoutedEventHandler

    Click

    Bubbling routed event is fired when mouse click is performed on the control.

    Declaration
    public event RoutedEventHandler Click
    Event Type
    Type
    System.Windows.RoutedEventHandler

    DoubleClick

    Bubbling routed event is fired when mouse double click is performed on the control.

    Declaration
    public event RoutedEventHandler DoubleClick
    Event Type
    Type
    System.Windows.RoutedEventHandler

    DragEnd

    Bubbling routed event is fired when the groupViewItem is dragged and dropped inside the same or another GroupView.

    Declaration
    public event RoutedEventHandler DragEnd
    Event Type
    Type
    System.Windows.RoutedEventHandler

    DragStart

    Bubbling routed event is fired when the groupViewItem is dragged.

    Declaration
    public event RoutedEventHandler DragStart
    Event Type
    Type
    System.Windows.RoutedEventHandler

    Hover

    Bubbling routed event is fired when mouse hovers over the control.

    Declaration
    public event RoutedEventHandler Hover
    Event Type
    Type
    System.Windows.RoutedEventHandler

    Press

    Bubbling routed event is fired when the control is pressed.

    Declaration
    public event RoutedEventHandler Press
    Event Type
    Type
    System.Windows.RoutedEventHandler

    Selected

    Bubbling routed event is fired when the control is selected.

    Declaration
    public event RoutedEventHandler Selected
    Event Type
    Type
    System.Windows.RoutedEventHandler

    Unselected

    Occurs when [unselected].

    Declaration
    public event RoutedEventHandler Unselected
    Event Type
    Type
    System.Windows.RoutedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved