1

Topic: Question on AdornedElementPlaceholder

It is necessary to add it to TextBox. Alas, there not TextBox, and WatermarkTextBox which in itself contains TextBox and still TextBlock for this most water mark Found the description how to make for TextBox. https://msdn.microsoft.com/en-us/library/ms753962 (v=vs.110).aspx c binding and Validation. ErrorTemplate. And as at me TextBox enclosed where these things to attach - it is not clear. To change WatermarkTextBox, resolutely I do not want. And is easier it can be made? I can somewhere this AdornedElementPlaceholder simply place, and if that - in it exclamation point to light or drop? Manually. If who knows - stick where it is necessary. I did not find.

2

Re: Question on AdornedElementPlaceholder

Hello, Pavel Dvorkin, you wrote: PD> It is necessary to add it to TextBox. Alas, there not TextBox, and WatermarkTextBox which in itself contains TextBox and still TextBlock for this most water mark PD> Found the description how to make for TextBox. PD> https://msdn.microsoft.com/en-us/library/ms753962 (v=vs.110).aspx PD> c binding and Validation. ErrorTemplate. PD> and as at me TextBox enclosed where these things to attach - it is not clear. To change WatermarkTextBox, resolutely I do not want. PD> and is easier it can be made? I can somewhere this AdornedElementPlaceholder simply place, and if that - in it exclamation point to light or drop? Manually. PD> If who knows - stick where it is necessary. I did not find. As far as I know, it is possible to replace everywhere simply TextBox on WatermarkTextBox, Validation. ErrorTemplate it is thrust in adorner layer an element (WatermarkTextBox - a) to which then it is possible to refer through AdornedElementPlaceholder

3

Re: Question on AdornedElementPlaceholder

Hello, ksg71, you wrote: PD>> And is easier it can be made? I can somewhere this AdornedElementPlaceholder simply place, and if that - in it exclamation point to light or drop? Manually. PD>> If who knows - stick where it is necessary. I did not find. K> as far as I know, it is possible to replace everywhere simply TextBox on WatermarkTextBox, K> Validation. ErrorTemplate it is thrust in adorner layer an element (WatermarkTextBox - a), K> on which then it is possible to refer through AdornedElementPlaceholder Clearly. But examples which I see, are engaged in dynamic check (that is when the user enters something there is a check on an action course). It is not necessary to me at all, to me it is necessary to deduce only on button click Save there exclamation point, if something not so. I manually will make check. It somehow can be made?

4

Re: Question on AdornedElementPlaceholder

Hello, Pavel Dvorkin, you wrote: PD> Hello, ksg71, you wrote: PD>>> And is easier it can be made? I can somewhere this AdornedElementPlaceholder simply place, and if that - in it exclamation point to light or drop? Manually. PD>>> If who knows - stick where it is necessary. I did not find. K>> as far as I know, it is possible to replace everywhere simply TextBox on WatermarkTextBox, K>> Validation. ErrorTemplate it is thrust in adorner layer an element (WatermarkTextBox - a), K>> on which then it is possible to refer through AdornedElementPlaceholder PD> Clearly. But examples which I see, are engaged in dynamic check (that is when the user enters something there is a check on an action course). It is not necessary to me at all, to me it is necessary to deduce only on button click Save there exclamation point, if something not so. I manually will make check. It somehow can be made? Then ValidationRules not to use and make as here https://social.technet.microsoft.com/wi … rface.aspx

5

Re: Question on AdornedElementPlaceholder

Hello, ksg71, you wrote: K> then ValidationRules not to use K> and to make as here K> https://social.technet.microsoft.com/wi … rface.aspx Thanks. But made itself - simply drew 3 ellipses in  and I put  Visibility