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 type Int32 which indicates the type from the table typesTable♪ There is also a table. DataTable typesTable columns id type Int32 and BitmapSource type System.Windows.Media.Imaging.BitmapSourceBitmapSource Sometimes it changes.

    Now there's a XAML. DataTemplate Control of elements DataView(table1)The question is, "How's that daytime stampite put a picture that will change depending on how table1[TypeID] and typesTable[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.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2