How can I help you?
What are the events available in HubTile and purpose of the events?
4 Feb 20255 minutes to read
The Events available in HubTile are as follows,
- BeforeTransition Event
- TransitionCompleted Event
- SelectionMarked Event
- ZoomCompleted Event
- TextChanged Event
BeforeTransition event
This Event is triggered before the Image and Rotation Transition occur in HubTile.
Event data
BeforeTransitionEventArgs contain the following members that provide information specific to this Event.
Members table
| Members | Description |
|---|---|
| ImageIndex | This property returns the HubTile image index that is Slided. |
| TileType | This property returns the HubTile Tile type. |
| Cancel | This property enables you to avoid particular image Slide Transition. |
| RotateTransition | This property returns the Rotate transition direction of the HubTile. |
| SlideTransition | This property returns the image transition direction of HubTile. |
private void HubTile1_BeforeTransition(object sender, BeforeTransitionEventArgs e)
{
e.ImageIndex = 1;
e.SlideTransition = TransitionDirection.TopToBottom;
e.TileType = HubTileType.DefaultTile;
e.RotateTransition = TileFlipDirection.Horizontal;
}Private Sub HubTile1_BeforeTransition(sender As System.Object, e As BeforeTransitionEventArgs) Handles HubTile1.BeforeTransition
e.ImageIndex = 1
e.RotateTransition = TileFlipDirection.Horizontal
e.SlideTransition = TransitionDirection.BottomToTop
e.TileType = HubTileType.PulsingTile
End SubTransitionCompleted event
This Event is triggered after the image Transition and Rotation Transition are completed in HubTile.
Event data
TransitionCompletedEventArgs contain the following members that provide information specific to this Event.
Members table
| Members | Description |
|---|---|
| ImageIndex | This property returns the HubTile image index that is Slided. |
| TileType | This property returns the HubTile Tile type. |
| RotateTransition | This property returns the Rotate transition Orientation of the HubTile. |
| SlideTransition | This property returns the image transition direction of HubTile. |
private void HubTile1_TransitionCompleted (object sender, TransitionCompletedEventArgs e)
{
e.ImageIndex = 1;
e.SlideTransition = TransitionDirection.TopToBottom;
e.TileType = HubTileType.DefaultTile;
e.RotateTransition = TileFlipDirection.Horizontal;
}Private Sub HubTile1_TransitionCompleted(sender As System.Object, e As TransitionCompletedEventArgs) Handles HubTile1.TransitionCompleted
e.ImageIndex = 1
e.SlideTransition = TransitionDirection.TopToBottom
e.TileType = HubTileType.DefaultTile
e.RotateTransition = TileFlipDirection.Horizontal
End SubSelectionMarked event
This Event is triggered once the HubTile is Selection marked.
Event data
SelectionMarker contains the following members that provide information specific to this Event.
Members table
| Members | Description |
|---|---|
| IsSelected | This returns whether HubTile is selection marked or not. |
private void HubTile1_HubTileSelectionMarked(object sender, SelectionMarkedEventArgs e)
{
bool isSelectionMarked = e.IsSelected;
}Private Sub HubTile1_SelectionMarked(sender As System.Object, e As SelectionMarkedEventArgs) Handles HubTile1.SelectionMarked
Dim isSelectionMarked As Boolean = e.IsSelected
End SubZoomCompleted event
This Event is triggered after the HubTile image content is Zoomed In and Out.
Event data
ZoomCompleted contains the following members that provide information specific to this Event:
Members table
| Members | Description |
|---|---|
| PulseScale | This returns the HubTile Pulse scale. |
| PulseDuration | This returns the HubTile PulseDuration. |
private void HubTile1_ZoomCompleted(object sender, ZoomCompletedEventArgs e)
{
e.PulseDuration = 1;
e.PulseScale = 3;
}Private Sub HubTile1_ZoomCompleted(sender As System.Object, e As ZoomCompletedEventArgs) Handles HubTile1.ZoomCompleted
e.PulseDuration = 1
e.PulseScale = 3
End SubTextChanged event
This Event raises when HubTile Title, Body, Footer, Banner Text are changed.
private void HubTile1_TextChanged(object sender, EventArgs e)
{
string TitleText = this.HubTile.Title.Text;
}Private Sub HubTile1_TextChanged(sender As System.Object, e As System.EventArgs) Handles HubTile1.TextChanged
Dim TitleText As String = Me.HubTile1.Title.Text
End Sub