![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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 |
| | #3 (permalink) |
| Guest | 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 ? |
| | #4 (permalink) |
| Guest | 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 |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WMI event - Failed to start event | Pav | PowerShell | 3 | 05-09-2007 06:48 PM |
| BUG: a lot of errors "Event ID 6003 winlogon" in Event Viewer | BillD | Vista General | 1 | 03-28-2007 10:39 AM |
| Windows Event Log fails to translate event description. | Deepak Jha | Vista General | 0 | 12-15-2006 06:30 AM |
| Event Log Event ID 18212 errors | Jerry Witalka | Vista General | 0 | 08-26-2006 02:13 PM |
| Unable to fetch the Event Log - Event Description | Vineet Das | Vista security | 4 | 08-24-2006 01:52 AM |