40 references to Parameter
PresentationCore (2)
System\Windows\Input\Command\CommandBinding.cs (1)
163CanExecuteRoutedEventArgs canExecuteArgs = new(e.Command, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (1)
679command.ExecuteCore(e.Parameter, newSource, e.UserInitiated);
PresentationFramework (36)
System\Windows\Annotations\AnnotationHelper.cs (4)
298CreateHighlightForSelection(AnnotationService.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null); 312CreateTextStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String); 326CreateInkStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String);
System\Windows\Controls\DataGrid.cs (3)
2203RoutedEventArgs editingEventArgs = e.Parameter as RoutedEventArgs; 2350DataGridEditingUnit editingUnit = GetEditingUnit(e.Parameter); 2523DataGridEditingUnit editingUnit = GetEditingUnit(e.Parameter);
System\Windows\Controls\DocumentViewer.cs (2)
1874DoFitToMaxPagesAcross(dv, args.Parameter); 1914DoZoom(dv, args.Parameter);
System\Windows\Controls\FlowDocumentReader.cs (1)
1447viewer.TrySwitchViewingMode(args.Parameter);
System\Windows\Controls\Frame.cs (1)
659FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1560if (args.Parameter != null) 1565pageNumber = Convert.ToInt32(args.Parameter, System.Globalization.CultureInfo.CurrentCulture);
System\Windows\Controls\Primitives\ScrollBar.cs (4)
283/// Scrolls horizontally to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />. 287/// Scrolls vertically to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />. 291/// Scrolls horizontally by dragging to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />. 295/// Scrolls vertically by dragging to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />.
System\Windows\Controls\ScrollViewer.cs (8)
2503if (args.Parameter is double) { ((ScrollViewer)target).DeferScrollToHorizontalOffset((double)args.Parameter); } 2507if (args.Parameter is double) { ((ScrollViewer)target).DeferScrollToVerticalOffset((double)args.Parameter); } 2569if (args.Parameter is double) { ((ScrollViewer)target).ScrollToHorizontalOffset((double)args.Parameter); } 2573if (args.Parameter is double) { ((ScrollViewer)target).ScrollToVerticalOffset((double)args.Parameter); }
System\Windows\Controls\StickyNote.cs (1)
1731InkCanvasEditingMode mode = (InkCanvasEditingMode)args.Parameter;
System\windows\Documents\TextEditorCharacters.cs (8)
383if (args.Parameter == null) 388TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, args.Parameter); 396if (args.Parameter == null) 401TextEditorCharacters._OnApplyProperty(This, TextElement.FontFamilyProperty, args.Parameter); 409if (args.Parameter == null) 414TextEditorCharacters._OnApplyProperty(This, TextElement.ForegroundProperty, args.Parameter); 422if (args.Parameter == null) 427TextEditorCharacters._OnApplyProperty(This, TextElement.BackgroundProperty, args.Parameter);
System\windows\Documents\TextEditorSpelling.cs (1)
127string correctedText = args.Parameter as string;
System\Windows\Navigation\NavigationWindow.cs (1)
1075FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1798rg.CurrentFilter = args.Parameter;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
274MouseButtonEventArgs e = args.Parameter as MouseButtonEventArgs;