2009-04-30 62 views

回答

0

如果您正在談論來自Microsoft的WPF Toolkit DatePicker,則有一種可能性是獲取Toolkit的source code,然後修改DatePicker的Generic.xaml主題文件。添加Background屬性DatePicker樣式的DatePickerTextBox部分,如:

<primitives:DatePickerTextBox x:Name="PART_TextBox" 
    Grid.Row="0" Grid.Column="0" 
    Foreground="{TemplateBinding Foreground}" 
    Background="{TemplateBinding Background}" 
    HorizontalContentAlignment="Stretch" 
    VerticalContentAlignment="Stretch" /> 
相關問題