AutomationProperties.Name
값의 스타일을 다른 색상으로 지정할 수 있습니까? 내 응용 프로그램의 어두운 테마에서 기본 텍스트 색상을 얻습니다. 나는이 속성에 대해 특정 ForegroundColor
및 TextColor
필요한 이유를 나는 사용자 정의 배경색 및 그게 전부가 (Value="OtherUserAppBarButton"
)TopAppBar 버튼 Windows Store 앱의 자동화 속성 스타일
<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>
아이디어 사람을 했습니까?