Actor month = actorTree.FindChildByName("Month" );
Actor day = actorTree.FindChildByName("Day");
- // need to get the actual C# View associated with the actor,
- _spinYear = (Spin ) ViewRegistry.GetCustomViewFromActor( year );
- _spinMonth = (Spin ) ViewRegistry.GetCustomViewFromActor( month );
- _spinDay = (Spin ) ViewRegistry.GetCustomViewFromActor( day );
+ // need to get the actual C# Spin object associated with the actor,
+ _spinYear = View.DownCast<Spin>( year );
+ _spinMonth = View.DownCast<Spin>( month );
+ _spinDay = View.DownCast<Spin>( day );
_spinYear.Value = 2099;
_spinMonth.Value = 5;
_spinDay.Value = 23;
-
_spinYear.SetKeyboardFocusable(true);
_spinMonth.SetKeyboardFocusable(true);
_spinDay.SetKeyboardFocusable(true);
-
FocusManager keyboardFocusManager = FocusManager.Instance;
keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChange;
keyboardFocusManager.FocusedActorEnterKeyPressed += OnFocusedActorEnterKeyPressed;