Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (43 sloc) 3.71 KB
<Type Name="CustomPopupPlacementCallback" FullName="System.Windows.Controls.Primitives.CustomPopupPlacementCallback">
<TypeSignature Language="C#" Value="public delegate System.Windows.Controls.Primitives.CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed CustomPopupPlacementCallback extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Windows.Controls.Primitives.CustomPopupPlacementCallback" />
<TypeSignature Language="VB.NET" Value="Public Delegate Function CustomPopupPlacementCallback(popupSize As Size, targetSize As Size, offset As Point) As CustomPopupPlacement() " />
<TypeSignature Language="C++ CLI" Value="public delegate cli::array &lt;System::Windows::Controls::Primitives::CustomPopupPlacement&gt; ^ CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);" />
<TypeSignature Language="F#" Value="type CustomPopupPlacementCallback = delegate of Size * Size * Point -&gt; CustomPopupPlacement[]" />
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="popupSize" Type="System.Windows.Size" />
<Parameter Name="targetSize" Type="System.Windows.Size" />
<Parameter Name="offset" Type="System.Windows.Point" />
</Parameters>
<ReturnValue>
<ReturnType>System.Windows.Controls.Primitives.CustomPopupPlacement[]</ReturnType>
</ReturnValue>
<Docs>
<param name="popupSize">The <see cref="T:System.Windows.Size" /> of the <see cref="T:System.Windows.Controls.Primitives.Popup" /> control.</param>
<param name="targetSize">The <see cref="T:System.Windows.Size" /> of the <see cref="P:System.Windows.Controls.Primitives.Popup.PlacementTarget" />.</param>
<param name="offset">The <see cref="T:System.Windows.Point" /> computed from the <see cref="P:System.Windows.Controls.Primitives.Popup.HorizontalOffset" /> and <see cref="P:System.Windows.Controls.Primitives.Popup.VerticalOffset" /> property values.</param>
<summary>Represents a method that provides custom positioning for a <see cref="T:System.Windows.Controls.Primitives.Popup" /> control.</summary>
<returns>An array of possible <see cref="T:System.Windows.Controls.Primitives.CustomPopupPlacement" /> positions for the <see cref="T:System.Windows.Controls.Primitives.Popup" /> control relative to the <see cref="P:System.Windows.Controls.Primitives.Popup.PlacementTarget" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When the Popup is displayed, a point is chosen that maximizes the amount of the <xref:System.Windows.Controls.ToolTip> window that is visible. The <xref:System.Windows.Controls.ContextMenu>, <xref:System.Windows.Controls.Primitives.Popup> and <xref:System.Windows.Controls.ToolTip> classes each define a property of type <xref:System.Windows.Controls.Primitives.CustomPopupPlacementCallback>.
]]></format>
</remarks>
<altmember cref="T:System.Windows.Controls.Primitives.Popup" />
<altmember cref="T:System.Windows.Controls.Primitives.CustomPopupPlacement" />
<altmember cref="P:System.Windows.Controls.Primitives.Popup.CustomPopupPlacementCallback" />
<altmember cref="P:System.Windows.Controls.ToolTip.CustomPopupPlacementCallback" />
<altmember cref="P:System.Windows.Controls.ContextMenu.CustomPopupPlacementCallback" />
<related type="ExternalDocumentation" href="https://go.microsoft.com/fwlink/?LinkID=160032">Popup Placement Sample</related>
</Docs>
</Type>
You can’t perform that action at this time.