105 references to PlacementMode
PresentationFramework (104)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
94Placement = PlacementMode.RelativePoint,
MS\Internal\Documents\DocumentViewerHelper.cs (1)
422cm.Placement = PlacementMode.Relative;
System\Windows\Controls\ContextMenu.cs (2)
229public PlacementMode Placement 231get { return (PlacementMode) GetValue(PlacementProperty); }
System\Windows\Controls\ContextMenuService.cs (5)
232typeof(PlacementMode), // Type 234new FrameworkPropertyMetadata(PlacementMode.MousePoint)); // Default Value 242public static PlacementMode GetPlacement(DependencyObject element) 245return (PlacementMode)element.GetValue(PlacementProperty); 253public static void SetPlacement(DependencyObject element, PlacementMode value)
System\Windows\Controls\PopupControlService.cs (2)
1012cm.Placement = PlacementMode.Center; 1017cm.Placement = PlacementMode.MousePoint;
System\Windows\Controls\Primitives\Popup.cs (83)
434typeof(PlacementMode), 437PlacementMode.Bottom, 445public PlacementMode Placement 447get { return (PlacementMode) GetValue(PlacementProperty); } 456internal PlacementMode PlacementInternal 460PlacementMode placement = Placement; 461bool isMouseMode = (placement == PlacementMode.Mouse || placement == PlacementMode.MousePoint); 464placement = PlacementMode.Bottom; 483PlacementMode value = (PlacementMode)o; 484return value == PlacementMode.Absolute 485|| value == PlacementMode.AbsolutePoint 486|| value == PlacementMode.Bottom 487|| value == PlacementMode.Center 488|| value == PlacementMode.Mouse 489|| value == PlacementMode.MousePoint 490|| value == PlacementMode.Relative 491|| value == PlacementMode.RelativePoint 492|| value == PlacementMode.Right 493|| value == PlacementMode.Left 494|| value == PlacementMode.Top 495|| value == PlacementMode.Custom; 1948private static bool IsAbsolutePlacementMode(PlacementMode placement) 1952case PlacementMode.MousePoint: 1953case PlacementMode.Mouse: 1954case PlacementMode.AbsolutePoint: 1955case PlacementMode.Absolute: 2010PlacementMode placement = PlacementInternal; 2034if (placement == PlacementMode.Custom) 2063if (placement == PlacementMode.Custom) 2123if ((bestIndex >= 2) && (placement == PlacementMode.Right || placement == PlacementMode.Left)) 2230PlacementMode placement = PlacementInternal; 2290private Point[] GetPlacementTargetInterestPoints(PlacementMode placement) 2310if (placement == PlacementMode.Mouse || placement == PlacementMode.MousePoint) 2342if (placement != PlacementMode.Relative && placement != PlacementMode.RelativePoint) 2378private Point[] GetChildInterestPoints(PlacementMode placement) 2473private static int GetNumberOfCombinations(PlacementMode placement) 2477case PlacementMode.Bottom: 2478case PlacementMode.Top: 2479case PlacementMode.Mouse: 2482case PlacementMode.Right: 2483case PlacementMode.Left: 2484case PlacementMode.RelativePoint: 2485case PlacementMode.MousePoint: 2486case PlacementMode.AbsolutePoint: 2489case PlacementMode.Custom: 2492case PlacementMode.Absolute: 2493case PlacementMode.Relative: 2494case PlacementMode.Center: 2501private PointCombination GetPointCombination(PlacementMode placement, int i, out PopupPrimaryAxis axis) 2509case PlacementMode.Bottom: 2510case PlacementMode.Mouse: 2525case PlacementMode.Top: 2540case PlacementMode.Right: 2541case PlacementMode.Left: 2545if ((dropFromRight && placement == PlacementMode.Right) || 2546(!dropFromRight && placement == PlacementMode.Left)) 2562case PlacementMode.Relative: 2563case PlacementMode.RelativePoint: 2564case PlacementMode.MousePoint: 2565case PlacementMode.AbsolutePoint: 2583case PlacementMode.Center: 2587case PlacementMode.Absolute: 2588case PlacementMode.Custom: 2598private static PopupPrimaryAxis GetPrimaryAxis(PlacementMode placement) 2602case PlacementMode.Right: 2603case PlacementMode.Left: 2606case PlacementMode.Bottom: 2607case PlacementMode.Top: 2608case PlacementMode.RelativePoint: 2609case PlacementMode.AbsolutePoint: 2612case PlacementMode.Relative: 2613case PlacementMode.Mouse: 2614case PlacementMode.MousePoint: 2615case PlacementMode.Center: 2616case PlacementMode.Absolute: 2617case PlacementMode.Custom: 2703private Rect GetMouseRect(PlacementMode placement) 2707if (placement == PlacementMode.Mouse)
System\Windows\Controls\Slider.cs (1)
822Placement = PlacementMode.Custom,
System\Windows\Controls\ToolTip.cs (2)
284public PlacementMode Placement 286get { return (PlacementMode) GetValue(PlacementProperty); }
System\Windows\Controls\ToolTipService.cs (5)
224typeof(PlacementMode), // Type 226new FrameworkPropertyMetadata(PlacementMode.Mouse)); // Default Value 234public static PlacementMode GetPlacement(DependencyObject element) 237return (PlacementMode)element.GetValue(PlacementProperty); 245public static void SetPlacement(DependencyObject element, PlacementMode value)
System\windows\Documents\TextEditorContextMenu.cs (1)
165contextMenu.Placement = PlacementMode.RelativePoint;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
3374TypeConverterType = typeof(System.Windows.Controls.Primitives.PlacementMode)
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1268_popup.Placement = PlacementMode.Top;