C# 클래스 tvFocus.ViewController

Controls the main View for the app and is responsible for setting up a Foucs Guide UIFocusGuide that allows the user to move between the More Info and Buy button in the User Interface.
상속: UIViewController
파일 보기 프로젝트 열기: xamarin/monotouch-samples

공개 프로퍼티들

프로퍼티 타입 설명
FocusGuide UIFocusGuide

Private Properties

프로퍼티 타입 설명
BuyButton_PrimaryActionTriggered void
BuyButton_PrimaryActionTriggered void
MoreInfoButton_PrimaryActionTriggered void
MoreInfoButton_PrimaryActionTriggered void
ReleaseDesignerOutlets void

공개 메소드들

메소드 설명
DidUpdateFocus ( UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator ) : void

Called after the Focus Engine has been called to change the Focus from an existing item to a new item.

We are telling the Focus Guide where to move focus to from this method.

ViewController ( IntPtr handle ) : System

Initializes a new instance of the T:tvFocus.ViewController class.

ViewDidLoad ( ) : void

Called directly after the VIew has been loaded into memory and allows you to initialize the view.

We are building the Focus Guide here and attaching it to the view.

비공개 메소드들

메소드 설명
BuyButton_PrimaryActionTriggered ( UIButton sender ) : void

This action is triggered when the Buy button is clicked using the Apple Remote.

BuyButton_PrimaryActionTriggered ( UIKit sender ) : void
MoreInfoButton_PrimaryActionTriggered ( UIButton sender ) : void

This action is triggered when the More Info button is clicked using the Apple Remote.

MoreInfoButton_PrimaryActionTriggered ( UIKit sender ) : void
ReleaseDesignerOutlets ( ) : void

메소드 상세

DidUpdateFocus() 공개 메소드

Called after the Focus Engine has been called to change the Focus from an existing item to a new item.
We are telling the Focus Guide where to move focus to from this method.
public DidUpdateFocus ( UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator ) : void
context UIFocusUpdateContext The context of the movement.
coordinator UIFocusAnimationCoordinator An Animation Coordinator that you can use to animat the focus change.
리턴 void

ViewController() 공개 메소드

Initializes a new instance of the T:tvFocus.ViewController class.
public ViewController ( IntPtr handle ) : System
handle System.IntPtr Handle.
리턴 System

ViewDidLoad() 공개 메소드

Called directly after the VIew has been loaded into memory and allows you to initialize the view.
We are building the Focus Guide here and attaching it to the view.
public ViewDidLoad ( ) : void
리턴 void

프로퍼티 상세

FocusGuide 공개적으로 프로퍼티

Private storage for the Focus Guide that will allow us to move between buttons.
public UIFocusGuide FocusGuide
리턴 UIFocusGuide