1
我想佔位符的前景色是Foreground =「#ffae19」。但我以黑色獲得它。 任何一個可以有解決這個:-)我想在winRT開發中更改組合框中的佔位符文本
<ComboBox x:Name="selectLanguage" Background="#5d198e" Foreground="#ffae19" PlaceholderText=" SELECT LANGUAGE" Width="280" Height="40" HorizontalAlignment="Center" VerticalAlignment="Center" DropDownOpened="selectLanguage_Click">
<ComboBox.ItemTemplate>
<DataTemplate>
<Grid Background="#5d198e" Width="280" Height="40">
<TextBlock Foreground="#ffae19" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding languageName}" ></TextBlock>
</Grid>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
這是矯枉過正改變顏色。如果您編輯整個樣式,您將不會得到任何未來的錯誤修復/更新,這可能會導致問題的發生。 –