Show / Hide Table of Contents

Class PopupPositioningBehavior

Behavior that positions the Popup relative to its PlacementTarget and within the borders of its Owner

Inheritance
object
DispatcherObject
DependencyObject
Freezable
Animatable
Behavior
Behavior<Popup>
PopupPositioningBehavior
Implements
IAnimatable
IAttachedObject
Behavior<Popup>.AssociatedObject
Behavior.OnDetaching()
Behavior.CreateInstanceCore()
Behavior.Attach(DependencyObject)
Behavior.Detach()
Behavior.AssociatedType
Animatable.ApplyAnimationClock(DependencyProperty, AnimationClock)
Animatable.ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior)
Animatable.BeginAnimation(DependencyProperty, AnimationTimeline)
Animatable.BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)
Animatable.Clone()
Animatable.FreezeCore(bool)
Animatable.GetAnimationBaseValue(DependencyProperty)
Animatable.HasAnimatedProperties
Freezable.CloneCore(Freezable)
Freezable.CloneCurrentValue()
Freezable.CloneCurrentValueCore(Freezable)
Freezable.CreateInstance()
Freezable.Freeze()
Freezable.Freeze(Freezable, bool)
Freezable.GetAsFrozen()
Freezable.GetAsFrozenCore(Freezable)
Freezable.GetCurrentValueAsFrozen()
Freezable.GetCurrentValueAsFrozenCore(Freezable)
Freezable.OnChanged()
Freezable.OnFreezablePropertyChanged(DependencyObject, DependencyObject)
Freezable.OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty)
Freezable.OnPropertyChanged(DependencyPropertyChangedEventArgs)
Freezable.ReadPreamble()
Freezable.WritePostscript()
Freezable.WritePreamble()
Freezable.CanFreeze
Freezable.IsFrozen
Freezable.Changed
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Equals(object)
DependencyObject.GetHashCode()
DependencyObject.GetLocalValueEnumerator()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.InvalidateProperty(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyProperty, object)
DependencyObject.SetValue(DependencyPropertyKey, object)
DependencyObject.ShouldSerializeProperty(DependencyProperty)
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DispatcherObject.Dispatcher
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Presentation.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class PopupPositioningBehavior : Behavior<Popup>, IAnimatable, IAttachedObject

Constructors

View Source

PopupPositioningBehavior()

Initializes a new instance of the PopupPositioningBehavior class.

Declaration
public PopupPositioningBehavior()

Fields

View Source

ExplicitHeightProperty

The explicit height property

Declaration
public static readonly DependencyProperty ExplicitHeightProperty
Field Value
Type Description
DependencyProperty
View Source

MarginProperty

The popup margin property.

Declaration
public static readonly DependencyProperty MarginProperty
Field Value
Type Description
DependencyProperty
View Source

OwnerProperty

The owner property.

Declaration
public static readonly DependencyProperty OwnerProperty
Field Value
Type Description
DependencyProperty
View Source

PlacementTargetGapWidthProperty

The placement target gap width property (default is 20)

Declaration
public static readonly DependencyProperty PlacementTargetGapWidthProperty
Field Value
Type Description
DependencyProperty

Properties

View Source

ExplicitHeight

Property to set an explicit height which should be used for the SelectionOverlay

Declaration
public double ExplicitHeight { get; set; }
Property Value
Type Description
double
View Source

Margin

Gets or sets the margin of the popup, relative to its owner (default is [80,60,80,140]).

Declaration
public Thickness Margin { get; set; }
Property Value
Type Description
Thickness
View Source

Owner

Gets or sets the logical owner of the popup where the position calculation is based on.

Declaration
public Window Owner { get; set; }
Property Value
Type Description
Window
View Source

PlacementTargetGapWidth

Gets or sets the width of the gap between popup and placement target (default is 20).

Declaration
public double PlacementTargetGapWidth { get; set; }
Property Value
Type Description
double

The width of the gap (default is 20).

Methods

View Source

OnAttached()

Called when attached.

Declaration
protected override void OnAttached()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnAttached()
Exceptions
Type Condition
ArgumentNullException

PlacementTarget

ArgumentException

PlacementTarget has to be of type FrameworkElement

Implements

IAnimatable
Microsoft.Xaml.Behaviors.IAttachedObject

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
DependencyObjectExtensions.XamlClone<T>(T)
DependencyObjectExtensions.FindAncestor<T>(DependencyObject)
DependencyObjectExtensions.FindFirstChildByType<T>(DependencyObject)
DependencyObjectExtensions.FindLogicalAncestor<T>(DependencyObject)
DependencyObjectExtensions.GetChildrenByType<T>(DependencyObject)
DependencyObjectExtensions.GetContainer(DependencyObject)
DependencyObjectExtensions.SetContainer(DependencyObject, CompositionContainer)
  • View Source
Back to top Generated by DocFX