Please can you tell me if any thing is wrong in code below, i am trying to hide and show 2 tiles based on selection, but the tile view is not behaving as expected...
code....
switch
(((System.Windows.Controls.ContentControl)(e.AddedItems[0])).Content.ToString())
{
case "IB Finance View":
App.currentViewID = (int)App.groupView.IBFINANCE;
RadTileViewItem rt1 = objTileView.Items[0] as RadTileViewItem;
rt1.Visibility =
Visibility.Collapsed;
RadTileViewItem rt2 = objTileView.Items[2] as RadTileViewItem;
rt2.TileState =
TileViewItemState.Maximized;
rt2.Visibility =
Visibility.Visible;
break;
case "Front Office View":
App.currentViewID = (int)App.groupView.FRONT_OFFICE;
RadTileViewItem rt3 = objTileView.Items[2] as RadTileViewItem;
rt3.Visibility =
Visibility.Collapsed;
RadTileViewItem rt4 = objTileView.Items[0] as RadTileViewItem;
rt4.TileState =
TileViewItemState.Maximized;
rt4.Visibility =
Visibility.Visible;
break;
case "Trader View":
RadTileViewItem rt5 = objTileView.Items[2] as RadTileViewItem;
rt5.Visibility =
Visibility.Collapsed;
RadTileViewItem rt6 = objTileView.Items[0] as RadTileViewItem;
rt6.TileState =
TileViewItemState.Maximized;
rt6.Visibility =
Visibility.Visible;
App.currentViewID = (int)App.groupView.TRADERS;
break;
}
Regards,
Sachin