I am trying to implement a custom user control.
Let's consider the ViewModels:
public class FileViewModel
{
public string Name { get; set; }
public BitmapSource Thumbnail { get; set; }
}
public class DirectoryViewModel
{
public string Name { get; set; }
public ObservableCollection<FileViewModel> Files { get; private set; }
public FileViewModel SelectedFile { get; set; }
}
I want to have the UserControl which display such ViewModels in this way (two ways):
1) Two dimensional list-like control.
2) Two dimensional coverflow-like control.
Please note that each file has it's Thumbnail and each directory remembers last-viewed file. Directory should display last-viewed file thumbnail (as its own) if the directory is not selected.
Directories selection is changed by using left-right keys and appropriate buttons. Files selection is changed by using up-down keys and appropriate buttons.
Have anyone implemented some two-dimensional UserControl like this?
Best regards, Serge.