Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Setting visual attributes on edittext not working

More
10 years 7 months ago #9307 by marco.klein
Hi support,

we've been trying the new beta features . The field flag method works like a charm, but somehow, we dont get the hang of the visual attribute methods like strokecolor fillcolor a.s.o

Sometimes, the field gets updated after rerendering, sometimes it does not.

What we do is the following:

this.annotation.SetStrokeColor(color); // Color.RED
this.renderer.rerender();

Should be fairly enough, is it?

Btw, setting visual attributes does not work at all if we don't call this.annotation.SetEditText(this.annotation.GetEditText()); at initializing the document. Checkboxes currently dont react at all because they dont have SetEditText...

What to do about this? Which method do we need to call when trying to make this possible? is there some kind of initialize?

Kindest Regards

Marco
More
10 years 7 months ago #9308 by radaee
the method not applied to CheckBox, it is text-box only.
it is not enough, only invoke Annotation.SetStrokeColor(color);
if line width is 0, there are no borders to shown.
More
10 years 7 months ago #9309 by marco.klein
okay, good to know.

the border width got set to 1 before.

it does not work as well for:

this.annotation.SetStrokeColor(color);
this.annotation.SetStrokeWidth(thickness);
this.annotation.SetFillColor(color);
this.annotation.SetEditTextColor(color);

so all of them.
More
10 years 7 months ago - 10 years 7 months ago #9311 by radaee
fixed and updated, shall coming soon.
Last edit: 10 years 7 months ago by radaee.
Time to create page: 0.406 seconds
Powered by Kunena Forum