This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I am trying to use the prompt decorator element around a RichTextBox but the RTB is throwing a build error saying that the content is set multiple times. Any ideas how I might be able to get this to work properly. I have used the prompt in several other places with no issues (listbox, textbox, etc.) |
|
|
Hello I have tried using the PromptDecorator with a RichTextBox, but didn't get any build error. I did however get a visual problem which I have fixed. This should also solve your issue and will be available through the nightly builds from tomorrow the 14th of September. To use this fix, you won't need to set the ChildContentPropertyName when using a RichTextBox. Regards |
|
|
Jason, Sorry for the delay in responding but I just got around to using the modified code. I have noticed that now I am able to compile and the control appears to work, however, I am having an issue with the decorator. For me, it disappears as long as it has focus but it reappears when focus is removed even if the richtextbox has content. Could it be something that I am doing wrong or do you see the same thing? Thanks |
|
|
Hello I have not been able to reproduce this issue. Could you post some xaml code showing how you are setting up the RichTextBox? Is there anything special you are doing to set the content of the RichTextBox or is it just user input? The code that I've been working with is this: <ms:PromptDecorator Prompt="Start Typing" Padding="3,0,0,0"> Regards |
|
|
I am not doing anything too fancy. Yes the content is being set simply by the user typing it in. One additional note, the decorator does not come back just by removing focus but if I select a new tab and go back to the tab that contains the RichTextBox (with content in it), the decorator is there again. <TabControl> <ms:PromptDecorator Prompt="Enter notes or comments here" |
|
|
Hello Based on the code you posted, I still don't see the issue that you described. You may want to make sure you have the latest update of WPF Elements 3.0 I'll keep trying to find a repro case, any more information will be useful. Regards |
|