ClassPictureHubTile
An abstract class that provides a PictureNeeded event and a method to raise it.
Definition
Namespace:Telerik.UI.Xaml.Controls.Primitives
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public abstract class PictureHubTile : HubTileBase, IWeakEventListener
Inheritance: objectRadControlHubTileBasePictureHubTile
Derived Classes:
Implements:
Inherited Members
Constructors
PictureHubTile()
Initializes a new instance of the PictureHubTile class.
Declaration
protected PictureHubTile()
Fields
PictureSourceProviderProperty
Identifies the PictureSourceProvider dependency property.
Declaration
public static readonly DependencyProperty PictureSourceProviderProperty
Field Value
DependencyProperty
PicturesSourceProperty
Identifies the PicturesSource dependency property.
Declaration
public static readonly DependencyProperty PicturesSourceProperty
Field Value
DependencyProperty
Properties
IsUpdateTimerNeeded
Determines whether the update timer used to update the tile's VisualState needs to be started.
Declaration
protected override bool IsUpdateTimerNeeded { get; }
Property Value
Overrides
PictureSourceProvider
Gets or sets the IImageSourceProvider implementation that is used to provide custom image source resolution routine.
Declaration
public IImageSourceProvider PictureSourceProvider { get; set; }
Property Value
PicturesSource
Gets or sets the source that contains all the pictures. Pictures are randomly chosen from this collection when an image needs to be displayed.
Declaration
public IEnumerable PicturesSource { get; set; }
Property Value
Remarks
To translate the objects from this collection to an actual ImageSource, use the PictureSourceProvider property. If the objects are string uris or ImageSource instances, no translation is necessary.
Methods
Finalize()
Finalizes an instance of the PictureHubTile class.
Declaration
protected override void Finalize()
Overrides
GetNewIndex(int)
Should be overridden in descendant classes to generate the new index from the picture collection.
GetRandomImageSource()
Creates an ImageSource from a randomly chosen URI from the ImageSources collection and returns it.
Declaration
protected ImageSource GetRandomImageSource()
Returns
ImageSource
Returns an ImageSource with a randomly chosen URI from the ImageSources collection.
IsNewIndexValid(int)
Should be overridden in descendant classes to indicate if the same image can be displayed. many times in a row.