c# - Set foreground color of button -


i generated button dynamically, need change foreground color , set borderbrush. can't use code btn.foreground = brushes.yellow;

vs2013 warning 'brushes not exist.'

try this: include assembly 'system.windows.media'

btn.foreground=new solidcolorbrush(colors.yellow); 

Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -