1つのSilverlightアプリケーション(XAPファイル)を作成し、異なる3つのビューを作成します。 SilverlightアプリケーションにUriMapperを追加して、HTMLリンクをSilverlightページだけに向けることができます。最後に
<a href="http://site.com/#Page1">Page 1</a>
<a href="http://site.com/#Page2">Page 2</a>
<a href="http://site.com/#Page3">Page 3</a>
、1つのSilverlight XAPは、より優れたユーザーを作成しますた:どのようにあなたのApp.xaml
<Application 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"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:navigationCore="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
mc:Ignorable="d">
<Application.Resources>
<ResourceDictionary x:Key="AppResources">
<!-- Uri Mapper -->
<navigationCore:UriMapper x:Key="UriMapper">
<navigationCore:UriMapping Uri="Page1" MappedUri="/View/Page1.xaml" />
<navigationCore:UriMapping Uri="Page2" MappedUri="/View/Page2.xaml" />
<navigationCore:UriMapping Uri="Page3" MappedUri="/View/Page3.xaml" />
</navigationCore:UriMapper>
</ResourceDictionary>
</Application.Resources>
</Application>
でセットアップこのマッパーを今、あなたは可能性があり、単にセットアップなど、あなたのHTMLリンクをできたの下にあります
注:経験と、彼らは
編集別々のであれば常に各アプリをスピンアップすることを避けるためMAPP上記のedUriはあなたのSilverlightアプリケーション内のパスです。だからあなたのSilverlightアプリケーションがPage1.aspxページに配置されている場合、その後、あなたが必要なURLのようなものです:
<a href="Page1.aspx#page1>Page 1</a>
「ページ1」
あなたapp.xamlにdefiniedされ、私はuが言うとおりにしたが、その私は何かが欠けていると思う。 – AboKevo
は、更新された質問 – tsiorn
に一致するように編集するように編集できました。ダウンロードできるダミープロジェクトを教えてください。私にとってはうまくいかず、私はSLの初心者です。 – AboKevo