wpf controls - DatePicker day colors WPF 4 -


I have the following style for the text block in the dictionary

  & gt; Style target type = "{X: type text block}" & gt; & Lt; Setter property = "horizontal alignment" value = "left" /> & Lt; Setter Property = "Workspace Tracing" Value = "Center" /> & Lt; Setter property = "margin" value = "5,0,0,0" /> & Lt; Setter Property = "Foreground" Value = "White" /> & Lt; / Style & gt;  

After setting it up in the Resource dictionary, the foreground color in the text block used in my project is white which I have set, now the problem is that the datapicor control Displays the selected date when open, as I set the white color foreground color for the text block in above style, date picker is not showing control dates. Please help me get trapped in this problem as soon as possible: (

You can use additional style For your DatePicker:

  Date picture & gt; Date picture. Resources> Style Target Type = "Text Block" & gt; & lt; Setter Assets = "Foreground" value = "black" /> gt; style & gt; & date; DatePicker.Resources & gt; & date; DatePicker & gt; / Html> 

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -