alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class AddNewRowControl

    Represents the class that provides the common functionality for rendering the add new row in the grid.

    Inheritance
    System.Object
    GridElement
    VirtualizingCellsControl
    AddNewRowControl
    Implements
    System.IDisposable
    Inherited Members
    GridElement.AnimationOpacity
    GridElement.AnimationOpacityProperty
    VirtualizingCellsControl.ApplyFixedRowVisualState(Boolean)
    VirtualizingCellsControl.CurrentFocusBorderMargin
    VirtualizingCellsControl.CurrentFocusBorderMarginProperty
    VirtualizingCellsControl.CurrentFocusRowVisibility
    VirtualizingCellsControl.CurrentFocusRowVisibilityProperty
    VirtualizingCellsControl.Dispose()
    VirtualizingCellsControl.Dispose(Boolean)
    VirtualizingCellsControl.GroupRowSelectionBrush
    VirtualizingCellsControl.GroupRowSelectionBrushProperty
    VirtualizingCellsControl.HighlightBorderClipRect
    VirtualizingCellsControl.HighlightBorderClipRectProperty
    VirtualizingCellsControl.HighlightSelectionBorderVisiblity
    VirtualizingCellsControl.HighlightSelectionBorderVisiblityProperty
    VirtualizingCellsControl.OnCreateAutomationPeer()
    VirtualizingCellsControl.OnCreateScrollAnimation()
    VirtualizingCellsControl.OnMouseEnter(MouseEventArgs)
    VirtualizingCellsControl.OnMouseLeave(MouseEventArgs)
    VirtualizingCellsControl.OnMouseLeftButtonDown(MouseButtonEventArgs)
    VirtualizingCellsControl.OnMouseLeftButtonUp(MouseButtonEventArgs)
    VirtualizingCellsControl.OnMouseMove(MouseEventArgs)
    VirtualizingCellsControl.RowBackgroundClip
    VirtualizingCellsControl.RowBackgroundClipProperty
    VirtualizingCellsControl.RowBorderState
    VirtualizingCellsControl.RowHighlightBorderThickness
    VirtualizingCellsControl.RowHighlightBorderThicknessProperty
    VirtualizingCellsControl.RowHoverBackgroundBrush
    VirtualizingCellsControl.RowHoverBackgroundBrushProperty
    VirtualizingCellsControl.RowHoverForeground
    VirtualizingCellsControl.RowHoverForegroundProperty
    VirtualizingCellsControl.RowSelectionBrush
    VirtualizingCellsControl.RowSelectionBrushProperty
    VirtualizingCellsControl.ScrollAnimation
    VirtualizingCellsControl.SelectionBorderClipRect
    VirtualizingCellsControl.SelectionBorderClipRectProperty
    VirtualizingCellsControl.SelectionBorderVisiblity
    VirtualizingCellsControl.SelectionBorderVisiblityProperty
    VirtualizingCellsControl.SelectionForegroundBrush
    VirtualizingCellsControl.SelectionForegroundBrushProperty
    VirtualizingCellsControl.SetContent()
    VirtualizingCellsControl.UnwireEvents()
    VirtualizingCellsControl.WireEvents()
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class AddNewRowControl : VirtualizingCellsControl, IDisposable
    Remarks

    This control hosts the visual elements and watermark text used by the add new row surface.

    Constructors

    AddNewRowControl()

    Initializes a new instance of AddNewRowControl class.

    Declaration
    public AddNewRowControl()

    Fields

    AddNewRowTextProperty

    Identifies the AddNewRowText dependency property.

    Declaration
    public static readonly DependencyProperty AddNewRowTextProperty
    Field Value
    Type
    System.Windows.DependencyProperty
    Remarks

    The identifier for the AddNewRowText dependency property.

    TextBorderClipProperty

    Identifies the TextBorderClip dependency property.

    Declaration
    public static readonly DependencyProperty TextBorderClipProperty
    Field Value
    Type
    System.Windows.DependencyProperty
    Remarks

    The identifier for the TextBorderClip dependency property.

    TextMarginProperty

    Identifies the TextMargin dependency property.

    Declaration
    public static readonly DependencyProperty TextMarginProperty
    Field Value
    Type
    System.Windows.DependencyProperty
    Remarks

    The identifier for the TextMargin dependency property.

    Properties

    AddNewRowText

    Gets or set the watermark text displayed in the new row. If this value is empty or null, then the text from the localization provider will be used.

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

    A string that represents the text displayed in the AddNewRow watermark. The default value is null.

    Remarks

    You can use this property to define the different text for parent and details view data grid's new row.

    TextBorderClip

    Gets or sets the System.Windows.Media.RectangleGeometry used to clip the AddNewRow watermark text border.

    Declaration
    public RectangleGeometry TextBorderClip { get; set; }
    Property Value
    Type Description
    System.Windows.Media.RectangleGeometry

    The System.Windows.Media.RectangleGeometry applied to the watermark text border clip. The default value is null.

    TextMargin

    Gets or sets the margin that positions the AddNewRow watermark text when the row header is displayed.

    Declaration
    public Thickness TextMargin { get; set; }
    Property Value
    Type Description
    System.Windows.Thickness

    A System.Windows.Thickness that defines the offset applied to the AddNewRow watermark text. The default value is null.

    Methods

    OnApplyTemplate()

    Invoked to apply template for AddNewRowControl.

    Declaration
    public override void OnApplyTemplate()
    Overrides
    VirtualizingCellsControl.OnApplyTemplate()

    OnLoaded(Object, RoutedEventArgs)

    Invoked when the AddNewRowControl is loaded.

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

    The source of the event.

    System.Windows.RoutedEventArgs e

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

    Overrides
    VirtualizingCellsControl.OnLoaded(Object, RoutedEventArgs)

    OnSizeChanged(Object, SizeChangedEventArgs)

    Invoked when the size changed.

    Declaration
    protected override void OnSizeChanged(object sender, SizeChangedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender

    The source of the event.

    System.Windows.SizeChangedEventArgs e

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

    Overrides
    VirtualizingCellsControl.OnSizeChanged(Object, SizeChangedEventArgs)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved