ChatterBox.Client.Presentation.Shared.Views.ContactsView.InputPane_Hiding C# (CSharp) Method

InputPane_Hiding() private method

private InputPane_Hiding ( InputPane sender, InputPaneVisibilityEventArgs args ) : void
sender Windows.UI.ViewManagement.InputPane
args Windows.UI.ViewManagement.InputPaneVisibilityEventArgs
return void
        private void InputPane_Hiding(InputPane sender, InputPaneVisibilityEventArgs args)
        {
            if (Visibility != Visibility.Visible)
                return;

            if (MainGrid.RowDefinitions != null && MainGrid.RowDefinitions.Count >= 1)
            {
                MainGrid.RowDefinitions[0].Height = new GridLength(1, GridUnitType.Star);
                MainGrid.InvalidateArrange();
            }
        }