PushButton Color |
Post Reply |
Author | |
cannones
Groupie Joined: 14 April 2010 Location: Australia Status: Offline Points: 16 |
Post Options
Thanks(0)
Posted: 23 February 2011 at 2:24pm |
Hi All,
I am using the pushbutton control with markup enabled and wanted to know how can I set the color so that it covers the full size of the button.. Sam |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Markup in push button will have actual size of your content - you can't stretch it to whole button. Think its easer to set .UseVisualStyle property to False and set BackColor property to Color you need.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
cannones
Groupie Joined: 14 April 2010 Location: Australia Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Hi Oleg,
I just about got it working using markup although the text appeared centered at the top .. Doing what you suggested works although the appearance of the button does not look as nice. No rounded borders.. Below is the XAML I set in the caption property of the pushbutton.. "<TextBlock FontFamily='Century Gothic' Background='#00FF4C' Width='210' Height='65' FontSize='14' TextAlignment='Center' >" + "CASH" + "</TextBlock>" ) Sam |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |