Intersoft ClientUI Documentation
UXPopup Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace : UXPopup Class






Represents a popup control with intuitive animation and placements.

Object Model

UXPopup Class

Syntax

Visual Basic (Declaration) 
<TemplateVisualStateAttribute(Name="ZoomOut", GroupName="AnimationStates")>
<TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)>
<TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXIn")>
<TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")>
<TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")>
<TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)>
<DescriptionAttribute("Represents a popup control with intuitive animation and placements.")>
<TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")>
<TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")>
<TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")>
Public Class UXPopup 
   Inherits Intersoft.Client.Framework.ISPopup
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As UXPopup
C# 
[TemplateVisualStateAttribute(Name="ZoomOut", GroupName="AnimationStates")]
[TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXIn")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")]
[TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Represents a popup control with intuitive animation and placements.")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")]
public class UXPopup : Intersoft.Client.Framework.ISPopup, IControlIFramework, ILicensing  
Delphi 
public class UXPopup = class(Intersoft.Client.Framework.ISPopup, IControl, IFramework, ILicensing)
JScript 
TemplateVisualStateAttribute(Name="ZoomOut", GroupName="AnimationStates")
TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)
TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)
TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)
TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXIn")
TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")
TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")
TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)
DescriptionAttribute("Represents a popup control with intuitive animation and placements.")
TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")
TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")
TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")
public class UXPopup extends Intersoft.Client.Framework.ISPopup implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[TemplateVisualStateAttribute(Name="ZoomOut", GroupName="AnimationStates")]
[TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXIn")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")]
[TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Represents a popup control with intuitive animation and placements.")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")]
public __gc class UXPopup : public Intersoft.Client.Framework.ISPopup, IControlIFramework, ILicensing  
C++/CLI 
[TemplateVisualStateAttribute(Name="ZoomOut", GroupName="AnimationStates")]
[TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXIn")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")]
[TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Represents a popup control with intuitive animation and placements.")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")]
[TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")]
public ref class UXPopup : public Intersoft.Client.Framework.ISPopup, IControlIFramework, ILicensing  

Example

The following example shows how to define a UXPopup control. This example places the Button and UXPopup in a Grid panel. The content of the UXPopup appears in a TextBlock control, which displays its text in a separate layer that floats over the application near the Grid panel that host it.

XAML Copy Code
<Grid x:Name="LayoutRoot" Background="White">
        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                <Intersoft:UXPopup PreferredPosition="BottomLeft" x:Name="MyPopup">
                        <Grid Width="100" Height="100" Background="#FF8ECEFF">
                                <TextBlock TextWrapping="Wrap" Text="Put your popup content here" Margin="4"/>
                        </Grid>
                </Intersoft:UXPopup>
                <Button Content="Button" VerticalAlignment="Top" Width="80" Click="Button_Click"/>
        </Grid>
</Grid>
C# Copy Code
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
        this.MyPopup.IsOpen = !this.MyPopup.IsOpen;
}

Remarks

A UXPopup control displays content in a separate layer relative to an element or point on the screen. When the IsOpen property is set to True, UXPopup will show the content with a smooth animation.

This animation is one of the many added values from UXPopup that allows you to create richer application.

Creating a UXPopup

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  Intersoft.Client.Framework.ISContentControl
                     Intersoft.Client.Framework.ISPopup
                        Intersoft.Client.UI.Controls.UXPopup

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.