Class Common
Class that holds the commonly utilizing methods and properties for PivotGrid.
Inheritance
System.Object
Common
Namespace: Syncfusion.UI.Xaml.PivotGrid
Assembly: Syncfusion.SfPivotGrid.UWP.dll
Syntax
public class Common : Object
Constructors
Common()
Declaration
public Common()
Methods
FindVisualChildWithName<childItem>(DependencyObject, String)
Static method to find name of the visual child element.
Declaration
public static childItem FindVisualChildWithName<childItem>(DependencyObject obj, string name)
where childItem : DependencyObject
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | obj | The dependency object. |
System.String | name | The name of the visual child element. |
Returns
Type | Description |
---|---|
childItem | The generic type. |
Type Parameters
Name | Description |
---|---|
childItem | The generic class. |
GetParentElement<T>(DependencyObject)
Static method to get the parent item of the control.
Declaration
public static T GetParentElement<T>(DependencyObject child)
where T : DependencyObject
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | child | Dependency object. |
Returns
Type | Description |
---|---|
T | Generic type. |
Type Parameters
Name | Description |
---|---|
T | Generic Class. |
GetTextSize(String)
Gets the size of the text.
Declaration
public static Size GetTextSize(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text inside text block. |
Returns
Type | Description |
---|---|
Windows.Foundation.Size | Size of the text. |