private void OnMouseDownOutsideCapturedElement( object sender, MouseButtonEventArgs e ) { CloseCalculatorUpDown( true ); }