Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
Trying to use MultivalueConverter in XamGrid
posted

I was trying to use MultiValueConverter with XamGrid. I keep getting unhandled exception at runtime. Find the code below.

 <ig:XamGrid
            RowSelectorClicked="xamGrid1_RowSelectorClicked"
            RowExpansionChanging="xamGrid1_RowExpansionChanging"
            HorizontalAlignment="Left"
            Margin="54,66,0,0" Name="xamGrid1" VerticalAlignment="Top"
            AutoGenerateColumns="False">
            <ig:XamGrid.Columns>
                <ig:TemplateColumn IsFilterable="False" HeaderText="Name" Key="Name" Width="*" MinimumWidth="10" IsResizable="False" >
                    <ig:TemplateColumn.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">

                                <TextBlock x:Name="Block" Foreground="White" FontSize="13"
                               Margin="5,0,0,0">
                        <local:BindingUtil.MultiBinding>
                            <local:MultiBinding TargetProperty="Text" Converter="{StaticResource TitleConverter}">
                                <Binding Path="Name" />                           
                                <Binding Path="Spouse"/>
                            </local:MultiBinding>
                        </local:BindingUtil.MultiBinding>
                                </TextBlock>

                            </StackPanel>
                        </DataTemplate>
                    </ig:TemplateColumn.ItemTemplate>
                </ig:TemplateColumn>
            </ig:XamGrid.Columns>
        </ig:XamGrid>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking through your post, but it seems like I am missing something, so could you please send me an isolated sample project, where this issue is reproduced, so I can investigate it further for you.

     

    Feel free to write me if you have further questions.