如何在Wpf中叠加并增加面板的高度 [英] How Do I Overlay And Increase Height Of Panel In Wpf

查看:94
本文介绍了如何在Wpf中叠加并增加面板的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WPF中创建控件需要一些方向,界面如下所示:

控件将在图像控件之前出现。

控件内容为没有完全显示,如果用户想要查看完整的详细信息,用户可以单击控件上的按钮使其展开。但是它应该覆盖在下面的图像而不是将其向下推。



| _________控制__________________ |

|

|

| ___________________________________ |





| _______________图片______________ |

|

|

|

| __________________________________ | < - 图像部分





我试图扩展控制:

1.显示或隐藏所有内容。

2.按下面的图片。



可能我需要创建自定义控件,它来自ContentControl,

我如何使用更高的zindex添加扩展托盘之类的功能。



任何帮助都表示赞赏。

Need some direction with the creation of a control in WPF, the interface is like below:
The control would come before the image control.
The control contents are not fully displayed, if the user wants to view full details, user can click on the button on the control to make it expand.However it should overlay on the image below and not push it down.

| _________Control__________________|
|
|
|___________________________________|


| _______________Image______________|
|
|
|
| __________________________________| <- Image section


I have tried to expander control:
1. It shows or hides all the content.
2. Push down the image below.

Probably i would need to create custom control,which derives from ContentControl,
how would i add the expanding tray like capability with a higher zindex.

Any help is appreciated.

推荐答案

这篇关于如何在Wpf中叠加并增加面板的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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