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 - Binding Question (Binding in General)

 
 
Old 04-19-2007   #1 (permalink)
Jason


 
 

Binding Question (Binding in General)

I was attempting to create a custom control in order to take an image and
have that image placed twice within a StackPanel. The problem is one of
setting the Height and Width of the Custom Control.

Ordinarily, if it were only one image, I could set the Height through a
{Binding ElementName=ImgCtl, Path=Height} binding. But, if I do that, then
the Image will take up the height of the whole control, leaving no place for
the second image.

Is there a way to bind to a property, such as height or width, and make it
**half** of the target height? Or can someone suggest a better way to do this?

My System SpecsSystem Spec
Old 05-03-2007   #2 (permalink)
Horst Klein


 
 

RE: Binding Question (Binding in General)

Hi Jason

Yes you can!

Take a look to this post:
http://www.microsoft.com/communities...f-65130bc17260

Best regards
Horst

My System SpecsSystem Spec
Old 05-09-2007   #3 (permalink)
Laurent Bugnion, MVP


 
 

Re: Binding Question (Binding in General)

Hi,

To avoid using Converters, you can also take a look at IdentityMine's
EvalBinding markup extension.

http://blendables.com/products/products.aspx

HTH,
Laurent

Horst Klein wrote:
> Hi Jason
>
> Yes you can!
>
> Take a look to this post:
> http://www.microsoft.com/communities...f-65130bc17260
>
> Best regards
> Horst
>


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

Thread Tools


Similar Threads
Thread Forum
Binding to DL VB Script
Cmdlet Parameter Binding Question PowerShell


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