windows-phone-7 - 清理PhoneApplicationPage

标签 windows-phone-7 xaml windows-phone-7.1

我正在清理和加速我的 .xaml 页面,但我不确定真正需要什么和重要的是:

<phone:PhoneApplicationPage 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480">

已经删除了我知道可以轻松删除的东西。

我很想知道这些零件的用途:

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480">

谢谢!

最佳答案

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

默认命名空间,必须维护!

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

控制和资源命名所需,必须维护!

xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480">

Blend相关标签,如果您不使用blend,可以将其删除!

关于windows-phone-7 - 清理PhoneApplicationPage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9872423/

相关文章:

silverlight - Windows Phone 7 应用程序中的 Paypal

c# - Windows Phone 7 中的 HttpUtility.UrlEncode?

c# - WPF 将绑定(bind)传递到我的用户控件

c# - DispatcherTimer 使用 MVVM 更新 TextBlock

c# - 无法在回调方法中添加 View 并在 Windows Phone 7 中出现错误 "UnauthorizedAccessException"

c# - HttpNotificationChannel Open() 抛出 InvalidOperationException ("Failed to open channel")

c# - 如何在 "Pressed"VisualState 的 ContentControl 中自定义属性?

c# - 在 Windows Phone 8.1 XAML 中获取设备屏幕分辨率

.net - 如何将 View 的加载事件绑定(bind)到 WP7.1 中 View 模型中的方法

c# - 在 WP7 中更改聚焦的文本框背景/前景