WPF PRIORITYBINDING AND MULTIBINDING

Mark Devid

Total Post:102

Points:714
Posted by  Mark Devid
WPF 
WPF
 2550  View(s)
Ratings:
Rate this:

Is it possible to mix and PriorityBinding MultiBinding in WPF?

<TextBlock>

  <TextBlock.Text>

    <PriorityBinding TargetNullValue="{x:Static sys:String.Empty}">

      <Binding Path="Client.Address.PoBox" />

      <MultiBinding StringFormat="{}{0} {1}">

        <Binding Path="Client.Address.Street.Name" />

        <Binding Path="Client.Address.Street.Number" />

      </MultiBinding>

    </PriorityBinding>

  </TextBlock.Text>

</TextBlock>

  1. Pravesh Singh

    Post:412

    Points:2888
    Re: WPF PriorityBinding and MultiBinding

    Hi Mark,


    The WPF Priority Binding accepts only Binding type of objects and not MultiBinding. So I dont think it is possible

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!