wpf - How do I set a Multibinding and Image in Expander Header -


perhaps can me solve problem. want display text-multibinding , image in header of expander.

this simplified coding of expander:

       <expander         x:name="_myexpander">         <expander.header>             <multibinding                 converter="{staticresource expanderheaderconverter}">                 <binding                     path="property1" />                 <binding                     path="property2" />                 <binding                     path="property3" />             </multibinding>         </expander.header>          <local:content/>      </expander> 

how can set image in there?

thanks in advance!

try this:

<expander.header>     <stackpanel orientation="horizontal">         <image source="{binding ...}"/>         <textblock>             <textblock.text>                 <multibinding converter="{staticresource expanderheaderconverter}">                     <binding path="property1" />                     <binding path="property2" />                     <binding path="property3" />                 </multibinding>             </textblock.text>         </textblock>     </stackpanel> </expander.header> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -