2012-03-26 8 views
2

私は私の.xamlページを高速化&を清掃についてだったが、私は本当に必要とこれの何が重要かわからない:クリーンアップPhoneApplicationPage

<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"> 

感謝:

イムは、これらの部品がためのものです何woundering!

+1

あなたが削除できるものについては、ページ上の内容に完全に依存します。 –

+0

5つのマークアウトされた表現が何であるか説明してください。私はそれらが必要かどうかを決定することができます。お気遣い – roqstr

+0

サイドノート:Resharperを使用すると、使用されていないネームスペースが指摘されます – Vitalij

答えて

2

の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:DesignWidth = "696" d:DesignWidth = "480">

ブレンド関連のタグは、ブレンドを使用していない場合は削除できます。