Intersoft.Client.UI.Controls Namespace : UXPopup Class |
<TemplateVisualStateAttribute(Name="SlideXIn", GroupName="AnimationStates")> <TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.FrameworkElement)> <TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")> <TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)> <TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")> <TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")> <TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")> <DescriptionAttribute("Represents a popup control with intuitive animation and placements.")> <TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomOut")> <TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)> <TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")> <TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)> Public Class UXPopup Inherits Intersoft.Client.Framework.ISPopup Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
Dim instance As UXPopup
[TemplateVisualStateAttribute(Name="SlideXIn", GroupName="AnimationStates")] [TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.FrameworkElement)] [TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")] [TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")] [TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")] [DescriptionAttribute("Represents a popup control with intuitive animation and placements.")] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomOut")] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")] [TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)] public class UXPopup : Intersoft.Client.Framework.ISPopup, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
[TemplateVisualStateAttribute(Name="SlideXIn", GroupName="AnimationStates")] [TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.FrameworkElement)] [TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeOut")] [TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideXOut")] [TemplateVisualStateAttribute(GroupName="FadingStates", Name="FadeIn")] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYOut")] [DescriptionAttribute("Represents a popup control with intuitive animation and placements.")] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomOut")] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="SlideYIn")] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="PopupElement", Type=System.Windows.Controls.Primitives.Popup)] [TemplateVisualStateAttribute(GroupName="AnimationStates", Name="ZoomIn")] [TemplatePartAttribute(Name="ModalOverlayElement", Type=System.Windows.Controls.Grid)] public ref class UXPopup : public Intersoft.Client.Framework.ISPopup, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
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.
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; } |
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
Intersoft.Client.UI.DataVisualization.ToolTip
Target Platforms: Windows 7, 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