/// <summary> /// Subscribing for textbox controls events that are inside control to catch focus state and delay frame preventing scrolling whole control up. /// </summary> private void SubscribeForChildrenTextBoxEvents() { if (_bottomAreaContent == null) { return; } var _bottomContentChildrens = _bottomAreaContent.GetLogicalChildrenBreadthFirst(); var textBoxChildrens = _bottomContentChildrens.OfType <TextBox>(); if (textBoxChildrens == null) { return; } foreach (TextBox textBoxChildren in textBoxChildrens) { textBoxChildren.PointerPressed -= TextBoxChildrenPointerPressedEventHandler; textBoxChildren.PointerPressed += TextBoxChildrenPointerPressedEventHandler; } }