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

Simulates the iOS UIScrollView to ease porting UI code from iOS to Android. NOTE: Only a small percentage of UIScrollView has been ported to support the Action Components. More...

Inheritance diagram for UIKit.UIScrollView:
Collaboration diagram for UIKit.UIScrollView:

Public Member Functions

 UIScrollView ()
 Initializes a new instance of the T:UIKit.UIScrollView class. More...
 
 UIScrollView (CGRect rect)
 Initializes a new instance of the T:UIKit.UIScrollView class. More...
 
 UIScrollView (Context context)
 Initializes a new instance of the T:UIKit.UIScrollView class. More...
 
 UIScrollView (Context context, CGRect rect)
 Initializes a new instance of the T:UIKit.UIScrollView class. More...
 
 UIScrollView (Context context, IAttributeSet attr)
 Initializes a new instance of the T:UIKit.UIScrollView class. More...
 
 UIScrollView (IntPtr javaReference, JniHandleOwnership transfer)
 Initializes a new instance of the T:UIKit.UIScrollView class. More...
 
 UIScrollView (Context context, IAttributeSet attr, int defStyle)
 Initializes a new instance of the T:UIKit.UIScrollView class. More...
 
void Redraw ()
 
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...
 
override void AddSubview (UIView view)
 Adds the subview. More...
 
override void LayoutSubviews ()
 Layouts the subviews. More...
 
delegate void UIScrolledDelegate (UIScrollView scrollview)
 Occurs when the scroll view is scrolled. 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 Draw (CGRect rect)
 Draw the specified rect. 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

CGSize ContentSize [get, set]
 Gets or sets the size of the content. More...
 
CGPoint ContentOffset [get, set]
 Gets or sets the content offset. More...
 
bool Bounces [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIScrollView is bounces. More...
 
bool AlwaysBounceVertical = false [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIScrollView always bounce vertical. More...
 
bool AlwaysBounceHorizontal = false [get, set]
 Gets or sets a value indicating whether this T:UIKit.UIScrollView always bounce horizontal. 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

UIScrolledDelegate Scrolled
 

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

Simulates the iOS UIScrollView to ease porting UI code from iOS to Android. NOTE: Only a small percentage of UIScrollView has been ported to support the Action Components.

Constructor & Destructor Documentation

UIKit.UIScrollView.UIScrollView ( )

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

UIKit.UIScrollView.UIScrollView ( CGRect  rect)

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

Parameters
rectRect.
UIKit.UIScrollView.UIScrollView ( Context  context)

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

Parameters
contextContext.
UIKit.UIScrollView.UIScrollView ( Context  context,
CGRect  rect 
)

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

Parameters
contextContext.
UIKit.UIScrollView.UIScrollView ( Context  context,
IAttributeSet  attr 
)

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

Parameters
contextContext.
attrAttr.
UIKit.UIScrollView.UIScrollView ( IntPtr  javaReference,
JniHandleOwnership  transfer 
)

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

Parameters
javaReferenceJava reference.
transferTransfer.
UIKit.UIScrollView.UIScrollView ( Context  context,
IAttributeSet  attr,
int  defStyle 
)

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

Parameters
contextContext.
attrAttr.
defStyleDef style.

Here is the call graph for this function:

Member Function Documentation

override void UIKit.UIScrollView.AddSubview ( UIView  view)
virtual

Adds the subview.

Parameters
viewView.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

Here is the caller graph for this function:

override void UIKit.UIScrollView.LayoutSubviews ( )
virtual

Layouts the subviews.

Reimplemented from UIKit.UIView.

Here is the call graph for this function:

Here is the caller graph for this function:

void UIKit.UIScrollView.Redraw ( )

Here is the call graph for this function:

Here is the caller graph for this function:

override void UIKit.UIScrollView.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 UIKit.UIScrollView.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.

override void UIKit.UIScrollView.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.

Here is the call graph for this function:

delegate void UIKit.UIScrollView.UIScrolledDelegate ( UIScrollView  scrollview)

Occurs when the scroll view is scrolled.

Here is the caller graph for this function:

Property Documentation

bool UIKit.UIScrollView.AlwaysBounceHorizontal = false
getset

Gets or sets a value indicating whether this T:UIKit.UIScrollView always bounce horizontal.

true if always bounce horizontal; otherwise, false.

bool UIKit.UIScrollView.AlwaysBounceVertical = false
getset

Gets or sets a value indicating whether this T:UIKit.UIScrollView always bounce vertical.

true if always bounce vertical; otherwise, false.

bool UIKit.UIScrollView.Bounces
getset

Gets or sets a value indicating whether this T:UIKit.UIScrollView is bounces.

true if bounces; otherwise, false.

CGPoint UIKit.UIScrollView.ContentOffset
getset

Gets or sets the content offset.

The content offset.

CGSize UIKit.UIScrollView.ContentSize
getset

Gets or sets the size of the content.

The size of the content.

Event Documentation

UIScrolledDelegate UIKit.UIScrollView.Scrolled