ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
ActionComponents.ACTileGroup Class Reference

Maintains a collection of ACTile objects that are contained within a ACTileController. The ACTileGroup handles the creation and layout of the ACTile objects and can controll a collection of different sized and shaped tiles. More...

Inheritance diagram for ActionComponents.ACTileGroup:
Collaboration diagram for ActionComponents.ACTileGroup:

Public Member Functions

IEnumerator GetEnumerator ()
 
bool MoveNext ()
 
void Reset ()
 
void Redraw ()
 Forces this ACTileGroup to fully redraw itself More...
 
void AddStyleChangeToAllTiles ()
 Adds the style changer ACTileLiveUpdate action to every ACTile in this ACTileGroup More...
 
ACTile AddTile (ACTileStyle style, ACTileSize tileSize, string title, string subtitle, string description, UIImage icon)
 Adds a new ACTile to this ACTileGroup. More...
 
ACTile AddTile (ACTileStyle style, ACTileSize tileSize, string title, string subtitle, string description, Android.Content.Res.Resources resources, int resourceID)
 Adds a new ACTile to this ACTileGroup. More...
 
ACTile AddCustomSizedTile (int rows, int cols, ACTileStyle style, string title, string subtitle, string description, UIImage icon)
 Adds a new ACTile to this ACTileGroup. More...
 
ACTile AddCustomSizedTile (int rows, int cols, ACTileStyle style, string title, string subtitle, string description, Android.Content.Res.Resources resources, int resourceID)
 Adds a new ACTile to this ACTileGroup. More...
 
void AddTile (ACTile tile)
 Adds the tile to the group's collection of tiles. More...
 
void RemoveTileAt (int index)
 Removes the ACTile at index. More...
 
void ClearTiles ()
 Removes all ACTile from this ACTile More...
 
void ChromaKeyTiles (ACColor background, int minimum, int maximum)
 Changes the background color of every ACTile in this ACTileGroup by creating a random brightness off the given base ACColor within the given minimum and maximum ranges More...
 
void SetTileColor (ACColor color)
 Sets the color of the tiles in the group. More...
 
override void Draw (CGRect rect)
 Draw the specified rect. More...
 
override void TouchesBegan (NSSet touches, UIEvent evt)
 Sent when one or more fingers touches the screen. More...
 
override void TouchesMoved (NSSet touches, UIEvent evt)
 Sent when the ACTile is being dragged More...
 
override void TouchesEnded (NSSet touches, UIEvent evt)
 Send when one or more fingers are lifted from the screen. More...
 
delegate void ACTileGroupTouchedDelegate (ACTileGroup view)
 Occurs when this ACTileGroup is touched More...
 
delegate void ACTileGroupMovedDelegate (ACTileGroup view)
 Occurs when this ACTileGroup is moved More...
 
delegate void ACTileGroupReleasedDelegate (ACTileGroup view)
 Occurs when this ACTileGroup is released More...
 
delegate void ACTileGroupLiveUpdatingDelegate (ACTileGroup group)
 Occurs when live updating has been kicked off by the ACTileController More...
 
delegate void ACTileGroupTileTouchedDelegate (ACTileGroup group, ACTile tile)
 Occurs when a tile is touched in this group. More...
 
