X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fexamples%2Fdate-picker.cs;h=ef13fa73e1b29703f430d172a7394dabca17e08a;hp=a973f8d370b67ee93aa6e592f3b44a9b8e5967f7;hb=318378db7fbb0bcfb08c3c603f54857d6f5c9639;hpb=24ea337df1049251ab2e47c556edc6e8458f9c93 diff --git a/plugins/dali-sharp/examples/date-picker.cs b/plugins/dali-sharp/examples/date-picker.cs index a973f8d..ef13fa7 100644 --- a/plugins/dali-sharp/examples/date-picker.cs +++ b/plugins/dali-sharp/examples/date-picker.cs @@ -68,7 +68,7 @@ namespace MyCSharpExample _spinYear.MaxTextLength = 4; _spinYear.TextPointSize = 26; _spinYear.TextColor = Color.White; - _spinYear.SetKeyboardFocusable(true); + _spinYear.SetFocusable(true); _spinYear.Name = "_spinYear"; // Create a Spin control for month @@ -86,7 +86,7 @@ namespace MyCSharpExample _spinMonth.MaxTextLength = 2; _spinMonth.TextPointSize = 26; _spinMonth.TextColor = Color.White; - _spinMonth.SetKeyboardFocusable(true); + _spinMonth.SetFocusable(true); _spinMonth.Name = "_spinMonth"; // Create a Spin control for day @@ -107,13 +107,13 @@ namespace MyCSharpExample _spinDay.SetKeyboardFocusable(true); _spinDay.Name = "_spinDay"; - FocusManager keyboardFocusManager = FocusManager.Instance; - keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChange; - keyboardFocusManager.FocusedActorEnterKeyPressed += OnFocusedActorEnterKeyPressed; + FocusManager FocusManager = FocusManager.Instance; + FocusManager.PreFocusChange += OnPreFocusChange; + FocusManager.FocusedActorEnterKeyPressed += OnFocusedActorEnterKeyPressed; } - private Actor OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) + private Actor OnPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) { Actor nextFocusActor = e.Proposed; @@ -122,7 +122,7 @@ namespace MyCSharpExample { nextFocusActor = _spinYear.SpinText; } - else if(e.Direction == View.KeyboardFocus.Direction.LEFT) + else if(e.Direction == View.Focus.Direction.LEFT) { // Move the focus to the spin in the left of the current focused spin if(e.Current == _spinMonth.SpinText) @@ -134,7 +134,7 @@ namespace MyCSharpExample nextFocusActor = _spinMonth.SpinText; } } - else if(e.Direction == View.KeyboardFocus.Direction.RIGHT) + else if(e.Direction == View.Focus.Direction.RIGHT) { // Move the focus to the spin in the right of the current focused spin if(e.Current == _spinYear.SpinText)