WPF选项卡控件,切换选项卡问题 [英] WPF Tab Control, Switching Tabs Issue

查看:391
本文介绍了WPF选项卡控件,切换选项卡问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

选项卡加载后,WPF的TabControl中的选项卡项不会保留内容。当我们尝试在标签之间切换时,它会再次卸载和加载。

标签1 - 保持 D atagrid 并在每一列中都有排序选项,以便用户可以相应地进行排序。

Tab 1- holds the Datagrid and has sorting option in each and every column, so that the user can sort accordingly.

标签2 - 有一些其他内容..

Tab 2- has some other content it..

问题:在标签1切换到标签2之间,然后在返回标签1时,缺少先前应用的排序。

ISSUE: While switching between Tab 1 to Tab 2, then while coming back to Tab 1 the sorting which is previously applied is missing.

如何避免此问题?任何人都可以建议一个优雅的解决方案。

How to Avoid this Issue? Can anyone suggest an elegant solution.

推荐答案

嗨Prokko ,

Hi Prokko,


根据您的描述,您的问题与WPF更相关。这个论坛正在讨论并询问有关

According to your description, your issue is more related about WPF. And this forum is discussing and asking questions about the

Windows窗体和ClickOnce的问题,我将把这个帖子移到相应的论坛:
Windows Presentation Foundation(WPF)

Windows Form and ClickOnce, I will move this thread to corresponding forum: Windows Presentation Foundation (WPF).


这篇关于WPF选项卡控件,切换选项卡问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