![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| 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 | |||