Windows Vista Forums

Dynamic MultiBinding?
  1. #1


    Some Bloke 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 SpecsSystem Spec

  2. #2


    Some Bloke 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 SpecsSystem Spec

Dynamic MultiBinding? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase dynamic VHD herba98 Virtual Server 3 23 Aug 2009
Dynamic Backgrounds gone fawa Live Messenger 6 27 Feb 2009
VB.NET: dynamic css Mike J. .NET General 2 10 Feb 2009
Dynamic .vhd expansion. Matthew Virtual Server 2 21 Jan 2009
Dynamic Backgrounds Martin Live Messenger 0 06 Dec 2007