我正在清理和加速我的 .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/