105 references to PlacementMode
PresentationFramework (104)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
95Placement = PlacementMode.RelativePoint,
MS\Internal\Documents\DocumentViewerHelper.cs (1)
423cm.Placement = PlacementMode.Relative;
System\Windows\Controls\ContextMenu.cs (2)
230public PlacementMode Placement 232get { return (PlacementMode) GetValue(PlacementProperty); }
System\Windows\Controls\ContextMenuService.cs (5)
233typeof(PlacementMode), // Type 235new FrameworkPropertyMetadata(PlacementMode.MousePoint)); // Default Value 243public static PlacementMode GetPlacement(DependencyObject element) 246return (PlacementMode)element.GetValue(PlacementProperty); 254public static void SetPlacement(DependencyObject element, PlacementMode value)
System\Windows\Controls\PopupControlService.cs (2)
1016cm.Placement = PlacementMode.Center; 1021cm.Placement = PlacementMode.MousePoint;
System\Windows\Controls\Primitives\Popup.cs (83)
435typeof(PlacementMode), 438PlacementMode.Bottom, 446public PlacementMode Placement 448get { return (PlacementMode) GetValue(PlacementProperty); } 457internal PlacementMode PlacementInternal 461PlacementMode placement = Placement; 462bool isMouseMode = (placement == PlacementMode.Mouse || placement == PlacementMode.MousePoint); 465placement = PlacementMode.Bottom; 484PlacementMode value = (PlacementMode)o; 485return value == PlacementMode.Absolute 486|| value == PlacementMode.AbsolutePoint 487|| value == PlacementMode.Bottom 488|| value == PlacementMode.Center 489|| value == PlacementMode.Mouse 490|| value == PlacementMode.MousePoint 491|| value == PlacementMode.Relative 492|| value == PlacementMode.RelativePoint 493|| value == PlacementMode.Right 494|| value == PlacementMode.Left 495|| value == PlacementMode.Top 496|| value == PlacementMode.Custom; 1952private static bool IsAbsolutePlacementMode(PlacementMode placement) 1956case PlacementMode.MousePoint: 1957case PlacementMode.Mouse: 1958case PlacementMode.AbsolutePoint: 1959case PlacementMode.Absolute: 2014PlacementMode placement = PlacementInternal; 2038if (placement == PlacementMode.Custom) 2067if (placement == PlacementMode.Custom) 2127if ((bestIndex >= 2) && (placement == PlacementMode.Right || placement == PlacementMode.Left)) 2234PlacementMode placement = PlacementInternal; 2294private Point[] GetPlacementTargetInterestPoints(PlacementMode placement) 2314if (placement == PlacementMode.Mouse || placement == PlacementMode.MousePoint) 2346if (placement != PlacementMode.Relative && placement != PlacementMode.RelativePoint) 2382private Point[] GetChildInterestPoints(PlacementMode placement) 2477private static int GetNumberOfCombinations(PlacementMode placement) 2481case PlacementMode.Bottom: 2482case PlacementMode.Top: 2483case PlacementMode.Mouse: 2486case PlacementMode.Right: 2487case PlacementMode.Left: 2488case PlacementMode.RelativePoint: 2489case PlacementMode.MousePoint: 2490case PlacementMode.AbsolutePoint: 2493case PlacementMode.Custom: 2496case PlacementMode.Absolute: 2497case PlacementMode.Relative: 2498case PlacementMode.Center: 2505private PointCombination GetPointCombination(PlacementMode placement, int i, out PopupPrimaryAxis axis) 2513case PlacementMode.Bottom: 2514case PlacementMode.Mouse: 2529case PlacementMode.Top: 2544case PlacementMode.Right: 2545case PlacementMode.Left: 2549if ((dropFromRight && placement == PlacementMode.Right) || 2550(!dropFromRight && placement == PlacementMode.Left)) 2566case PlacementMode.Relative: 2567case PlacementMode.RelativePoint: 2568case PlacementMode.MousePoint: 2569case PlacementMode.AbsolutePoint: 2587case PlacementMode.Center: 2591case PlacementMode.Absolute: 2592case PlacementMode.Custom: 2602private static PopupPrimaryAxis GetPrimaryAxis(PlacementMode placement) 2606case PlacementMode.Right: 2607case PlacementMode.Left: 2610case PlacementMode.Bottom: 2611case PlacementMode.Top: 2612case PlacementMode.RelativePoint: 2613case PlacementMode.AbsolutePoint: 2616case PlacementMode.Relative: 2617case PlacementMode.Mouse: 2618case PlacementMode.MousePoint: 2619case PlacementMode.Center: 2620case PlacementMode.Absolute: 2621case PlacementMode.Custom: 2707private Rect GetMouseRect(PlacementMode placement) 2711if (placement == PlacementMode.Mouse)
System\Windows\Controls\Slider.cs (1)
841Placement = PlacementMode.Custom,
System\Windows\Controls\ToolTip.cs (2)
286public PlacementMode Placement 288get { return (PlacementMode) GetValue(PlacementProperty); }
System\Windows\Controls\ToolTipService.cs (5)
225typeof(PlacementMode), // Type 227new FrameworkPropertyMetadata(PlacementMode.Mouse)); // Default Value 235public static PlacementMode GetPlacement(DependencyObject element) 238return (PlacementMode)element.GetValue(PlacementProperty); 246public static void SetPlacement(DependencyObject element, PlacementMode value)
System\windows\Documents\TextEditorContextMenu.cs (1)
166contextMenu.Placement = PlacementMode.RelativePoint;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
3375TypeConverterType = typeof(System.Windows.Controls.Primitives.PlacementMode)
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
1275_popup.Placement = PlacementMode.Top;