Table of Contents

Interface ISillListView

Namespace
WindowSill.API
Assembly
WindowSill.API.dll

Represents a list of items for a ISill.

public interface ISillListView
Extension Methods

Remarks

Implement this interface in a ISill if you want it to display a set of actionable commands. This is useful for cases like Clipboard History, where the ViewList has one item per clipboard entry. This is also useful for cases where the sill has a set of actions that can be performed, such an image helper tool.

Properties

PlaceholderView

Gets an optional view that is displayed when ViewList is empty.

SillView? PlaceholderView { get; }

Property Value

SillView

ViewList

Gets the collection of items to be displayed in the view.

ObservableCollection<SillListViewItem> ViewList { get; }

Property Value

ObservableCollection<SillListViewItem>

Remarks

Updating the collection will update the view automatically.

Updating the collection must be done on the UI thread. You can use the ThreadHelper helper for that.

Assigning items in the collection does not guarantee that every items will be displayed in the sill. Items will be displayed based on the sill's activation conditions, along with whether there's enough space to display items.