Binding to other DataSourse dependency on current
-
I wash my head like that, maybe give me the right direction. Got it.
DataTable table1
with data, she has a column.TypeID
typeInt32
which indicates the type from the tabletypesTable
♪ There is also a table.DataTable typesTable
columnsid
typeInt32
andBitmapSource
typeSystem.Windows.Media.Imaging.BitmapSource
♪BitmapSource
Sometimes it changes.Now there's a XAML.
DataTemplate
Control of elementsDataView(table1)
The question is, "How's that daytime stampite put a picture that will change depending on howtable1[TypeID]
andtypesTable[BitmapSource]
♪XAML:
<DataTemplate x:Key="StructuralSubdivisionItemDataTemplate"> <StackPanel Orientation="Horizontal"> <Image Width="16" Height="16" Source="{Binding Path=TypeID, Converter=???, ConverterParameter=???}" /> <TextBlock Text="{Binding Path=DisplayString}"/> </StackPanel> </DataTemplate>
I hope you've explained it properly if you write your comments, I'll ask you a question. ♪
-
You don't need to be outside.
DataTable
♪ We need to set up a model of performance that will turn around.DataTable
and display only the necessary properties outside.DataRow will need to update this presentation model in some way.