mercredi 6 mai 2015

How to bind image and text together in the same column

I want to bind the image and text together in the same column. I managed to bind the text part but failed to bind the image part. This is what I've done so far:

<ListView.View>
  <GridView>
    <GridViewColumn x:Name="TimeColumn" Header="Time" Width="80">
      <GridViewColumn.CellTemplate>
        <DataTemplate>
          <TextBlock>
            <TextBlock.Text>
              <MultiBinding>
                <!--<PUT IMAGE>-->
                <Binding Path="Time"/>
              </MultiBinding>
            </TextBlock.Text>
          </TextBlock>
        </DataTemplate>
      </GridViewColumn.CellTemplate>
    </GridViewColumn>
  </GridView>
</ListView.View>

This is my expected result:

enter image description here

Any suggestion?

Aucun commentaire:

Enregistrer un commentaire