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

Event Triggering -

Closed Thread
 
Thread Tools Display Modes
Old 07-31-2007   #1 (permalink)
AMBROSE
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

Old 07-31-2007   #2 (permalink)
Lloyd Dupont
Guest


 

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>


Old 07-31-2007   #3 (permalink)
AMBROSE
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 ?

Old 08-01-2007   #4 (permalink)
Laurent Bugnion, MVP
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
Closed Thread

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








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