Hi there
I have a style that changes the Foreground property of my editor in case a NullText is being displayed:
<Style.Triggers> <!-- change foreground when displaying null texts --> <Trigger Property="igEditors:XamTextEditor.Text" Value=""> <Setter Property="Foreground" Value="#FFABABAB" /> </Trigger> </Style.Triggers>
Now strange enough, if the text of the editor is being set programmatically during initialization, the trigger kicks in, and the real text is displayed in grey as well. However, as soon as I select the editor, the Foreground is being adjusted to the correct value and also stays that way if the editor loses focus - looks like a bug to me.
...and as a sidenote: Use NullTexts is somewhat of a pain and pretty inconsistent:
Cheers,
Philipp
Hello Philipp,
Thank you for your post. I have been looking through it and I attached a sample project with xamTextEditor using your style. It seems like you do not need to write a converter to cause the NullText to be displayed, since version 10.3. As for the other question, from the UI input there is no difference between null and empty string. You can make that difference in code behind, only.
If you have any further questions on this matter do not hesitate to ask.
Hello,
See this forum thread - http://blogs.infragistics.com/forums/p/51262/278354.aspx
This should be helpful for your scenario.
Regards,
Anastas