Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Aqua button in Avalon/WPF ?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 04-16-2006   #1 (permalink)
CosminB [BRT]
Guest


 

Aqua button in Avalon/WPF ?

Hi,

I am trying to get this look for the buttons on my form:

http://home.zonnet.nl/epragt/tutoria.../index.jsp.htm

For starters, I need to know how to make those round corners. This
would mean that no matter the width, the corners should be rounded by a
radius equal with half the height. Also, how can I make the background
have that white-gray pattern alternate?

Thanks,
Cosmin.


My System SpecsSystem Spec
Old 04-17-2006   #2 (permalink)
llester
Guest


 

RE: Aqua button in Avalon/WPF ?

you could use the corner radius property for styling

"CosminB [BRT]" wrote:

> Hi,
>
> I am trying to get this look for the buttons on my form:
>
> http://home.zonnet.nl/epragt/tutoria.../index.jsp.htm
>
> For starters, I need to know how to make those round corners. This
> would mean that no matter the width, the corners should be rounded by a
> radius equal with half the height. Also, how can I make the background
> have that white-gray pattern alternate?
>
> Thanks,
> Cosmin.
>
>

My System SpecsSystem Spec
Old 04-18-2006   #3 (permalink)
Keith Patrick
Guest


 

Re: Aqua button in Avalon/WPF ?

Does the radius allow for percentage values, or is it just Point (absolute
physical size)?
Also, for the gel coating, the general gist of what they're doing is
overlaying a semi-transparent, gradient-shaded rounded rectangle (or in
Apple's case, multiple of them) over the main button & then adding a
BlurEffect to the edges


My System SpecsSystem Spec
Old 04-19-2006   #4 (permalink)
CosminB [BRT]
Guest


 

Re: Aqua button in Avalon/WPF ?

Yes, but if the height of the button isn't fixed, then I cannot use
round corners, because I don't know the radius in advance. I did manage
to get this working by writing some code to implement a converter, but
it's not nice.

My System SpecsSystem Spec
Old 04-22-2006   #5 (permalink)
rabidrobot
Guest


 

Re: Aqua button in Avalon/WPF ?

Hi.

I saw this thread a few days ago, and it got me motivated to try my hand
at an aqua look. I hope you don't mind...here is the result:
http://feebdack.com/article.php?id_art=21

As for the rounded corners discussed here and in another thread, I worry
that you may be overthinking it. If you want only for the button to
stay proportionally shaped at different sizes, you can do things with
brushes, or what I did, put the template inside a ViewBox with Stretch
set to uniform. This will force your button to keep its shape.

Anyway, good luck, have fun, etc.

rabidrobot

CosminB [BRT] wrote:
> Hi,
>
> I am trying to get this look for the buttons on my form:
>
> http://home.zonnet.nl/epragt/tutoria.../index.jsp.htm
>
> For starters, I need to know how to make those round corners. This
> would mean that no matter the width, the corners should be rounded by a
> radius equal with half the height. Also, how can I make the background
> have that white-gray pattern alternate?
>
> Thanks,
> Cosmin.
>

My System SpecsSystem Spec
Old 04-30-2006   #6 (permalink)
CosminB [BRT]
Guest


 

Re: Aqua button in Avalon/WPF ?

This looks nice, thank you.

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aqua, aero... MicroFox Vista General 7 11-27-2006 09:30 AM
System requirements for Avalon!? Jochen Kalmbach [MVP] Avalon 2 09-03-2006 01:36 AM
3D Controls for Avalon WSJ Avalon 2 03-13-2006 10:22 PM
3d sphere in avalon Avalon 1 01-10-2006 03:53 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51