2016-04-09 2 views
0

私のRadioButtonのXAML:XAMLはFalseを表示なっている

<RadioButton FontFamily="Segoe MDL2 Assets" Style="{StaticResource TextBlockButtonStyle}" Content="{Binding SymbolIndex}" ></RadioButton> 

"のRadioButton" からVisual Studioでプロパティウィンドウ:

Binding Content is working

デザイナーはこれを表示しています:

Content is being displayed false

コードで私の監視可能なコレクションにラジオボタンを追加:

MenueButtons.Add(new Models.SplitView.MenueButton { Description = "Home", SymbolIndex = "&#xE700;" }); 

詳しい情報:私は手動で

が要求されたコンテンツproperyに入力したときにそれが正しく表示なっている

  • 回答:

    • W帽子は私が間違っていた?それに

答えて

1

変更&#1 xE700はUnicode値です:\ uE700

XMLは、Unicodeを使用して、XAMLは同様に行います。 & #xはHTMLエンコーディングを指定します。

関連する問題