2
私は、その情報(DisplayNameとURIソース)とともにコードの背後に動的ModernTabを作成します。ModernUIで選択したModernTabのDisplayNameを取得する方法は?
ModernTabの初期化:背後
<Grid Style="{StaticResource ContentRoot}">
<mui:ModernTab Layout="List" Name="listEcole"
PreviewMouseLeftButtonUp="ModTab_PreviewMouseLeftButtonUp"/>
</Grid>
コード:
List<string> listEcoles = MainWindow._RE.ListEcoles();
foreach(string nomEcole in listEcoles)
{
listEcole.Links.Add(new Link()
{
DisplayName = nomEcole,
Source = new Uri("/Controles/EcoleControl.xaml", UriKind.Relative)
});
}
私の問題は、私はプロパティにそれを入れて、それを使用するために選択したリンクの表示名を知りたいということです別のUserControl。
ありがとうございます!これはまさに私が探していたものでした。それは動作し、私の問題を解決する! – 281