- Public Member Functions inherited from UIKit.UIView
 UIView ()
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (CGRect rect)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context, IAttributeSet attr)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 UIView (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
void SetNeedsDisplay ()
 Sets the needs display flag. More...
 
void SetNeedsLayout ()
 Sets the needs layout. More...
 
virtual void LayoutSubviews ()
 Lays out any sub view in the control. More...
 
virtual void AddSubview (UIView view)
 Adds the subview. More...
 
void InvokeOnMainThread (Action action)
 Invokes the given action on the main UI thread. More...
 
override bool OnTouchEvent (MotionEvent e)
 Handle the touch event. More...
 

Properties

Object tag [get, set]
 Gets or sets the [OPTIONAL] tag that can be assosciated with this ACTileGroup More...
 
ACTileAppearance defaultTileAppearance [get, set]
 Gets or sets the default ACTileAppearance More...
 
ACTileLiveUpdate liveUpdateAction [get, set]
 Gets or sets the ACTileLiveUpdate action that will be performed via an automatic update kicked off by the liveUpdateTimer in the parent ACTileController More...
 
ACTileGroupType groupType [get]
 Gets the ACTileGroupType of this ACTileGroup . More...
 
bool shrinkTilesToFit [get, set]
 Gets or sets a value indicating whether this ACTileGroup will automatically shrink ActionTiles that are larger than a single cell by resizing them to a single cell to fit in their current location. More...
 
bool autoFitTiles [get, set]
 Gets or sets a value indicating whether this ACTileGroup will auto fit tiles into the first available space regardless of the actual tile order. More...
 
ACTileController controller [get]
 Gets the ACTileController that this ACTileGroup belongs to More...
 
ACTileGroupAppearance appearance [get, set]
 Gets or sets the ACTileGroupAppearance for this ACTileGroup More...
 
string title [get, set]
 Gets or sets the title for this ACTileGroup More...
 
string footer [get, set]
 Gets or sets the footer for this ACTileGroup More...
 
ACTile this[int index] [get, set]
 Gets or sets the ACTile at the specified index. More...
 
int Count [get]
 Gets the number of ACTiles contained in this ACTileGroup More...
 
bool Enabled [get, set]
 Gets or sets a value indicating whether this ACTile is enabled. More...
 
object Current [get]
 
- Properties inherited from UIKit.UIView
CGRect Frame [get, set]
 Gets or sets the frame. More...
 
CGRect Bounds [get, set]
 Gets or sets the bounds. More...
 
Canvas DrawCanvas [get, set]
 Gets or sets the draw canvas. More...
 
ACColor BackgroundColor = null [get, set]
 Gets or sets the color of the background. More...
 
bool UserInteractionEnabled [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView user interaction enabled. More...
 
bool MultipleTouchEnabled = false [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView multiple touch enabled. More...
 
CGPoint LastTouchPoint = false [get, set]
 Gets or sets the last touch point. More...
 
bool ClipsToBounds = new CGPoint(0, 0) [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView clips to bounds. More...
 
bool ExclusiveTouch [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView exclusive touch. More...
 
bool CacheViewDrawing = true [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIView cache view drawing to improve redraw performance. More...
 
List< UIViewSubviews = true [get]
 Gets the subviews. More...
 

Events

ACTileGroupTouchedDelegate Touched
 
ACTileGroupMovedDelegate Moved
 
ACTileGroupReleasedDelegate Released
 
ACTileGroupLiveUpdatingDelegate LiveUpdating
 
ACTileGroupTileTouchedDelegate TileTouched
 

Additional Inherited Members

- Protected Member Functions inherited from UIKit.UIView
override void OnDraw (Canvas canvas)
 Called when the view needs to draw itself. More...
 
override void OnLayout (bool changed, nint left, nint top, nint right, nint bottom)
 Called when the view is being laid out. More...
 

Detailed Description

Maintains a collection of ACTile objects that are contained within a ACTileController. The ACTileGroup handles the creation and layout of the ACTile objects and can controll a collection of different sized and shaped tiles.

Member Function Documentation

delegate void ActionComponents.ACTileGroup.ACTileGroupLiveUpdatingDelegate ( ACTileGroup  group)

Occurs when live updating has been kicked off by the ACTileController

delegate void ActionComponents.ACTileGroup.ACTileGroupMovedDelegate ( ACTileGroup  view)

Occurs when this ACTileGroup is moved

delegate void ActionComponents.ACTileGroup.ACTileGroupReleasedDelegate ( ACTileGroup  view)

Occurs when this ACTileGroup is released

delegate void ActionComponents.ACTileGroup.ACTileGroupTileTouchedDelegate ( ACTileGroup  group,
ACTile  tile 
)

Occurs when a tile is touched in this group.

delegate void ActionComponents.ACTileGroup.ACTileGroupTouchedDelegate ( ACTileGroup  view)

Occurs when this ACTileGroup is touched

Here is the caller graph for this function:

ACTile ActionComponents.ACTileGroup.AddCustomSizedTile ( int  rows,
int  cols,
ACTileStyle  style,
string  title,
string  subtitle,
string  description,
UIImage  icon 
)

Adds a new ACTile to this ACTileGroup.

Returns
The custom sized tile.
Parameters
rowsRows.
colsCols.
styleStyle.
titleTitle.
subtitleSubtitle.
descriptionDescription.
iconIcon.

Here is the call graph for this function:

ACTile ActionComponents.ACTileGroup.AddCustomSizedTile ( int  rows,
int  cols,
ACTileStyle  style,
string  title,
string  subtitle,
string  description,
Android.Content.Res.Resources  resources,
int  resourceID 
)

Adds a new ACTile to this ACTileGroup.

Returns
The custom sized tile.
Parameters
rowsRows.
colsCols.
styleStyle.
titleTitle.
subtitleSubtitle.
descriptionDescription.
resourcesResources.
resourceIDResource ID.

Here is the call graph for this function:

void ActionComponents.ACTileGroup.AddStyleChangeToAllTiles ( )

Adds the style changer ACTileLiveUpdate action to every ACTile in this ACTileGroup

Avoids changing CustomDrawn or BigPicture styles

ACTile ActionComponents.ACTileGroup.AddTile ( ACTileStyle  style,
ACTileSize  tileSize,
string  title,
string  subtitle,
string  description,
UIImage  icon 
)

Adds a new ACTile to this ACTileGroup.

Returns
The new tile created.
Parameters
styleStyle.
tileSizeTile size.
titleTitle.
subtitleSubtitle.
descriptionDescription.
iconIcon.

Here is the call graph for this function:

Here is the caller graph for this function:

ACTile ActionComponents.ACTileGroup.AddTile ( ACTileStyle  style,
ACTileSize  tileSize,
string  title,
string  subtitle,
string  description,
Android.Content.Res.Resources  resources,
int  resourceID 
)

Adds a new ACTile to this ACTileGroup.

Returns
The new tile created.
Parameters
styleStyle.
tileSizeTile size.
titleTitle.
subtitleSubtitle.
descriptionDescription.
resourcesResources.
resourceIDResource ID.

Here is the call graph for this function:

void ActionComponents.ACTileGroup.AddTile ( ACTile  tile)

Adds the tile to the group's collection of tiles.

Parameters
tileTile.

Here is the call graph for this function:

void ActionComponents.ACTileGroup.ChromaKeyTiles ( ACColor  background,
int  minimum,
int  maximum 
)

Changes the background color of every ACTile in this ACTileGroup by creating a random brightness off the given base ACColor within the given minimum and maximum ranges

Parameters
backgroundBackground.
minimumMinimum.
maximumMaximum.

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACTileGroup.ClearTiles ( )

Removes all ACTile from this ACTile

Here is the call graph for this function:

override void ActionComponents.ACTileGroup.Draw ( CGRect  rect)
virtual

Draw the specified rect.

Parameters
rectRect.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

IEnumerator ActionComponents.ACTileGroup.GetEnumerator ( )
bool ActionComponents.ACTileGroup.MoveNext ( )
void ActionComponents.ACTileGroup.Redraw ( )

Forces this ACTileGroup to fully redraw itself

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACTileGroup.RemoveTileAt ( int  index)

Removes the ACTile at index.

Parameters
indexIndex.

Here is the call graph for this function:

void ActionComponents.ACTileGroup.Reset ( )
void ActionComponents.ACTileGroup.SetTileColor ( ACColor  color)

Sets the color of the tiles in the group.

Parameters
colorColor.

Here is the call graph for this function:

Here is the caller graph for this function:

override void ActionComponents.ACTileGroup.TouchesBegan ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when one or more fingers touches the screen.

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

override void ActionComponents.ACTileGroup.TouchesEnded ( NSSet  touches,
UIEvent  evt 
)
virtual

Send when one or more fingers are lifted from the screen.

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

override void ActionComponents.ACTileGroup.TouchesMoved ( NSSet  touches,
UIEvent  evt 
)
virtual

Sent when the ACTile is being dragged

<Docs>Set containing the touches.</Docs>

Parameters
touchesTouches.
evtEvt.

Reimplemented from UIKit.UIView.

Property Documentation

ACTileGroupAppearance ActionComponents.ACTileGroup.appearance
getset

Gets or sets the ACTileGroupAppearance for this ACTileGroup

The appearance.

bool ActionComponents.ACTileGroup.autoFitTiles
getset

Gets or sets a value indicating whether this ACTileGroup will auto fit tiles into the first available space regardless of the actual tile order.

true if auto fit tiles; otherwise, false.

ACTileController ActionComponents.ACTileGroup.controller
get

Gets the ACTileController that this ACTileGroup belongs to

The controller.

int ActionComponents.ACTileGroup.Count
get

Gets the number of ACTiles contained in this ACTileGroup

The count.

object ActionComponents.ACTileGroup.Current
get
ACTileAppearance ActionComponents.ACTileGroup.defaultTileAppearance
getset

Gets or sets the default ACTileAppearance

The default tile appearance.

bool ActionComponents.ACTileGroup.Enabled
getset

Gets or sets a value indicating whether this ACTile is enabled.

true if enabled; otherwise, false.

Enabling/disabling a ACTile automatically changes the value of it's UserInteractionEnabled flag

string ActionComponents.ACTileGroup.footer
getset

Gets or sets the footer for this ACTileGroup

The footer.

ACTileGroupType ActionComponents.ACTileGroup.groupType
get

Gets the ACTileGroupType of this ACTileGroup .

The type of the group.

ACTileLiveUpdate ActionComponents.ACTileGroup.liveUpdateAction
getset

Gets or sets the ACTileLiveUpdate action that will be performed via an automatic update kicked off by the liveUpdateTimer in the parent ACTileController

The live update action.

bool ActionComponents.ACTileGroup.shrinkTilesToFit
getset

Gets or sets a value indicating whether this ACTileGroup will automatically shrink ActionTiles that are larger than a single cell by resizing them to a single cell to fit in their current location.

true if auto fit tiles; otherwise, false.

Object ActionComponents.ACTileGroup.tag
getset

Gets or sets the [OPTIONAL] tag that can be assosciated with this ACTileGroup

The tag.

ACTile ActionComponents.ACTileGroup.this[int index]
getset

Gets or sets the ACTile at the specified index.

Parameters
indexIndex.
string ActionComponents.ACTileGroup.title
getset

Gets or sets the title for this ACTileGroup

The title.

Event Documentation

ACTileGroupLiveUpdatingDelegate ActionComponents.ACTileGroup.LiveUpdating
ACTileGroupMovedDelegate ActionComponents.ACTileGroup.Moved
ACTileGroupReleasedDelegate ActionComponents.ACTileGroup.Released
ACTileGroupTileTouchedDelegate ActionComponents.ACTileGroup.TileTouched
ACTileGroupTouchedDelegate ActionComponents.ACTileGroup.Touched