113 references to PlacementMode
PresentationFramework (104)
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
119
contextMenu.Placement =
PlacementMode
.RelativePoint;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
445
cm.Placement =
PlacementMode
.Relative;
src\Framework\System\Windows\Controls\ContextMenu.cs (2)
242
public
PlacementMode
Placement
244
get { return (
PlacementMode
) GetValue(PlacementProperty); }
src\Framework\System\Windows\Controls\ContextMenuService.cs (5)
274
typeof(
PlacementMode
), // Type
276
new FrameworkPropertyMetadata(
PlacementMode
.MousePoint)); // Default Value
284
public static
PlacementMode
GetPlacement(DependencyObject element)
290
return (
PlacementMode
)element.GetValue(PlacementProperty);
298
public static void SetPlacement(DependencyObject element,
PlacementMode
value)
src\Framework\System\Windows\Controls\PopupControlService.cs (2)
891
cm.Placement =
PlacementMode
.Center;
896
cm.Placement =
PlacementMode
.MousePoint;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (83)
444
typeof(
PlacementMode
),
447
PlacementMode
.Bottom,
455
public
PlacementMode
Placement
457
get { return (
PlacementMode
) GetValue(PlacementProperty); }
466
internal
PlacementMode
PlacementInternal
470
PlacementMode
placement = Placement;
471
bool isMouseMode = (placement ==
PlacementMode
.Mouse || placement ==
PlacementMode
.MousePoint);
474
placement =
PlacementMode
.Bottom;
493
PlacementMode
value = (
PlacementMode
)o;
494
return value ==
PlacementMode
.Absolute
495
|| value ==
PlacementMode
.AbsolutePoint
496
|| value ==
PlacementMode
.Bottom
497
|| value ==
PlacementMode
.Center
498
|| value ==
PlacementMode
.Mouse
499
|| value ==
PlacementMode
.MousePoint
500
|| value ==
PlacementMode
.Relative
501
|| value ==
PlacementMode
.RelativePoint
502
|| value ==
PlacementMode
.Right
503
|| value ==
PlacementMode
.Left
504
|| value ==
PlacementMode
.Top
505
|| 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))
2231
PlacementMode
placement = PlacementInternal;
2291
private Point[] GetPlacementTargetInterestPoints(
PlacementMode
placement)
2311
if (placement ==
PlacementMode
.Mouse || placement ==
PlacementMode
.MousePoint)
2343
if (placement !=
PlacementMode
.Relative && placement !=
PlacementMode
.RelativePoint)
2379
private Point[] GetChildInterestPoints(
PlacementMode
placement)
2474
private static int GetNumberOfCombinations(
PlacementMode
placement)
2478
case
PlacementMode
.Bottom:
2479
case
PlacementMode
.Top:
2480
case
PlacementMode
.Mouse:
2483
case
PlacementMode
.Right:
2484
case
PlacementMode
.Left:
2485
case
PlacementMode
.RelativePoint:
2486
case
PlacementMode
.MousePoint:
2487
case
PlacementMode
.AbsolutePoint:
2490
case
PlacementMode
.Custom:
2493
case
PlacementMode
.Absolute:
2494
case
PlacementMode
.Relative:
2495
case
PlacementMode
.Center:
2502
private PointCombination GetPointCombination(
PlacementMode
placement, int i, out PopupPrimaryAxis axis)
2510
case
PlacementMode
.Bottom:
2511
case
PlacementMode
.Mouse:
2526
case
PlacementMode
.Top:
2543
case
PlacementMode
.Right:
2544
case
PlacementMode
.Left:
2548
if ((dropFromRight && placement ==
PlacementMode
.Right) ||
2549
(!dropFromRight && placement ==
PlacementMode
.Left))
2565
case
PlacementMode
.Relative:
2566
case
PlacementMode
.RelativePoint:
2567
case
PlacementMode
.MousePoint:
2568
case
PlacementMode
.AbsolutePoint:
2586
case
PlacementMode
.Center:
2590
case
PlacementMode
.Absolute:
2591
case
PlacementMode
.Custom:
2601
private static PopupPrimaryAxis GetPrimaryAxis(
PlacementMode
placement)
2605
case
PlacementMode
.Right:
2606
case
PlacementMode
.Left:
2609
case
PlacementMode
.Bottom:
2610
case
PlacementMode
.Top:
2611
case
PlacementMode
.RelativePoint:
2612
case
PlacementMode
.AbsolutePoint:
2615
case
PlacementMode
.Relative:
2616
case
PlacementMode
.Mouse:
2617
case
PlacementMode
.MousePoint:
2618
case
PlacementMode
.Center:
2619
case
PlacementMode
.Absolute:
2620
case
PlacementMode
.Custom:
2706
private Rect GetMouseRect(
PlacementMode
placement)
2710
if (placement ==
PlacementMode
.Mouse)
src\Framework\System\Windows\Controls\Slider.cs (1)
854
_autoToolTip.Placement =
PlacementMode
.Custom;
src\Framework\System\Windows\Controls\ToolTip.cs (2)
309
public
PlacementMode
Placement
311
get { return (
PlacementMode
) GetValue(PlacementProperty); }
src\Framework\System\Windows\Controls\ToolTipService.cs (5)
267
typeof(
PlacementMode
), // Type
269
new FrameworkPropertyMetadata(
PlacementMode
.Mouse)); // Default Value
277
public static
PlacementMode
GetPlacement(DependencyObject element)
283
return (
PlacementMode
)element.GetValue(PlacementProperty);
291
public static void SetPlacement(DependencyObject element,
PlacementMode
value)
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
177
contextMenu.Placement =
PlacementMode
.RelativePoint;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
3248
bamlMember.TypeConverterType = typeof(System.Windows.Controls.Primitives.
PlacementMode
);
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (2)
589
this.ContextMenu.Placement =
PlacementMode
.Center;
593
this.ContextMenu.Placement =
PlacementMode
.MousePoint;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1522
Placement =
PlacementMode
.Bottom,
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (4)
477
this.ContextMenu.Placement = openedByKeyboard ?
PlacementMode
.Relative :
PlacementMode
.MousePoint;
482
this.ContextMenu.Placement = openedByKeyboard ?
PlacementMode
.Center :
PlacementMode
.MousePoint;
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
599
this.ContextMenu.Placement =
PlacementMode
.Center;
603
this.ContextMenu.Placement =
PlacementMode
.MousePoint;