Binding common myDiagram properties like "GridVisible" to collection property

Hi , I want to create UI tool which controls common diagram properties like Visibility, GridVisible,GridSnapEnabled etc
For that I have model (UserSessionsModel) with following parameters:
SessionId, userId, PAREMETER, VALUE
Afterwards I created observable collection (UserSessionsCollection) based on this model. Now I need to bind myDiagram GridVisible property to VALUE (True or False) from observable collection where PARAMETER == “GridVisibleStatus”

Diagram has been defined in XAML as follow:

                        <go:Diagram Grid.Row="1" x:Name="myDiagram"  SelectionChanged="myDiagram_SelectionChanged" 
                                    Visibility="Visible"
                                    NodeTemplateDictionary="{StaticResource NodeTemplateDictionary}"
                                    LinkTemplateDictionary="{StaticResource LinkTemplateDictionary}"
                                    GroupTemplateDictionary="{StaticResource GroupTemplateDictionary}"
                                    InitialScale="0.75" InitialPanelSpot="MiddleTop"
                                    InitialDiagramBoundsSpot="MiddleTop" Padding="10"
                                    HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
                                    AllowDrop="True" GridVisible="True" GridSnapEnabled="True">
                            <go:Diagram.GridPattern  >
                                <go:GridPattern CellSize="10 10"  >
                                    <Path Stroke="WhiteSmoke"  StrokeThickness="1" go:GridPattern.Figure="HorizontalLine"  />
                                    <Path Stroke="WhiteSmoke"  StrokeThickness="1" go:GridPattern.Figure="VerticalLine"  />
                                </go:GridPattern>
                            </go:Diagram.GridPattern>
                        </go:Diagram>

To give an idea what i want I created that sentence: ofcourse it’s wrong, but it shows what binding I’m looking for.
GridVisible="{Binding Path = UserSessionsModel.VALUE , Source={DataContex.UserSessionsCollection.Where PARAMETER == “GridVisibleStatus”} }"

Thanks for any Ideas…

If I understand you correctly, I would define a custom binding converter that was parameterized.

So you could pass “GridVisibleStatus” as the ConverterParameter of the Binding.Converter, and your override of Convert could use the parameter argument to do the lookup for a particular parameter.

Thank you, That makes cense… Resolved.