A simple ContentControl to display on a page where there is no information
1
| public class Empty : ContentControl
|
Attributes
Name |
Use |
Description |
Get or set Description Text |
Logo |
Get or set Logo |
ShowEmpty |
Show or Hide Empty View |
These controls will display an empty view if you set hc:Empty.ShowEmpty="true"
- ListBox
- DataGrid
- TreeView
- ComboBox
- CheckComboBox
- ListView
Case
1
| <ListBox hc:Empty.ShowEmpty="true"/>
|
or
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <hc:ToggleBlock IsChecked="{Binding ElementName=lst, Path=HasItems, Mode=OneWay}" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> <hc:ToggleBlock.CheckedContent> <ListBox Name="lst"/> </hc:ToggleBlock.CheckedContent> <hc:ToggleBlock.UnCheckedContent> <hc:Empty hc:Empty.ShowEmpty="true"/>
</hc:ToggleBlock.UnCheckedContent> </hc:ToggleBlock>
|