在Visual Studio 2012的设计视图中滚动地铁风格的应用程序

本文关键字:滚动 地铁 应用程序 风格 视图 Visual Studio 2012 | 更新日期: 2023-09-27 18:18:56

我正在Visual Studio 2012中开发metro风格的应用程序(XAML)。我正在建立一个窗体,流量垂直在屏幕上,用户将不得不滚动。我希望能够在设计视图中看到表单,但在它超过屏幕的高度后,我看不到我添加的更改,我必须运行应用程序才能看到布局。是否有一种方法在设计视图中滚动,因为你正在工作?谢谢。

在Visual Studio 2012的设计视图中滚动地铁风格的应用程序

您可以使用DesignHeight &如果您想在设计模式下拉伸当前页面,则使用DesignWidth属性。

<Page
    x:Class="App1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App1"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="1768"
    d:DesignWidth="2366">
<!-- Other XAML Controls -->
</Page>