Class AddNewRowControl
Represents the class that provides the common functionality for rendering the add new row in the grid.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class AddNewRowControl : DataGridRowControl, 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 |
|---|
| Microsoft.UI.Xaml.DependencyProperty |
Remarks
The identifier for the AddNewRowText dependency property.
TextBorderClipProperty
Identifies the TextBorderClip dependency property.
Declaration
public static readonly DependencyProperty TextBorderClipProperty
Field Value
| Type |
|---|
| Microsoft.UI.Xaml.DependencyProperty |
Remarks
The identifier for the TextBorderClip dependency property.
TextMarginProperty
Identifies the TextMargin dependency property.
Declaration
public static readonly DependencyProperty TextMarginProperty
Field Value
| Type |
|---|
| Microsoft.UI.Xaml.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 Microsoft.UI.Xaml.Media.RectangleGeometry used to clip the AddNewRow watermark text border.
Declaration
public RectangleGeometry TextBorderClip { get; set; }
Property Value
| Type | Description |
|---|---|
| Microsoft.UI.Xaml.Media.RectangleGeometry | The Microsoft.UI.Xaml.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 |
|---|---|
| Microsoft.UI.Xaml.Thickness | A Microsoft.UI.Xaml.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
protected override void OnApplyTemplate()
Overrides
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. |
| Microsoft.UI.Xaml.RoutedEventArgs | e | The Microsoft.UI.Xaml.RoutedEventArgs that contains the event data. |
Overrides
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. |
| Microsoft.UI.Xaml.SizeChangedEventArgs | e | The Microsoft.UI.Xaml.SizeChangedEventArgs that contains the event data. |