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






Represents a scrollable area that can contains other visible elements.

Object Model

UXScrollViewer Class

Syntax

Visual Basic (Declaration) 
<StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=System.Windows.Controls.ScrollViewer)>
<DescriptionAttribute("Represents a scrollable area that can contains other visible elements.")>
<TemplatePartAttribute(Name="ScrollViewerElement", Type=System.Windows.Controls.ScrollViewer)>
Public Class UXScrollViewer 
   Inherits Intersoft.Client.Framework.ISContentControl
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As UXScrollViewer
C# 
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=System.Windows.Controls.ScrollViewer)]
[DescriptionAttribute("Represents a scrollable area that can contains other visible elements.")]
[TemplatePartAttribute(Name="ScrollViewerElement", Type=System.Windows.Controls.ScrollViewer)]
public class UXScrollViewer : Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing  
Delphi 
public class UXScrollViewer = class(Intersoft.Client.Framework.ISContentControl, IControl, IFramework, ILicensing)
JScript 
StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=System.Windows.Controls.ScrollViewer)
DescriptionAttribute("Represents a scrollable area that can contains other visible elements.")
TemplatePartAttribute(Name="ScrollViewerElement", Type=System.Windows.Controls.ScrollViewer)
public class UXScrollViewer extends Intersoft.Client.Framework.ISContentControl implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=System.Windows.Controls.ScrollViewer)]
[DescriptionAttribute("Represents a scrollable area that can contains other visible elements.")]
[TemplatePartAttribute(Name="ScrollViewerElement", Type=System.Windows.Controls.ScrollViewer)]
public __gc class UXScrollViewer : public Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing  
C++/CLI 
[StyleTypedPropertyAttribute(Property="ScrollViewerStyle", StyleTargetType=System.Windows.Controls.ScrollViewer)]
[DescriptionAttribute("Represents a scrollable area that can contains other visible elements.")]
[TemplatePartAttribute(Name="ScrollViewerElement", Type=System.Windows.Controls.ScrollViewer)]
public ref class UXScrollViewer : public Intersoft.Client.Framework.ISContentControl, IControlIFramework, ILicensing  

Remarks

You use UXScrollViewer to host a single content and facilitate scroll bars when the content exceeded the size of the desired size. UXScrollViewer automatically updates its scroll bar layout when the size of the content changed. It also implements a number of rich UX features and behavior such as consistently revealing scroll bars when the mouse cursor is over the scroll viewer, responsive animation and visual state to indicate dragging, scrolling and more.

The following example shows how to use UXScrollViewer using a simple content scenario.

XAML Copy Code
<Intersoft:UXScrollViewer Height="150" Width="250" BorderThickness="1" BorderBrush="#FF7E7E7E">
    <Grid Height="200" Background="#FFD0EFFF">
        <TextBlock Text="Put very long content here" VerticalAlignment="Center" HorizontalAlignment="Center"/>
    </Grid>
</Intersoft:UXScrollViewer>

The following figure shows the result of the above example.

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.UI.Controls.UXScrollViewer

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.