40 references to Parameter
PresentationCore (2)
System\Windows\Input\Command\CommandBinding.cs (1)
155CanExecuteRoutedEventArgs canExecuteArgs = new(e.Command, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (1)
668command.ExecuteCore(e.Parameter, newSource, e.UserInitiated);
PresentationFramework (36)
System\Windows\Annotations\AnnotationHelper.cs (4)
286CreateHighlightForSelection(AnnotationService.GetService(viewer), null, e.Parameter != null ? e.Parameter as Brush : null); 300CreateTextStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String); 314CreateInkStickyNoteForSelection(AnnotationService.GetService(viewer), e.Parameter as String);
System\Windows\Controls\DataGrid.cs (3)
2200RoutedEventArgs editingEventArgs = e.Parameter as RoutedEventArgs; 2347DataGridEditingUnit editingUnit = GetEditingUnit(e.Parameter); 2520DataGridEditingUnit editingUnit = GetEditingUnit(e.Parameter);
System\Windows\Controls\DocumentViewer.cs (2)
1862DoFitToMaxPagesAcross(dv, args.Parameter); 1902DoZoom(dv, args.Parameter);
System\Windows\Controls\FlowDocumentReader.cs (1)
1442viewer.TrySwitchViewingMode(args.Parameter);
System\Windows\Controls\Frame.cs (1)
647FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1555if (args.Parameter != null) 1560pageNumber = Convert.ToInt32(args.Parameter, System.Globalization.CultureInfo.CurrentCulture);
System\Windows\Controls\Primitives\ScrollBar.cs (4)
267/// Scrolls horizontally to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />. 271/// Scrolls vertically to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />. 275/// Scrolls horizontally by dragging to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />. 279/// Scrolls vertically by dragging to the double value provided in <see cref="System.Windows.Input.ExecutedRoutedEventArgs.Parameter" />.
System\Windows\Controls\ScrollViewer.cs (8)
2495if (args.Parameter is double) { ((ScrollViewer)target).DeferScrollToHorizontalOffset((double)args.Parameter); } 2499if (args.Parameter is double) { ((ScrollViewer)target).DeferScrollToVerticalOffset((double)args.Parameter); } 2561if (args.Parameter is double) { ((ScrollViewer)target).ScrollToHorizontalOffset((double)args.Parameter); } 2565if (args.Parameter is double) { ((ScrollViewer)target).ScrollToVerticalOffset((double)args.Parameter); }
System\Windows\Controls\StickyNote.cs (1)
1715InkCanvasEditingMode mode = (InkCanvasEditingMode)args.Parameter;
System\windows\Documents\TextEditorCharacters.cs (8)
367if (args.Parameter == null) 372TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, args.Parameter); 380if (args.Parameter == null) 385TextEditorCharacters._OnApplyProperty(This, TextElement.FontFamilyProperty, args.Parameter); 393if (args.Parameter == null) 398TextEditorCharacters._OnApplyProperty(This, TextElement.ForegroundProperty, args.Parameter); 406if (args.Parameter == null) 411TextEditorCharacters._OnApplyProperty(This, TextElement.BackgroundProperty, args.Parameter);
System\windows\Documents\TextEditorSpelling.cs (1)
126string correctedText = args.Parameter as string;
System\Windows\Navigation\NavigationWindow.cs (1)
1059FrameworkElement journalEntryUIElem = e.Parameter as FrameworkElement;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1796rg.CurrentFilter = args.Parameter;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
269MouseButtonEventArgs e = args.Parameter as MouseButtonEventArgs;