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
Post a Comment