Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试构建一个全屏应用程序,该应用程序将在网格行中包含行/列。我想要的是默认折叠的角落行/列,每当光标位于边缘时,行/列应该是未折叠的,即它会变得可见(就像 Windows 中的媒体播放器对他播放控件所做的那样。
有人可以帮我详细说明如何实现这一点吗?
谢谢
您应该能够将要隐藏高度的行设置为 0 并添加 MouseEnter 和 MouseLeave 事件。命名您的行(以便您可以调用它),然后在 MouseEnter 方法(增加使其可见)和 MouseLeave 方法(减少回 0 以隐藏)中修改高度。
我目前无法访问 VS,所以我不能 100% 确定它们是事件名称,但应该让你明白我的意思。