How should I “pause” the program to show a tip to the user?

后端 未结 2 1533
借酒劲吻你
借酒劲吻你 2021-01-03 08:24

When a user is running my program for the first time, I want them to go through a series of tips. Each time they hit a certain \"checkpoint\", the program will pause what it

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-03 09:00

    You can create your tip as a window and show it using ShowDialog(). This gives you a Modal dialog, as others have suggested. Be sure to set it's owner. Just before you show it, you can use

    
        
    
    

    to set your window or outer container's(grid maybe) Blur Effect. The radius property sets the "level" of blur, so I imagine you can set it to 0 initially and modify it programatically when you show your dialog

提交回复
热议问题