I am trying to figure out what the favorites panel is in IE / Firefox, etc. Basically, you can visually store bookmarks, navigate and easily delete.
I tried to do something using the ToolBar, and although I can add buttons and make them work the way I want, deleting and reordering them is problematic. I also tried lists, but displaying them correctly is difficult. Perhaps something like a large icon, without icons.
I'm just looking for something where people can add navigation pages to get back to what they were looking at before.
Edit:
I guess I donโt even care about rearranging it all. I'm just trying to figure out how
- Add them progmatically
- Make them clickable with the click event
- Remove them when I don't want them anymore
I tried this as a test:
<ListView Grid.Row="1" Name="ListView1"> <WrapPanel> <WrapPanel.ContextMenu> <ContextMenu> <MenuItem Name="mnuDelete" Header="Delete" /> </ContextMenu> </WrapPanel.ContextMenu> <Button Name="AddSite">+</Button> <ListViewItem Content="Test 1" /> <ListViewItem Content="Test 2" /> </WrapPanel> </ListView>
But I canโt even select any of the listviewitems, let alone click on them. If I right-click one at a time, this does not tell me which one I clicked on in the context menu event handler.
This is frustrating because in WinForms I would already do that. I canโt wait until I picked up enough for WPF to just start pushing. It seems to me that I am again moving from VB6 to VB.Net, but even more so.
source share