2009-04-30 65 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" /> 
相关问题