IsSelected in WPF Tile View
IsSelected is a boolean property in the TileViewItem which is used to select a particular TileViewItem. If the IsSelected property of a TileViewItem is set to True, the set TileViewItems opacity is set to 1 and the remaining TileViewItems opacity will be reduced to show the difference.
Use Case Scenarios
This feature will be very useful when you who want to select a particular TileViewItem.
Adding IsSelected to an Application
IsSelected can be added to an application by using either XAML or C# code.
The following code example illustrates how to add the IsSelected to an application.
<syncfusion:TileViewControl x:Name="TileView" Height="600" Width="800"> <syncfusion:TileViewItem x:Name="Tile1" Header="TileViewItem 1" /> <syncfusion:TileViewItem x:Name="Tile2" Header="TileViewItem 2" /> <syncfusion:TileViewItem x:Name="Tile3" Header="TileViewItem 3" /> <syncfusion:TileViewItem x:Name="Tile4" Header="TileViewItem 4" IsSelected="True" /> </syncfusion:TileViewControl>
TileViewControl Tile = new TileViewControl(); TileViewItem item1 = new TileViewItem(); item1.IsSelected = true;
To view samples:
- Select Start -> Programs -> Syncfusion -> Essential Studio x.x.xx -> Dashboard.
- Select Run Locally Installed Samples in WPF Button.
- Now expand the DragAndDropManagerDemo tree-view item in the Sample Browser.
- Choose any one of the samples listed under it to launch.
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page