LongListSelector 类

继承层次结构

System.Object
  System.Windows.DependencyObject
    System.Windows.UIElement
      System.Windows.FrameworkElement
        System.Windows.Controls.Control
          Microsoft.Phone.Controls.LongListSelector

命名空间:  Microsoft.Phone.Controls
程序集:  Microsoft.Phone(在 Microsoft.Phone.dll 中)

语法

声明
<TemplateVisualStateAttribute(Name := "NotScrolling", GroupName := "ScrollStates")> _
<TemplateVisualStateAttribute(Name := "Scrolling", GroupName := "ScrollStates")> _
<TemplatePartAttribute(Name := "ViewportControl", Type := GetType(ViewportControl))> _
<TemplatePartAttribute(Name := "VerticalScrollBar", Type := GetType(ScrollBar))> _
<StyleTypedPropertyAttribute(Property := "JumpListStyle", StyleTargetType := GetType(LongListSelector))> _
Public Class LongListSelector _
    Inherits Control _
    Implements INotifyPropertyChanged
[TemplateVisualStateAttribute(Name = "NotScrolling", GroupName = "ScrollStates")]
[TemplateVisualStateAttribute(Name = "Scrolling", GroupName = "ScrollStates")]
[TemplatePartAttribute(Name = "ViewportControl", Type = typeof(ViewportControl))]
[TemplatePartAttribute(Name = "VerticalScrollBar", Type = typeof(ScrollBar))]
[StyleTypedPropertyAttribute(Property = "JumpListStyle", StyleTargetType = typeof(LongListSelector))]
public class LongListSelector : Control, 
    INotifyPropertyChanged
[TemplateVisualStateAttribute(Name = L"NotScrolling", GroupName = L"ScrollStates")]
[TemplateVisualStateAttribute(Name = L"Scrolling", GroupName = L"ScrollStates")]
[TemplatePartAttribute(Name = L"ViewportControl", Type = typeof(ViewportControl))]
[TemplatePartAttribute(Name = L"VerticalScrollBar", Type = typeof(ScrollBar))]
[StyleTypedPropertyAttribute(Property = L"JumpListStyle", StyleTargetType = typeof(LongListSelector))]
public ref class LongListSelector : public Control, 
    INotifyPropertyChanged
[<TemplateVisualStateAttribute(Name = "NotScrolling", GroupName = "ScrollStates")>]
[<TemplateVisualStateAttribute(Name = "Scrolling", GroupName = "ScrollStates")>]
[<TemplatePartAttribute(Name = "ViewportControl", Type = typeof(ViewportControl))>]
[<TemplatePartAttribute(Name = "VerticalScrollBar", Type = typeof(ScrollBar))>]
[<StyleTypedPropertyAttribute(Property = "JumpListStyle", StyleTargetType = typeof(LongListSelector))>]
type LongListSelector =  
    class
        inherit Control
        interface INotifyPropertyChanged
    end

LongListSelector 类型公开以下成员。

构造函数

  名称 说明
公共方法 LongListSelector

页首

属性

  名称 说明
公共属性 ActualHeight 获取此元素的呈现高度。 (继承自 FrameworkElement。)
公共属性 ActualWidth 获取此元素的呈现宽度。 (继承自 FrameworkElement。)
公共属性 AllowDrop 获取或设置一个值,该值指示此元素能否用作拖放操作的目标。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 Background 获取或设置一个用于描述控件背景的画笔。 (继承自 Control。)
公共属性 BorderBrush 获取或设置一个用于描述控件的边框背景的画笔。 (继承自 Control。)
公共属性 BorderThickness 获取或设置控件的边框宽度。 (继承自 Control。)
公共属性 CacheMode 获取或设置 UIElement 的缓存表示形式。 (继承自 UIElement。)
公共属性 CharacterSpacing (继承自 Control。)
公共属性 Clip 获取或设置用于定义元素内容轮廓的几何图形。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 Cursor 获取或设置在鼠标指针位于此元素上时显示的光标。 (继承自 FrameworkElement。)
公共属性 DataContext 获取或设置元素在参与数据绑定时的数据上下文。 (继承自 FrameworkElement。)
受保护的属性 DefaultStyleKey (继承自 Control。)
公共属性 DesiredSize 获取此元素在布局过程的测量处理过程中计算的大小。 (继承自 UIElement。)
公共属性 Dispatcher (继承自 DependencyObject。)
公共属性 FlowDirection 获取或设置文本和其他用户界面 (UI) 元素在控制它们布局的任何父元素中的流动方向。 (继承自 FrameworkElement。)
公共属性 FontFamily 获取或设置控件的字体系列。 (继承自 Control。)
公共属性 FontSize 获取或设置字号。 (继承自 Control。)
公共属性 FontStretch 获取或设置字体在屏幕上紧缩或加宽的程度。 (继承自 Control。)
公共属性 FontStyle 获取或设置字形。 (继承自 Control。)
公共属性 FontWeight 获取或设置指定字体的粗细。 (继承自 Control。)
公共属性 Foreground 获取或设置一个用于描述前景色的画笔。 (继承自 Control。)
公共属性 GridCellSize
公共属性 GroupFooterTemplate
公共属性 GroupHeaderTemplate
公共属性 Height 获取或设置元素的建议高度。 (继承自 FrameworkElement。)
公共属性 HideEmptyGroups
公共属性 HorizontalAlignment 获取或设置在父元素(如 Panel 或项控件)中组合此元素时所应用的水平对齐特征。 (继承自 FrameworkElement。)
公共属性 HorizontalContentAlignment 获取或设置控件内容的水平对齐方式。 (继承自 Control。)
公共属性 IsEnabled (继承自 Control。)
公共属性 IsGroupingEnabled
公共属性 IsHitTestVisible 获取或设置一个值,该值声明此元素是否可以作为其呈现内容的某部分的命中测试结果返回。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 IsTabStop 获取或设置一个值,该值指示是否将某个控件包含在 Tab 导航中。 (继承自 Control。)
公共属性 ItemsSource
公共属性 ItemTemplate
公共属性 JumpListStyle
公共属性 Language 获取或设置适用于某个元素的本地化/全球化语言信息。 (继承自 FrameworkElement。)
公共属性 LayoutMode
公共属性 ListFooter
公共属性 ListFooterTemplate
公共属性 ListHeader
公共属性 ListHeaderTemplate
公共属性 ManipulationState
公共属性 Margin 获取或设置元素的外边距。 (继承自 FrameworkElement。)
公共属性 MaxHeight 获取或设置元素的最大高度约束。 (继承自 FrameworkElement。)
公共属性 MaxWidth 获取或设置元素的最大宽度约束。 (继承自 FrameworkElement。)
公共属性 MinHeight 获取或设置元素的最小高度约束。 (继承自 FrameworkElement。)
公共属性 MinWidth 获取或设置元素的最小宽度约束。 (继承自 FrameworkElement。)
公共属性 Name 获取或设置元素的标识名称。该名称提供一个引用,以便当 XAML 处理器在处理过程中构造标记元素之后,代码隐藏(如事件处理程序代码)可以对该元素进行引用。 (继承自 FrameworkElement。)
公共属性 Opacity 获取或设置当 UIElement 在用户界面 (UI) 中呈现时为其整体应用的不透明度因子。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 OpacityMask 获取或设置不透明蒙板,作为应用于此元素已呈现内容的任何 Alpha 通道蒙板的 Brush 实现。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 Padding 获取或设置控件内部的填充边距。 (继承自 Control。)
公共属性 Parent 获取此元素的逻辑父级元素。 (继承自 FrameworkElement。)
公共属性 Projection (继承自 UIElement。)
公共属性 RenderSize 获取(或设置,请参见备注)此元素的最终呈现大小。 (继承自 UIElement。)
公共属性 RenderTransform 获取或设置影响此元素的呈现位置的转换信息。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 RenderTransformOrigin 获取或设置由 RenderTransform 声明的任何可能呈现转换的中心点,相对于元素的边界。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 Resources 获取或设置本地定义的资源字典。 (继承自 FrameworkElement。)
公共属性 SelectedItem
公共属性 Style 获取或设置此元素在呈现时使用的样式。 (继承自 FrameworkElement。)
公共属性 TabIndex 获取或设置一个值,该值决定在用户使用 Tab 键在控件中导航时元素接收焦点的顺序。 (继承自 Control。)
公共属性 TabNavigation (继承自 Control。)
公共属性 Tag 获取或设置任意对象值,该值可用于存储关于此元素的自定义信息。 (继承自 FrameworkElement。)
公共属性 Template 获取或设置控件模板。 (继承自 Control。)
公共属性 Triggers 获取直接在此元素上建立或在子元素中建立的触发器的集合。 (继承自 FrameworkElement。)
公共属性 UseLayoutRounding (继承自 UIElement。)
公共属性 UseOptimizedManipulationRouting (继承自 FrameworkElement。)
公共属性 VerticalAlignment 获取或设置在父元素(如 Panel 或项控件)中组合此元素时所应用的水平对齐特征。 (继承自 FrameworkElement。)
公共属性 VerticalContentAlignment 获取或设置控件内容的垂直对齐方式。 (继承自 Control。)
公共属性 Visibility 获取或设置此元素的用户界面 (UI) 可见性。这是一个依赖项属性。 (继承自 UIElement。)
公共属性 Width 获取或设置元素的宽度。 (继承自 FrameworkElement。)

