【发布时间】:2020-09-23 10:59:40
【问题描述】:
我有一个名为Products.Label 的字符串,用于AppBarButton。如何在不崩溃的情况下为TextBox 使用相同的字符串?
MainPage.xaml
...
<AppBarButton Name="AppBarButtonProducts" x:Uid="Products"/>
...
Settings.xaml
...
<TextBlock x:Uid="Products/Label" Style="{StaticResource HeaderTextBlockStyle}" />
...
【问题讨论】: