0

我正在使用 Viual Studio XAML 设计器为 Windows Phone 设计应用程序。我的页面太长,无法放入页面,因此我不得不将其放入 ScrollViewer 和 Grid 中。这可行,但我的问题是设计师不允许我在页面外看到(因此在某种程度上与这些元素进行交互)。是否有任何设置或东西可以用来与这些元素进行交互?

4

1 回答 1

2

将以下内容添加到页面的 XAML 元素:

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
d:DesignHeight="<desired height>"

IE:

<phone:PhoneApplicationPage
    x:Class="PhoneApp1.MainPage"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    d:DesignHeight="1600"
    ....more attributes...
    >

    <!-- other stuff -->

</phone:PhoneApplicationPage>

“d”的 xml 命名空间定义可能已经存在,当然,对于设计时间宽度也可以这样做。

于 2013-06-17T05:56:14.183 回答