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

Handles the Navigation Bar that can be shown at the top of a ACTileController. The developer can include Buttons on the left and right hand sides of the bar. More...

Inheritance diagram for ActionComponents.ACTileNavigationBar:
Collaboration diagram for ActionComponents.ACTileNavigationBar:

Public Member Functions

 ACTileNavigationBar (Context context)
 Initializes a new instance of the ACTileNavigationBar class. More...
 
 ACTileNavigationBar (Context context, ACTileController controller)
 Initializes a new instance of the ACTileNavigationBar class. More...
 
 ACTileNavigationBar ()
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 ACTileNavigationBar (CGRect rect)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 ACTileNavigationBar (Context context, IAttributeSet attr)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 ACTileNavigationBar (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
 ACTileNavigationBar (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the T:UIKit.UIView class. More...
 
virtual void BarShownCompleted ()
 Bars the shown completed. More...
 
virtual void BarHiddenCompleted ()
 Bars the hidden completed. More...
 
void Redraw ()
 Forces this ACTileNavigationBar to fully redraw itself More...
 
void Resize (nfloat width)
 Resize to the specified width. More...
 
void ShowNavigationBar (bool animated)
 Shows the ACTileNavigationBar More...
 
void HideNavigationBar (bool animated)
 Hides the ACTileNavigationBar More...
 
Button AddLeftButton (string title, Bitmap icon, int width, int height, EventHandler< TouchEventArgs > action)
 Adds a new button to the left side of the navigation bar. More...
 
void AddLeftButton (Button button)
 Adds the given button to the left side of the control. More...
 
void RemoveLeftButton (int n)
 Removes the requested button from the left side of the navigation bar. More...
 
Button AddRightButton (string title, Bitmap icon, int width, int height, EventHandler< TouchEventArgs > action)
 Adds a button to the right side of the navigation bar. More...
 
void AddRightButton (Button button)
 Adds the given button to the right side of the navigation bar. More...
 
void RemoveRightButton (int n)
 Removes a button from the right side of the navigation bar. More...
 
override void Draw (CGRect rect)
 Draw the specified rect. More...
 
override void LayoutSubviews ()
 Layouts the subviews. More...
 
delegate void ACTileNavigationBarShownDelegate (ACTileNavigationBar navigationBar)
 Occurs when this ACTileNavigationBar is shown More...
 
delegate void ACTileNavigationBarHiddenDelegate (ACTileNavigationBar navigationBar)
 Occurs when the ACTileNavigationBar hidden. 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 TouchesBegan (NSSet touches, UIEvent evt)
 Sent when one or more fingers touches the screen. More...
 
virtual void TouchesMoved (NSSet touches, UIEvent evt)
 Sent when the ACTile is being dragged More...
 
virtual void TouchesEnded (NSSet touches, UIEvent evt)
 Send when one or more fingers are lifted from the screen. 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 ACTileNavigationBar More...
 
List< Button > leftButtons [get]
 Gets the left navigation bar buttons. More...
 
List< Button > rightButtons [get]
 Gets the right navigation bar buttons. More...
 
ACTileNavigationBarAppearance appearance [get, set]
 Gets or sets the ACTileNavigationBarAppearance for this ACTileNavigationBar More...
 
string title [get, set]
 Gets or sets the title for this ACTileNavigationBar More...
 
bool hidden [get]
 Gets a value indicating whether this ACTileNavigationBar is hidden. More...
 
- 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

ACTileNavigationBarShownDelegate BarShown
 
ACTileNavigationBarHiddenDelegate BarHidden
 

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

Handles the Navigation Bar that can be shown at the top of a ACTileController. The developer can include Buttons on the left and right hand sides of the bar.

Constructor & Destructor Documentation

ActionComponents.ACTileNavigationBar.ACTileNavigationBar ( Context  context)

Initializes a new instance of the ACTileNavigationBar class.

ActionComponents.ACTileNavigationBar.ACTileNavigationBar ( Context  context,
ACTileController  controller 
)

Initializes a new instance of the ACTileNavigationBar class.

Parameters
controllerController.
ActionComponents.ACTileNavigationBar.ACTileNavigationBar ( )

Initializes a new instance of the T:UIKit.UIView class.

ActionComponents.ACTileNavigationBar.ACTileNavigationBar ( CGRect  rect)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
rectRect.
ActionComponents.ACTileNavigationBar.ACTileNavigationBar ( Context  context,
IAttributeSet  attr 
)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
contextContext.
attrAttr.
ActionComponents.ACTileNavigationBar.ACTileNavigationBar ( IntPtr  javaReference,
JniHandleOwnership  transfer 
)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
javaReferenceJava reference.
transferTransfer.
ActionComponents.ACTileNavigationBar.ACTileNavigationBar ( Context  context,
IAttributeSet  attr,
int  defStyle 
)

Initializes a new instance of the T:UIKit.UIView class.

Parameters
contextContext.
attrAttr.
defStyleDef style.

Here is the call graph for this function:

Member Function Documentation

delegate void ActionComponents.ACTileNavigationBar.ACTileNavigationBarHiddenDelegate ( ACTileNavigationBar  navigationBar)

Occurs when the ACTileNavigationBar hidden.

delegate void ActionComponents.ACTileNavigationBar.ACTileNavigationBarShownDelegate ( ACTileNavigationBar  navigationBar)

Occurs when this ACTileNavigationBar is shown

Here is the caller graph for this function:

Button ActionComponents.ACTileNavigationBar.AddLeftButton ( string  title,
Bitmap  icon,
int  width,
int  height,
EventHandler< TouchEventArgs >  action 
)

Adds a new button to the left side of the navigation bar.

Returns
The left button.
Parameters
titleTitle.
iconIcon.
widthWidth.
heightHeight.
actionAction.

Here is the call graph for this function:

void ActionComponents.ACTileNavigationBar.AddLeftButton ( Button  button)

Adds the given button to the left side of the control.

Parameters
buttonButton.

Here is the call graph for this function:

Button ActionComponents.ACTileNavigationBar.AddRightButton ( string  title,
Bitmap  icon,
int  width,
int  height,
EventHandler< TouchEventArgs >  action 
)

Adds a button to the right side of the navigation bar.

Returns
The right button.
Parameters
titleTitle.
iconIcon.
widthWidth.
heightHeight.
actionAction.

Here is the call graph for this function:

void ActionComponents.ACTileNavigationBar.AddRightButton ( Button  button)

Adds the given button to the right side of the navigation bar.

Parameters
buttonButton.

Here is the call graph for this function:

virtual void ActionComponents.ACTileNavigationBar.BarHiddenCompleted ( )
virtual

Bars the hidden completed.

virtual void ActionComponents.ACTileNavigationBar.BarShownCompleted ( )
virtual

Bars the shown completed.

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

Draw the specified rect.

Parameters
rectRect.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

void ActionComponents.ACTileNavigationBar.HideNavigationBar ( bool  animated)

Hides the ACTileNavigationBar

Parameters
animatedIf set to true animated.
override void ActionComponents.ACTileNavigationBar.LayoutSubviews ( )
virtual

Layouts the subviews.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

void ActionComponents.ACTileNavigationBar.Redraw ( )

Forces this ACTileNavigationBar to fully redraw itself

Here is the call graph for this function:

Here is the caller graph for this function:

void ActionComponents.ACTileNavigationBar.RemoveLeftButton ( int  n)

Removes the requested button from the left side of the navigation bar.

Parameters
nThe location of the button to remove

Here is the call graph for this function:

void ActionComponents.ACTileNavigationBar.RemoveRightButton ( int  n)

Removes a button from the right side of the navigation bar.

Parameters
nThe location of the button to remove.

Here is the call graph for this function:

void ActionComponents.ACTileNavigationBar.Resize ( nfloat  width)

Resize to the specified width.

Returns
The resize.
Parameters
widthWidth.

Here is the call graph for this function:

void ActionComponents.ACTileNavigationBar.ShowNavigationBar ( bool  animated)

Shows the ACTileNavigationBar

Parameters
animatedIf set to true animated.

Property Documentation

ACTileNavigationBarAppearance ActionComponents.ACTileNavigationBar.appearance
getset

Gets or sets the ACTileNavigationBarAppearance for this ACTileNavigationBar

The appearance.

bool ActionComponents.ACTileNavigationBar.hidden
get

Gets a value indicating whether this ACTileNavigationBar is hidden.

true if hidden; otherwise, false.

List<Button> ActionComponents.ACTileNavigationBar.leftButtons
get

Gets the left navigation bar buttons.

The left buttons.

List<Button> ActionComponents.ACTileNavigationBar.rightButtons
get

Gets the right navigation bar buttons.

The right buttons.

Object ActionComponents.ACTileNavigationBar.tag
getset

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

The tag.

string ActionComponents.ACTileNavigationBar.title
getset

Gets or sets the title for this ACTileNavigationBar

The title.

Event Documentation

ACTileNavigationBarHiddenDelegate ActionComponents.ACTileNavigationBar.BarHidden
ACTileNavigationBarShownDelegate ActionComponents.ACTileNavigationBar.BarShown