Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Event Triggering -

 
 
Old 07-31-2007   #1 (permalink)
AMBROSE


 
 

Event Triggering -

<Grid VerticalAlignment="Center" HorizontalAlignment="Left">
<Rectangle Name="button_1" RadiusX="8" RadiusY="8"
Width="80" Height="20"
>

<Rectangle.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#B0FFFFFF" Offset="0" />
<GradientStop Color="#60FFFFFF" Offset="0.3" />
<GradientStop Color="#2AFFFFFF" Offset="0.55" />
<GradientStop Color="Transparent" Offset="0.88" />
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Rectangle Name="button_2" RadiusX="8" RadiusY="8"
Width="80" Height="20"
>

<Rectangle.Fill>
<RadialGradientBrush RadiusX="3" RadiusY="1"
Center="0.5,0.5" GradientOrigin="0.5,1">
<RadialGradientBrush.RelativeTransform>
<TransformGroup/>
</RadialGradientBrush.RelativeTransform>
<GradientStop Color="#50FFFFFF" Offset="0"/>
<GradientStop Color="Transparent" Offset="0.25"/>
</RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
</Grid>

The above is the rounded corner button . How can i write a click event
for this .?

Thanks in Advance


My System SpecsSystem Spec
Old 07-31-2007   #2 (permalink)
Lloyd Dupont


 
 

Re: Event Triggering -

> The above is the rounded corner button . How can i write a click event
> for this .?


how about:
> <Grid MouseUp="MouseUpHandler".....>
> ................
></Grid>


My System SpecsSystem Spec
Old 07-31-2007   #3 (permalink)
AMBROSE


 
 

Re: Event Triggering -

On Aug 1, 6:22 am, "Lloyd Dupont" <net.galador@ld> wrote:
> > The above is the rounded corner button . How can i write a click event
> > for this .?

>
> how about:
>
>
>
> > <Grid MouseUp="MouseUpHandler".....>
> > ................
> ></Grid>- Hide quoted text -

>
> - Show quoted text -


Thanks for the reply .

I am new to WPF . Can you suggets some web link for this ?

My System SpecsSystem Spec
Old 08-01-2007   #4 (permalink)
Laurent Bugnion, MVP


 
 

Re: Event Triggering -

Hi,

AMBROSE wrote:
<snip>

>
> The above is the rounded corner button . How can i write a click event
> for this .?
>
> Thanks in Advance


I think that you are following the wrong way. You should rather use a
Button control and change its template to your code. This way you change
the look & feel of the button, but not its behaviour. No need to
reinvent the wheel, a Button has a Click event already.

Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
HELP need to solve this problem asap - Unable to start event viewer/event log service Software
Boot up Issues - Critical Event Log errors - Event ID = 100, 200, 400, 307, 402 General Discussion
Java Update triggering for admin pronpt Vista General
Windows Event Log fails to translate event description. Vista General
Unable to fetch the Event Log - Event Description Vista security


Vista Forums 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 Ltd

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