-----Original Message-----
From: Sacha Barber <sacha...@hotmail.com>
Sent: Friday, May 16, 2008 7:37 AM
To: wpf-di...@googlegroups.com <wpf-di...@googlegroups.com>
Subject: A quick bit of DP help
Hey chaps, I need a small bit of help.
I am trying to create a Style/Template for some buttons in my app in WPF.
The button uses the Tag property to store a url for an image that gets used in the Template. I also want the Button to pulse to some scale bigger than its declared scale.
I want to use an attached property to allow the button scale to be different in different parts of my app.
So I have something like
using System.Windows;namespace DirectPlusDemoApp{ public static class ButtonExtraProps { public static bool GetScaleTo(DependencyObject obj) { return (bool)obj.GetValue(ScaleToProperty); } public static void SetScaleTo( DependencyObject obj, bool value) { obj.SetValue(ScaleToProperty, value); } public static readonly DependencyProperty ScaleToProperty = DependencyProperty.RegisterAttached( "ScaleTo", typeof(double), typeof(ButtonExtraProps), new UIPropertyMet
[The entire original message is not included]
You're clr get/set methods are dealing with bool but you're registering a double property.
-Andrew
-----Original Message-----
From: Sacha Barber <sacha...@hotmail.com>
Sent: Friday, May 16, 2008 2:47 PM
To: wpf-di...@googlegroups.com
Subject: RE: A quick bit of DP help
No worries boss, going/been somewhere nice.
> From: flappl...@gmail.com
> Subject: RE: A quick bit of DP help
> Date: Fri, 16 May 2008 14:46:01 -0400
> To: wpf-di...@googlegroups.com
>
>
> Sorry man. Im in an airport replying on a PDA. No laptop. Will look into this sunday night.
>
> -----Original Message-----
> From: Sacha Barber <sacha...@hotmail.com>
> Sent: Friday, May 16, 2008 7:37 AM
> To: wpf-di...@googlegroups.com <wpf-di...@googlegroups.com>
> Subject: A quick bit of DP help
>
> Hey chaps, I need a small bit of help.
>