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
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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