[UWP] [XAML]通用应用中的弹出控制问题 [英] [UWP][XAML]Popup control issue in universal app

查看:75
本文介绍了[UWP] [XAML]通用应用中的弹出控制问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10计算机上创建了一个Widows Universal项目。

I created a Widows Universal project on my Windows 10 machine.

我要求面板在点击按钮时从主窗口的右侧飞出。我使用Popup控件来实现这一点,但是当我调整主窗口大小时,此控件不会移动。

I have a requirement that a panel should flyout from the right side of the main window on a button click. I used Popup control to achieve this, but this control doesn't move when I resize the main window.

任何人都可以帮助我实现此目的。

Can anyone help me in achieving this.

谢谢

Rakesh

推荐答案

你可能知道,弹出窗口不会自动调整大小,因此您需要手动更改大小和/或偏移量。我有几种扩展方法可用于调整弹出窗口的大小和位置,如果您希望看到它们可能对您有所帮助。祝你好运!
As you probably know, Popups don't automatically resize, so you will need to change the size and/or offset manually. I have several extension methods for resizing and positioning Popups that may help you if you wish to see them. Good luck!


这篇关于[UWP] [XAML]通用应用中的弹出控制问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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