UGrokItApiForms.UgiFormsUtil Class Reference

Overview

Utility functions for use in Xamarin.Forms apps

Class Methods

static void LogViewTree (Element root, string message="")
 Log a tree of visual elements (for debugging) More...
 
static void LogViewParents (Element e, string message="")
 Log the chain of visual parents of an element More...
 
static T GetParentOfType< T > (Element e)
 Get the first visual parent of a given type More...
 
static Rectangle GetAbsoluteBounds (VisualElement e)
 Gets the absolute bounds of a visual element More...
 

Instance Method Documentation

◆ LogViewTree()

static void UGrokItApiForms.UgiFormsUtil.LogViewTree ( Element  root,
string  message = "" 
)
inlinestatic

Log a tree of visual elements (for debugging)

Parameters
rootElement to start at
messageBanner essage

◆ LogViewParents()

static void UGrokItApiForms.UgiFormsUtil.LogViewParents ( Element  e,
string  message = "" 
)
inlinestatic

Log the chain of visual parents of an element

Parameters
eElement to start from
messageBanner essage

◆ GetParentOfType< T >()

static T UGrokItApiForms.UgiFormsUtil.GetParentOfType< T > ( Element  e)
inlinestatic

Get the first visual parent of a given type

Returns
The parent of the given type.
Parameters
eElement to start from
Template Parameters
TParent type to look for.
Type Constraints
T :Element 

◆ GetAbsoluteBounds()

static Rectangle UGrokItApiForms.UgiFormsUtil.GetAbsoluteBounds ( VisualElement  e)
inlinestatic

Gets the absolute bounds of a visual element

Returns
The absolute bounds of the element
Parameters
eThe visual element to get the bounds of