Nevron Forum

NDecorator Border color change programatically

https://www.nevron.com/Forum/Topic4679.aspx

By Rudi Groenewald - Tuesday, December 28, 2010

Hi there,

I'm using the NDecorator control in a couple of forms, and I want to change the border color programatically based on an event that happens in my code. I checked the properties and the border get's manipulated by changing the StrokeInfo Class properties on design time, but programatically this class is readonly.

I had a look at fillinfo class as explained in the user guide, but I can't seem to find anything to manipulate the strokeinfo class.

Any ideas?


By Nevron Support - Monday, January 3, 2011

Hello Rudi,

Instead of setting the StrokeInfo property you can set only the Color property of the StrokeInfo:
nDecorator1.StrokeInfo.Color = Color.Blue;