I may be doing something wrong here, but I've added a button to my form that would allow the user to change the view mode.
Basically, its just not working. The pageview never changes modes. What am i doing wrong?
The code is here:
Basically, its just not working. The pageview never changes modes. What am i doing wrong?
The code is here:
private
void
btnView_Click(
object
sender, EventArgs e)
{
if
(pvChecklist.ViewMode == PageViewMode.Stack)
pvChecklist.ViewMode = PageViewMode.Strip;
if
(pvChecklist.ViewMode == PageViewMode.Strip)
pvChecklist.ViewMode = PageViewMode.ExplorerBar;
if
(pvChecklist.ViewMode == PageViewMode.ExplorerBar)
pvChecklist.ViewMode = PageViewMode.Stack;
}