【问题标题】:Scroll in design view for metro style app in Visual Studio 2012在 Visual Studio 2012 中的 Metro 风格应用程序的设计视图中滚动
【发布时间】:2013-06-13 13:29:58
【问题描述】:

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

【问题讨论】:

    标签: c# xaml visual-studio-2012 microsoft-metro


    【解决方案1】:

    如果你想在设计模式下拉伸当前页面,你可以使用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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-26
      • 1970-01-01
      • 1970-01-01
      • 2012-06-08
      • 1970-01-01
      • 1970-01-01
      • 2012-08-13
      • 1970-01-01
      相关资源
      最近更新 更多