Today, when I added a button through Expression Blend ( It's basically Blend for Visual Studio 2013, but I have a bad habit of calling it Expression Blend :D ) I was having a huge dilemma: The background of my button turned light blue whenever I pressed upon it.
I was stuck upon this issue for at least half hour, before figuring out the solution. I suppose this might also be frustrating for my fellow amateur windows app developers.
So, here is the solution.
-> Drag the Button control from the top left of the Expression Blend screen as shown, and drop it onto the mobile phone screen in the middle.
Happy Development!
I was stuck upon this issue for at least half hour, before figuring out the solution. I suppose this might also be frustrating for my fellow amateur windows app developers.
So, here is the solution.
-> Drag the Button control from the top left of the Expression Blend screen as shown, and drop it onto the mobile phone screen in the middle.
-> After you are done with drag and drop, Right click on the button as shown and then select Edit Template Edit a copy as shown in the figure
-> Ok, now after you are done with this step, Rename the Template in the newly opened dialog box, Select the scope of the template whether you want it to be applicable in the whole application, or keep that style confined to only one page and click on OK.
-> Now,
a) Select States tab
b) Click on the small circle besides Pressed.
c) Select Button Background. The Background of the button will glow red.
d) In the properties tab on the right, change the background attribute to TransparentBrush.
The result is,
No more irritating flashes of the button upon each click.
Happy Development!



0 comments:
Post a Comment