页首

方法

  名称 说明
公共方法 AddHandler(RoutedEvent, Delegate, Boolean) 为指定的路由事件添加路由事件处理程序,并将该处理程序添加到当前元素的处理程序集合中。将 handledEventsToo 指定为 true 时,可为已标记为由其他元素在事件路由过程中处理的路由事件调用所提供的处理程序。 (继承自 UIElement。)
公共方法 ApplyTemplate (继承自 Control。)
公共方法 Arrange 定位子元素并确定 UIElement 的大小。父元素从其 ArrangeCore 实现(或 WPF 框架级别等效项)调用此方法以形成递归布局更新。此方法产生第二次布局更新。 (继承自 UIElement。)
受保护的方法 ArrangeOverride 在派生类中重写时,请为 FrameworkElement 派生类定位子元素并确定大小。 (继承自 FrameworkElement。)
公共方法 CaptureMouse 尝试将鼠标强制捕获到此元素。 (继承自 UIElement。)
公共方法 CheckAccess (继承自 DependencyObject。)
公共方法 ClearValue(DependencyProperty) 清除属性的本地值。要清除的属性由 DependencyProperty 标识符指定。 (继承自 DependencyObject。)
公共方法 Equals(Object) 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 FindName 查找具有提供的标识符名的元素。 (继承自 FrameworkElement。)
公共方法 Focus (继承自 Control。)
公共方法 GetAnimationBaseValue (继承自 DependencyObject。)
公共方法 GetBindingExpression 返回表示指定属性上的绑定的 BindingExpression。 (继承自 FrameworkElement。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
受保护的方法 GetTemplateChild (继承自 Control。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetValue 返回 DependencyObject 的此实例上的依赖项属性的当前有效值。 (继承自 DependencyObject。)
公共方法 InvalidateArrange 使元素的排列状态(布局)无效。使其无效后,将会更新元素的布局,除非随后被 UpdateLayout 强制执行,否则该更新将会异步发生。 (继承自 UIElement。)
公共方法 InvalidateMeasure 使此元素的度量状态(布局)无效。 (继承自 UIElement。)
公共方法 Measure 更新 UIElementDesiredSize。父元素从其自身的 MeasureCore 实现调用此方法以形成递归布局更新。调用此方法构成布局更新的第一个处理过程(“测量”处理过程)。 (继承自 UIElement。)
受保护的方法 MeasureOverride (重写 FrameworkElement.MeasureOverride(Size)。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 OnApplyTemplate (重写 FrameworkElement.OnApplyTemplate()。)
受保护的方法 OnCreateAutomationPeer 为 Windows Presentation Foundation (WPF) 基础结构返回特定于类的 AutomationPeer 实现。 (继承自 UIElement。)
受保护的方法 OnDoubleTap (继承自 Control。)
受保护的方法 OnDragEnter (继承自 Control。)
受保护的方法 OnDragLeave (继承自 Control。)
受保护的方法 OnDragOver (继承自 Control。)
受保护的方法 OnDrop (继承自 Control。)
受保护的方法 OnGotFocus (继承自 Control。)
受保护的方法 OnHold (继承自 Control。)
受保护的方法 OnKeyDown (继承自 Control。)
受保护的方法 OnKeyUp (继承自 Control。)
受保护的方法 OnLostFocus (继承自 Control。)
受保护的方法 OnLostMouseCapture (继承自 Control。)
受保护的方法 OnManipulationCompleted (继承自 Control。)
受保护的方法 OnManipulationDelta (继承自 Control。)
受保护的方法 OnManipulationStarted (继承自 Control。)
受保护的方法 OnMouseEnter (继承自 Control。)
受保护的方法 OnMouseLeave (继承自 Control。)
受保护的方法 OnMouseLeftButtonDown (继承自 Control。)
受保护的方法 OnMouseLeftButtonUp (继承自 Control。)
受保护的方法 OnMouseMove (继承自 Control。)
受保护的方法 OnMouseRightButtonDown (继承自 Control。)
受保护的方法 OnMouseRightButtonUp (继承自 Control。)
受保护的方法 OnMouseWheel (继承自 Control。)
受保护的方法 OnTap (继承自 Control。)
受保护的方法 OnTextInput (继承自 Control。)
受保护的方法 OnTextInputStart (继承自 Control。)
受保护的方法 OnTextInputUpdate (继承自 Control。)
公共方法 ReadLocalValue 返回依赖项属性的本地值(如果存在)。 (继承自 DependencyObject。)
公共方法 ReleaseMouseCapture 如果此元素具有鼠标捕获,则释放该捕获。 (继承自 UIElement。)
公共方法 RemoveHandler 从此元素移除指定的路由事件处理程序。 (继承自 UIElement。)
公共方法 ScrollTo
公共方法 SetBinding(DependencyProperty, Binding) (继承自 FrameworkElement。)
公共方法 SetValue(DependencyProperty, Object) 设置依赖项属性的本地值,该依赖项属性由其标识符指定。 (继承自 DependencyObject。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 TransformToVisual(UIElement) (继承自 UIElement。)
公共方法 UpdateLayout 请确保此元素的所有可视子元素都正确地进行了布局更新。 (继承自 UIElement。)

页首

事件

  名称 说明
公共事件 BindingValidationError (继承自 FrameworkElement。)
公共事件 DoubleTap (继承自 UIElement。)
公共事件 GotFocus 在此元素获得逻辑焦点时发生。 (继承自 UIElement。)
公共事件 Hold (继承自 UIElement。)
公共事件 IsEnabledChanged (继承自 Control。)
公共事件 ItemRealized
公共事件 ItemUnrealized
公共事件 JumpListClosed
公共事件 JumpListOpening
公共事件 KeyDown 在焦点位于此元素上并且用户按下键时发生。 (继承自 UIElement。)
公共事件 KeyUp 在焦点位于此元素上并且用户释放键时发生。 (继承自 UIElement。)
公共事件 LayoutUpdated (继承自 FrameworkElement。)
公共事件 Loaded 在元素已布局、已呈现且可用于交互时发生。 (继承自 FrameworkElement。)
公共事件 LostFocus 在此元素丢失逻辑焦点时发生。 (继承自 UIElement。)
公共事件 LostMouseCapture 在此元素丢失鼠标捕获时发生。 (继承自 UIElement。)
公共事件 ManipulationCompleted 对于 UIElement 对象的操作和延时完毕时发生。 (继承自 UIElement。)
公共事件 ManipulationDelta 当输入设备在操作期间更改位置时发生。 (继承自 UIElement。)
公共事件 ManipulationStarted 当输入设备对 UIElement 对象开始操作时发生。 (继承自 UIElement。)
公共事件 ManipulationStateChanged
公共事件 MouseEnter 在鼠标指针进入此元素的边界时发生。 (继承自 UIElement。)
公共事件 MouseLeave 在鼠标指针离开此元素的边界时发生。 (继承自 UIElement。)
公共事件 MouseLeftButtonDown 在鼠标指针位于此元素上并且按下鼠标左键时发生。 (继承自 UIElement。)
公共事件 MouseLeftButtonUp 在鼠标指针位于此元素上并且松开鼠标左键时发生。 (继承自 UIElement。)
公共事件 MouseMove 在鼠标指针位于此元素上并且移动鼠标指针时发生。 (继承自 UIElement。)
公共事件 MouseWheel 在鼠标指针位于此元素上并且用户滚动鼠标滚轮时发生。 (继承自 UIElement。)
公共事件 PropertyChanged
公共事件 SelectionChanged
公共事件 SizeChanged 当此元素上的 ActualHeightActualWidth 属性的值发生更改时发生。 (继承自 FrameworkElement。)
公共事件 Tap (继承自 UIElement。)
公共事件 TextInput 在此元素以设备无关模式获取文本时发生。 (继承自 UIElement。)
公共事件 TextInputStart (继承自 UIElement。)
公共事件 TextInputUpdate (继承自 UIElement。)
公共事件 Unloaded 当从加载的元素的元素树中移除元素时发生。 (继承自 FrameworkElement。)

页首

字段

  名称 说明
公共字段静态成员 GridCellSizeProperty
公共字段静态成员 GroupFooterTemplateProperty
公共字段静态成员 GroupHeaderTemplateProperty
公共字段静态成员 HideEmptyGroupsProperty
公共字段静态成员 IsGroupingEnabledProperty
公共字段静态成员 ItemsSourceProperty
公共字段静态成员 ItemTemplateProperty
公共字段静态成员 JumpListStyleProperty
公共字段静态成员 ListFooterProperty
公共字段静态成员 ListFooterTemplateProperty
公共字段静态成员 ListHeaderProperty
公共字段静态成员 ListHeaderTemplateProperty

页首

版本信息

适用于 Windows Phone 应用的 .NET

受以下版本支持:Windows Phone 8、Silverlight 8.1

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.Phone.Controls 命名空间