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