my customer would like to have a visual indicator, when vertical cells contain the same value. I've found a way to get it to work basically but some of my code looks pretty awfull.
as you can see i am using the gridviewcell extensively. is it possible to simply pass the gridviewcell as a whole to a converter? currently i am passing 3 properties from the same object and thats just stupid. my converter uses the information provided to do the cell joining, its not exactly simple though.
<DataTemplate x:Key="Group_GridCellTemplate"> <Grid> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <style:CRowJoiner Template="{StaticResource MM_RJI}"> <style:CRowJoiner.DataContext> <MultiBinding Converter="{StaticResource RJ}"> <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Column" /> <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="ParentRow" /> <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Value" /> </MultiBinding> </style:CRowJoiner.DataContext> </style:CRowJoiner> <ContentControl Grid.Column="1" Content="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}, Path=Value}" ContentTemplateSelector="{StaticResource GCTS}" /> </Grid> </Grid> </DataTemplate>as you can see i am using the gridviewcell extensively. is it possible to simply pass the gridviewcell as a whole to a converter? currently i am passing 3 properties from the same object and thats just stupid. my converter uses the information provided to do the cell joining, its not exactly simple though.