Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio design time event handling

I am trying to create a WPF wizard control in visual studio. I am successful except I would like to navigate the pages in design time by clicking the next and previous buttons. The pages are being written in xaml. I can navigate the pages by going to the properties window and changing the selected index, but I would like something more user-friendly. I remember doing something similar in a winforms project having something to do with overriding maybe wndproc and listening to mouse click events from the designer.

So I've been googling and I can't seem to google the right words to bring this up.

Can anyone please help!

like image 931
Jose Avatar asked Nov 22 '25 14:11

Jose


1 Answers

You need to create a custom Adorner as described here. There are two walkthroughs there that should help.

Ultimately, you would need to overlay a transparent button on top of your actual buttons. Then in the click handlers you'd update your selected item/index.

like image 190
CodeNaked Avatar answered Nov 24 '25 03:11

CodeNaked