可以使用不同的颜色设置AutomationProperties.Name
值的样式吗? 我从应用程序中的黑暗主题中获取基本文字颜色。我有一个自定义背景色和这就是为什么我需要一个特定的ForegroundColor
和TextColor
此属性(Value="OtherUserAppBarButton"
)TopAppBar按钮Windows应用商店应用中的AutomationProperties样式
<Style x:Key="LogoutAppBarButtonStyle" TargetType="ButtonBase"
BasedOn="{StaticResource AppBarButtonStyle}">
<Setter Property="AutomationProperties.AutomationId" Value="OtherUserAppBarButton"/>
<Setter Property="AutomationProperties.Name" Value="Other User"/>
<Setter Property="Content" Value=""/>
<Setter Property="Foreground" Value="#ffffffff" />
</Style>
有人偷的想法?