ZanAlex
Topic Author
Posts: 66
Joined: 16 Jan 2015, 17:46

Text drawn outside TextBox

05 May 2015, 16:58

Hello,

I'm facing a weird problem with TextBox:

Image

I've noticed I have a similar problem when trying to use scrollable content, the supposed-to-be-hidden content is not clipped at all. However, I don't have the problem in the XamlPlayer. Is there something I'm missing in my integration?

Thanks
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Text drawn outside TextBox

05 May 2015, 17:43

That is probably happening because you don't have a stencil surface bound when rendering. Do you have it?
 
ZanAlex
Topic Author
Posts: 66
Joined: 16 Jan 2015, 17:46

Re: Text drawn outside TextBox

06 May 2015, 09:28

Probably not, what is that? I haven't seen it in the tutorials.
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Text drawn outside TextBox

06 May 2015, 16:19

You are right. We should explicitly comment about it in the integration tutorial. Anyway, it is shown in all our examples.

Apart from binding a color render target you need to bind a depthstencil surface (stencil only is enough, but normally they are created together) with 8 bits for the stencil.

Please, test it and tell us if that solves your problem.

We will improve the documentation regarding this.
 
ZanAlex
Topic Author
Posts: 66
Joined: 16 Jan 2015, 17:46

Re: Text drawn outside TextBox

18 May 2015, 10:14

Alright, the stencil surface fixes it, thank you again.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 84 guests