Exemple #1
0
        private void UpdateNavigation(Control sender, FocusDisengagedEventArgs args)
        {
            TotalCountTextBlock.Text = dokumentList.Count.ToString();

            if (currentId < 1)
            {
                PreviousButton.IsEnabled = false;
                NextButton.IsEnabled     = true;
            }
            else if (currentId == dokumentList.Count - 1)
            {
                PreviousButton.IsEnabled = true;
                NextButton.IsEnabled     = false;
            }
            else
            {
                PreviousButton.IsEnabled = true;
                NextButton.IsEnabled     = true;
            }

            if (displayedId != currentId)
            {
                UpdateDocumentData();
            }
        }
Exemple #2
0
        private void OnFocusDisengaged(Control sender, FocusDisengagedEventArgs args)
        {
            // Revert value:
            // for catching programmatic disengagements, gamepad ones are handled in OnPreviewKeyDown
            if (m_shouldDiscardValue)
            {
                bool valueChanged = false;

                if (Value != m_preEngagementValue)
                {
                    valueChanged = true;
                }

                Value = m_preEngagementValue;
                m_preEngagementValue = -1.0f;

                if (valueChanged)
                {
                    ValueChanged?.Invoke(this, null);
                }
            }

            ExitGamepadEngagementMode();
        }
 private void Control_OnFocusDisengaged(Control sender, FocusDisengagedEventArgs args)
 {
 }
Exemple #4
0
 object IFocusDisengagedEventArgsResolver.OriginalSource(FocusDisengagedEventArgs e) => e.OriginalSource;
Exemple #5
0
 /// <summary>
 /// Gets a reference to the object that raised the event.
 /// This is often a template part of a control rather than an element that was declared in your app UI.
 /// </summary>
 /// <param name="e">The requested <see cref="FocusDisengagedEventArgs"/>.</param>
 /// <returns>The object that raised the event.</returns>
 public static object OriginalSource(this FocusDisengagedEventArgs e) => Resolver.OriginalSource(e);
 private void UserControl_FocusDisengaged(Control sender, FocusDisengagedEventArgs args)
 {
     CleanupWebView();
 }
Exemple #7
0
        private void SeekBarSlider_FocusDisengaged(Control sender, FocusDisengagedEventArgs args)
        {
            RefrectSliderPositionToPlaybackPosition();

            NowVideoPositionChanging = false;
        }
 private void AutoSuggestBox_FocusDisengaged(Control sender, FocusDisengagedEventArgs args)
 {
     validateType();
 }
Exemple #9
0
 private void BinNameTBNW_FocusDisengaged(Control sender, FocusDisengagedEventArgs args)
 {
     BinNameTBLNWB.Visibility = Visibility.Visible;
     BinNameTBNWB.Visibility  = Visibility.Collapsed;
 }
		private void Button_FocusDisengaged(Control sender, FocusDisengagedEventArgs args)
		{
		}
Exemple #11
0
 private void Rating_FocusDisengaged(Control sender, FocusDisengagedEventArgs args)
 {
     ElementSoundPlayer.Play(ElementSoundKind.GoBack);
 }
 private void NameBox_FocusDisengaged(Control sender, FocusDisengagedEventArgs args)
 {
 }