R
Ronald S. Cook
Thanks for reading this...
Our current Win app employs a ListView control wherein the tag for an item
is, for example, "ContentManager.DataModel.PowerPointContent". The
following code exists (and works just fine) for when the user clicks on any
item within the ListView:
private void listView1_MouseClick( object sender, MouseEventArgs e )
{
Type listItemType = (Type)( ( sender as ListView ).FocusedItem.Tag );
Content newContent = (Content)Activator.CreateInstance( listItemType );
AddContent( newContent );
}
However, I'm now tasked with replacing the ListView control with ListBar
control from Infragistics. While I can easily determine which item is
clicked from e.Item.Tag, I'm not understanding how to write code in this
event:
private void ultraListBar1_ItemSelected(object sender,
Infragistics.Win.UltraWinListBar.ItemEventArgs e)
{
???
}
If anyone can help me out, I will gladly buy them a beer.
Thanks very much,
Ron
Our current Win app employs a ListView control wherein the tag for an item
is, for example, "ContentManager.DataModel.PowerPointContent". The
following code exists (and works just fine) for when the user clicks on any
item within the ListView:
private void listView1_MouseClick( object sender, MouseEventArgs e )
{
Type listItemType = (Type)( ( sender as ListView ).FocusedItem.Tag );
Content newContent = (Content)Activator.CreateInstance( listItemType );
AddContent( newContent );
}
However, I'm now tasked with replacing the ListView control with ListBar
control from Infragistics. While I can easily determine which item is
clicked from e.Item.Tag, I'm not understanding how to write code in this
event:
private void ultraListBar1_ItemSelected(object sender,
Infragistics.Win.UltraWinListBar.ItemEventArgs e)
{
???
}
If anyone can help me out, I will gladly buy them a beer.
Thanks very much,
Ron