开发者

How do I can close/hide a frame based upon a button click event in wpf?

开发者 https://www.devze.com 2022-12-17 16:18 出处:网络
I 开发者_开发知识库have two frames I need to a load the second frame based on the button click event which is there in the first frame, and need to hide the first frame once the second frame is loaded

I 开发者_开发知识库have two frames I need to a load the second frame based on the button click event which is there in the first frame, and need to hide the first frame once the second frame is loaded.


Why don't you Navigate simply? you can use NavigationService.Navigate() on button click event and navigate inside the same frame, you don't need a separate frame then. Do you have any specific requirement that you are using 2 different frames?

0

精彩评论

暂无评论...
验证码 换一张
取 消