![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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 | Dynamic MultiBinding? In WPF I have a Canvas with child elements bound to data that render as shapes. I want the width of the Canvas bound to the maximum width of the shapes inside it so that that it automatically resizes as items are added or removed from the bound collection. This is one example but I have other examples of where I want to bind to an aggregate of a collection. I tried using a multibinding with a converter that returns the maximum width of the items in its Bindings collection but when I remove an item it throws an exception saying that a multibinding can not be changed once it is used. Is there a recommended way of doing this? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Dynamic MultiBinding? Sorry. I got a bit carried away with MultiBindings there. I solved it by creating a single binding to another ObservableCollection<Double> and updating that. Obvious now ![]() |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't set up Dynamic Drive | John Lechmanik | Vista installation & setup | 4 | 03-27-2008 04:17 PM |
| Dynamic Backgrounds | Martin | Live Messenger | 0 | 12-06-2007 12:53 PM |
| dynamic disk | scrooge | Vista performance & maintenance | 2 | 09-18-2007 03:42 AM |
| dynamic disks | Squibbly | Vista hardware & devices | 3 | 02-12-2007 03:39 AM |
| Dynamic Partitions | Jon Davis | Vista installation & setup | 3 | 05-03-2006 10:16 AM |