Version

PopupResizerDecorator Class

Class used inside a System.Windows.Controls.Primitives.Popup control to position a resizerbar above or below its content.
Syntax
'Declaration
 
Public NotInheritable Class PopupResizerDecorator 
   Inherits System.Windows.Controls.Decorator
public sealed class PopupResizerDecorator : System.Windows.Controls.Decorator 
Remarks

This is placed inside the shadow chrome and main border of a System.Windows.Controls.Primitives.Popup control.

Note: the implementation uses a RenderTransform to arrange the resizer bar appropriately. Therefore, any RenderTransform placed on its immediate child element will be ignored.

Example
The following example shows how to use the PopupResizerDecorator class.

<igRibbon:XamRibbonWindow x:Class="SnippetApp.Window1"
    
xmlns:igRibbon="http://infragistics.com/Ribbon"
    
xmlns:igWindows="http://infragistics.com/Windows">

    ....

    
<igRibbon:RibbonGroup Id="Popup" Caption="Popup">
        
<Popup Name="myPopup" 
                        
Placement="Bottom"
                        
PlacementTarget="{Binding ElementName=popupOpen}"
                        
IsOpen="{Binding ElementName=popupOpen, Path=IsChecked}">
            
<igWindows:PopupResizerDecorator 
                        
ResizeMode="VerticalOnly"
                        
ResizerBarStyle="{DynamicResource {x:Static igRibbon:XamRibbon.PopupResizerBarStyleKey}}">
                
<TextBlock Name="myPopupText" Background="LightBlue" Foreground="Blue">
                        My Popup Text
                
</TextBlock>
            
</igWindows:PopupResizerDecorator>
        
</Popup>
        
<igRibbon:ToggleButtonTool Name="popupOpen" HorizontalAlignment="Left" Width="150" Margin="0,0,0,0">Open popup</igRibbon:ToggleButtonTool>
    
</igRibbon:RibbonGroup>

    ....

</igRibbon:XamRibbonWindow>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also