mikeo_410


気が付いたこと(Silverlight)

  1. Linux、FireFox、Moonlight で表示するには、Glyphsを使ってフォント組み込みする必要があるようだ。
  2. Silverlight Navigation Application を作ると、Views/ 以下にページを作ることが想定されているように見える。また、最初から空のResourcesフォルダが作られる。
    フォントはResources直下に追加するものとして、Views/ にXAMLを置いた場合、../Resources/xxxx.odttf と参照する必要がある。これは、相対でなければならないようだ。MainPage.Xamlからページを参照する方は絶対でなければならない。 
  3. 自動的に作られる ErrorWindow.xaml はビルドエラーになる。
    1)参照に System.Windows.Controls.Toolkit を追加する。
    2)下記のように xmlns:toolkit=... を追加する。
    1. <controls:ChildWindow  x:Class="NaviCut.ErrorWindow"
    2.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    4.     xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    5.     xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"    
    6.     DataContext="{Binding RelativeSource={RelativeSource Self}}"
    7.     Title="Error" >

    3)エラーの箇所、<controls:Expander>... </controls:Expander> を <toolkit:Expander>...</toolkit:Expander> に修正する。

mikeo_410@hotmail.com