Class SimpleListView
Implements
IEventHandler
IResolvedStyle
ITransform
ITransitionAnimations
IExperimentalFeatures
IVisualElementScheduler
Inherited Members
VisualElement.disabledUssClassName
VisualElement.Focus()
VisualElement.SendEvent(EventBase)
VisualElement.MarkDirtyRepaint()
VisualElement.ContainsPoint(Vector2)
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetClasses()
VisualElement.ClearClassList()
VisualElement.FindAncestorUserData()
VisualElement.SetBinding(BindingId, Binding)
VisualElement.GetBinding(BindingId)
VisualElement.TryGetBinding(BindingId, out Binding)
VisualElement.GetBindingInfos()
VisualElement.HasBinding(BindingId)
VisualElement.ClearBinding(BindingId)
VisualElement.ClearBindings()
VisualElement.GetHierarchicalDataSourceContext()
VisualElement.GetDataSourceContext(BindingId)
VisualElement.TryGetDataSourceContext(BindingId, out DataSourceContext)
VisualElement.TryGetLastBindingToUIResult(in BindingId, out BindingResult)
VisualElement.TryGetLastBindingToSourceResult(in BindingId, out BindingResult)
VisualElement.Add(VisualElement)
VisualElement.Remove(VisualElement)
VisualElement.Clear()
VisualElement.IndexOf(VisualElement)
VisualElement.Children()
VisualElement.BringToFront()
VisualElement.SendToBack()
VisualElement.PlaceBehind(VisualElement)
VisualElement.PlaceInFront(VisualElement)
VisualElement.RemoveFromHierarchy()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.Contains(VisualElement)
VisualElement.FindCommonAncestor(VisualElement)
VisualElement.viewDataKey
VisualElement.userData
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.disablePlayModeTint
VisualElement.usageHints
VisualElement.transform
VisualElement.scaledPixelsPerPoint
VisualElement.layout
VisualElement.contentRect
VisualElement.paddingRect
VisualElement.worldBound
VisualElement.localBound
VisualElement.worldTransform
VisualElement.pickingMode
VisualElement.name
VisualElement.enabledInHierarchy
VisualElement.enabledSelf
VisualElement.languageDirection
VisualElement.visible
VisualElement.generateVisualContent
VisualElement.dataSource
VisualElement.dataSourcePath
VisualElement.dataSourceType
VisualElement.experimental
VisualElement.hierarchy
VisualElement.cacheAsBitmap
VisualElement.parent
VisualElement.panel
VisualElement.contentContainer
VisualElement.visualTreeAssetSource
VisualElement.childCount
VisualElement.schedule
VisualElement.style
VisualElement.resolvedStyle
VisualElement.customStyle
VisualElement.styleSheets
VisualElement.tooltip
Focusable.Blur()
Focusable.focusable
Focusable.tabIndex
Focusable.delegatesFocus
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
CallbackEventHandler.HasTrickleDownHandlers()
CallbackEventHandler.HasBubbleUpHandlers()
CallbackEventHandler.ExecuteDefaultActionAtTarget(EventBase)
CallbackEventHandler.HandleEventBubbleUp(EventBase)
CallbackEventHandler.HandleEventTrickleDown(EventBase)
CallbackEventHandler.ExecuteDefaultAction(EventBase)
CallbackEventHandler.NotifyPropertyChanged(in BindingId)
Namespace: Fwt.UIToolkit
Assembly: fwt.uitoolkit.dll
Syntax
[UxmlElement]
public class SimpleListView : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler
Constructors
SimpleListView()
Declaration
public SimpleListView()
Fields
_alternateBackgroundClass
Declaration
protected string _alternateBackgroundClass
Field Value
| Type | Description |
|---|---|
| string |
_isAlternateBackground
Declaration
protected bool _isAlternateBackground
Field Value
| Type | Description |
|---|---|
| bool |
_itemClass
Declaration
protected string _itemClass
Field Value
| Type | Description |
|---|---|
| string |
_itemTemplate
Declaration
protected VisualTreeAsset _itemTemplate
Field Value
| Type | Description |
|---|---|
| VisualTreeAsset |
_itemsSource
Declaration
protected IList _itemsSource
Field Value
| Type | Description |
|---|---|
| IList |
_itemsSourceBindingId
Declaration
protected static BindingId _itemsSourceBindingId
Field Value
| Type | Description |
|---|---|
| BindingId |
_itemsSourcePath
Declaration
protected string _itemsSourcePath
Field Value
| Type | Description |
|---|---|
| string |
_itemsViews
Declaration
protected List<VisualElement> _itemsViews
Field Value
| Type | Description |
|---|---|
| List<VisualElement> |
Properties
AlternateBackgroundClass
Declaration
[CreateProperty]
[UxmlAttribute(name = "alternate-background-class")]
public string AlternateBackgroundClass { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsAlternateBackground
Declaration
[CreateProperty]
[UxmlAttribute(name = "is-alternate-background")]
public bool IsAlternateBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ItemClass
Declaration
[CreateProperty]
[UxmlAttribute(name = "item-class")]
public string ItemClass { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ItemTemplate
Declaration
[CreateProperty]
[UxmlAttribute(name = "item-template")]
public VisualTreeAsset ItemTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| VisualTreeAsset |
ItemsSourcePath
Declaration
[CreateProperty]
[UxmlAttribute("items-source-path")]
public string ItemsSourcePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
itemsSource
Declaration
[CreateProperty]
public IList itemsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| IList |
Methods
AddClassToItemViews(string)
Declaration
protected virtual void AddClassToItemViews(string className)
Parameters
| Type | Name | Description |
|---|---|---|
| string | className |
ClearItemViews()
Declaration
protected virtual void ClearItemViews()
CreateItemsSourceBinding()
Declaration
protected virtual void CreateItemsSourceBinding()
OnAlternateBackgroundChanged(string)
Declaration
protected virtual void OnAlternateBackgroundChanged(string oldValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | oldValue |
OnAttachToPanel(AttachToPanelEvent)
Declaration
protected virtual void OnAttachToPanel(AttachToPanelEvent evt)
Parameters
| Type | Name | Description |
|---|---|---|
| AttachToPanelEvent | evt |
OnIsAlternateBackgroundChanged()
Declaration
protected virtual void OnIsAlternateBackgroundChanged()
OnItemClassChanged()
Declaration
protected virtual void OnItemClassChanged()
OnItemTemplateChanged()
Declaration
protected virtual void OnItemTemplateChanged()
OnItemsChanged()
Declaration
protected virtual void OnItemsChanged()
RefreshItemViews()
Declaration
protected virtual void RefreshItemViews()
RemoveClassFromItemViews(string)
Declaration
protected virtual void RemoveClassFromItemViews(string className)
Parameters
| Type | Name | Description |
|---|---|---|
| string | className |
SetItemsViewsDataSource()
Declaration
protected virtual void SetItemsViewsDataSource()
UpdateItemViewsAltBackgroundClass()
Declaration
protected virtual void UpdateItemViewsAltBackgroundClass()
UpdateItemsViewsCount()
Declaration
protected virtual void UpdateItemsViewsCount()
Implements
UnityEngine.UIElements.IEventHandler
UnityEngine.UIElements.IResolvedStyle
UnityEngine.UIElements.ITransform
UnityEngine.UIElements.Experimental.ITransitionAnimations
UnityEngine.UIElements.IExperimentalFeatures
UnityEngine.UIElements.IVisualElementScheduler