ClassHubTileBase
Base class for all hub tiles.
Definition
Namespace:Telerik.UI.Xaml.Controls.Primitives
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public abstract class HubTileBase : RadControl
Inheritance: objectRadControlHubTileBase
Derived Classes:
Inherited Members
Constructors
HubTileBase()
Initializes a new instance of the HubTileBase class.
Declaration
protected HubTileBase()
Fields
BackContentProperty
Identifies the BackContent dependency property.
Declaration
public static readonly DependencyProperty BackContentProperty
Field Value
DependencyProperty
BackContentTemplateProperty
Identifies the BackContentTemplate dependency property.
Declaration
public static readonly DependencyProperty BackContentTemplateProperty
Field Value
DependencyProperty
CommandParameterProperty
Identifies the CommandParameter dependency property.
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
DependencyProperty
CommandProperty
Identifies the Command dependency property.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
DependencyProperty
IsFlippedProperty
Identifies the IsFlipped dependency property.
Declaration
public static readonly DependencyProperty IsFlippedProperty
Field Value
DependencyProperty
IsFrozenProperty
Identifies the IsFrozen dependency property.
Declaration
public static readonly DependencyProperty IsFrozenProperty
Field Value
DependencyProperty
TitleProperty
Identifies the Title dependency property.
Declaration
public static readonly DependencyProperty TitleProperty
Field Value
DependencyProperty
TitleTemplateProperty
Identifies the TitleTemplate dependency property.
Declaration
public static readonly DependencyProperty TitleTemplateProperty
Field Value
DependencyProperty
UpdateIntervalProperty
Identifies the UpdateInterval dependency property.
Declaration
public static readonly DependencyProperty UpdateIntervalProperty
Field Value
DependencyProperty
Properties
BackContent
Gets or sets the back content of the tile. When the back content is set, the tile flips with a swivel animation to its back side and periodically flips between its back and front states.
BackContentTemplate
Gets or sets the DataTemplate that is used to visualize the BackContent property.
Declaration
public DataTemplate BackContentTemplate { get; set; }
Property Value
DataTemplate
Command
Gets or sets a command that will be executed when the hub tile is tapped.
CommandParameter
Gets or sets the command parameter that will be passed to the command assigned to the Command property.
IsFlipped
Gets or sets a value indicating whether the control is flipped.
IsFrozen
Gets or sets a value indicating whether the hub tile is frozen. Freezing a hub tile means that it will cease to periodically update itself. For example when it is off-screen.
IsPointerOver
Gets a value indicating whether the pointer is currently over the control.
IsUpdateTimerNeeded
Gets a value indicating whether the update timer used to update the tile's VisualState needs to be started.
Declaration
protected virtual bool IsUpdateTimerNeeded { get; }
Property Value
LayoutRoot
Gets the LayoutRoot of the control template.
Declaration
protected UIElement LayoutRoot { get; }
Property Value
UIElement
ShouldClip
Gets a value indicating whether a rectangle clip is set on the LayoutRoot.
Title
Gets or sets the Title.
Declaration
public object Title { get; set; }
Property Value
Remarks
The Title property works similar to the ContentControl.Content property. As it is of type object,
there are no restrictions of its value - string, UI element, Panel or etc.
TitleTemplate
Gets or sets the DataTemplate that is used to visualize the Title property.
Declaration
public DataTemplate TitleTemplate { get; set; }
Property Value
DataTemplate
UpdateInterval
Gets or sets the UpdateInterval. This interval determines how often the tile will
update its visual states when it is not frozen. The default value is new TimeSpan(0, 0, 3)
Declaration
public TimeSpan UpdateInterval { get; set; }
Property Value
Example
<telerikPrimitives:RadHubTile UpdateInterval="0:0:1"/>
Methods
ApplyTemplateCore()
Resolves the ControlTemplate parts.
ComposeVisualStateName()
Builds the current visual state for this instance.
Declaration
protected override string ComposeVisualStateName()
Returns
Overrides
Finalize()
Finalizes an instance of the HubTileBase class. Cleans up any used resources when the object is destroyed.
Declaration
protected override void Finalize()
LoadCore()
Called within the handler of the event. Allows inheritors to provide their specific logic.
Declaration
protected override void LoadCore()
Overrides
OnBackContentChanged(object, object)
A virtual callback that is called when the BackContent property changes.
OnBackStateActivated()
This callback is invoked when BackContent is set to a non-null value.
Declaration
protected virtual void OnBackStateActivated()
OnBackStateDeactivated()
This callback is invoked when BackContent is set to a null value.
Declaration
protected virtual void OnBackStateDeactivated()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnIsFlippedChanged(bool, bool)
This callback is invoked when IsFlipped is changed.
OnPointerEntered(PointerRoutedEventArgs)
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerExited(PointerRoutedEventArgs)
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnTapped(TappedRoutedEventArgs)
Called before the event occurs.
Declaration
protected override void OnTapped(TappedRoutedEventArgs e)
Parameters
e
TappedRoutedEventArgs
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected override void OnTemplateApplied()
Overrides
ResetTimer()
A virtual method that resets the timer.
Declaration
protected void ResetTimer()
UnloadCore()
Called within the handler of the event. Stops the update timer (if currently running).
Declaration
protected override void UnloadCore()
Overrides
Update(bool, bool)
A virtual callback that is called periodically when the tile is not frozen. It can be used to update the tile visual states or other necessary operations.
UpdateIsFlipped(bool)
Updates the value of the IsFlipped property.
Declaration
protected virtual void UpdateIsFlipped(bool animate)
Parameters
animate
UpdateTimerState()
Checks whether the timer should be running or stopped and updates it accordingly.
Declaration
protected void UpdateTimerState()