Version

XamTagCloudItemClicked Event

Occurs when a XamTagCloudItem is clicked.
Syntax
'Declaration
 
Public Event XamTagCloudItemClicked As EventHandler(Of XamTagCloudItemEventArgs)
public event EventHandler<XamTagCloudItemEventArgs> XamTagCloudItemClicked
Event Data

The event handler receives an argument of type XamTagCloudItemEventArgs containing data related to this event. The following XamTagCloudItemEventArgs properties provide information specific to this event.

PropertyDescription
XamTagCloudItem Get the XamTagCloudItem that was clicked.
Example
This sample demonstrates how to handle the XamTagCloudItemClicked event which is fired immediately after a cloud item is clicked.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

AddHandler Me.xamTagCloud.XamTagCloudItemClicked, AddressOf xamTagCloud_XamTagCloudItemClicked

Private Sub xamTagCloud_XamTagCloudItemClicked(ByVal sender As System.Object, ByVal e As XamTagCloudItemEventArgs)
   System.Diagnostics.Debug.WriteLine("Cloud Item Clicked: Content =" + e.XamTagCloudItem.Content + "Weight " + e.XamTagCloudItem.Weight)
End Sub
this.xamTagCloud.XamTagCloudItemClicked += new EventHandler<XamTagCloudItemEventArgs>(XamTagCloud_XamTagCloudItemClicked);

void XamTagCloud_XamTagCloudItemClicked(object sender, XamTagCloudItemEventArgs e)
{
   System.Diagnostics.Debug.WriteLine("Cloud Item Clicked: Content =" + e.XamTagCloudItem.Content + "Weight " + e.XamTagCloudItem.Weight);
}
<ig:XamTagCloud Name="myTagCloud" 
    
xamTagCloudItemClicked="xamTagCloud_XamTagCloudItemClicked">
</ig:XamTagCloud>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also