Pass more then 1 value to ConverterParameter\BindingItem

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-11-12

I've created grid cell template like

                               <d:DataGridTemplateColumn Header="#">
                                            <HyperlinkButton NavigateUri="-->should pass more then one value here to build valid link<--" >
                                                <Image Source="{Binding ImageUrl}" Width="18" Height="18" />

I've tried to use Converter, but have no idea how to pass more then one ConverterParameter in there as well

Hyperlink should be build as  "downloadfile.aspx?dictionaryid={0}&itemid={1}&id={2}", where parameter {2} is property of enumerated item, and {0}, {1} is common properties.

Is there a way to build link such this one preferably markup only, but code solutions also accepted.

Thanks in advance.
Question by:Silverlay
LVL 25

Accepted Solution

apeter earned 2000 total points
ID: 26356996
Did you try passing the BindingItem itself an ArrayList Property which will have { 0 } to { 1 } and return the string at the end.

Else in the code behind, you can use Loading_row event , get the data context(e.Row.DataContext) and manipulate the URL.

Author Comment

ID: 26357723
First i created one more property like:
public readonly Property { get { return Property1 + Property2 + Property3; } } and that worked fine.

Then just created ValueConverter and took object it self as you mentioned, thats works as well.

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question