X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-swig%2Fexamples%2Fspin-control.cs;h=f385852d8be73f75d5501ed6b001ff507248003e;hb=fcc87538717836a4f9d9ca9ec7dfc242f5aa8431;hp=af74f1e17657265beec8ccf7b6f2f4e7f179ad8d;hpb=dcee19c07c4f38251b88ca0ad849c9a666cf20eb;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-swig/examples/spin-control.cs b/plugins/dali-swig/examples/spin-control.cs old mode 100644 new mode 100755 index af74f1e..f385852 --- a/plugins/dali-swig/examples/spin-control.cs +++ b/plugins/dali-swig/examples/spin-control.cs @@ -89,7 +89,7 @@ namespace MyCSharpExample { // Make sure when the current spin that takes input focus also takes the keyboard focus // For example, when you tap the spin directly - KeyboardFocusManager.Get().SetCurrentFocusActor(_textField); + FocusManager.Instance.SetCurrentFocusActor(_textField); } public void TextFieldKeyInputFocusLost(object source, KeyInputFocusLostEventArgs e) @@ -302,7 +302,7 @@ namespace MyCSharpExample _application.Initialized += Initialize; } - public void Initialize(object source, AUIApplicationInitEventArgs e) + public void Initialize(object source, NUIApplicationInitEventArgs e) { Stage stage = Stage.GetCurrent(); stage.BackgroundColor = Color.White; @@ -371,13 +371,13 @@ namespace MyCSharpExample _spinDay.SetKeyboardFocusable(true); _spinDay.Name = "_spinDay"; - KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager.Get(); + FocusManager keyboardFocusManager = FocusManager.Instance; keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChange; keyboardFocusManager.FocusedActorEnterKeyPressed += OnFocusedActorEnterKeyPressed; } - private Actor OnKeyboardPreFocusChange(object source, KeyboardFocusManager.PreFocusChangeEventArgs e) + private Actor OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e) { Actor nextFocusActor = e.Proposed; @@ -414,7 +414,7 @@ namespace MyCSharpExample return nextFocusActor; } - private void OnFocusedActorEnterKeyPressed(object source, KeyboardFocusManager.FocusedActorEnterKeyEventArgs e) + private void OnFocusedActorEnterKeyPressed(object source, FocusManager.FocusedActorEnterKeyEventArgs e) { // Make the text field in the current focused spin to take the key input KeyInputFocusManager manager = KeyInputFocusManager.Get();