tags:

views:

9

answers:

1

Hi,

I have a GridViewColumn created with the following XAML:

<GridViewColumn Header="Validated" >
  <GridViewColumn.CellTemplate>
    <DataTemplate>
      <Image Source="{Binding Path=Validated, Converter={StaticResource imageConverter}}" />
    </DataTemplate>
  </GridViewColumn.CellTemplate>
</GridViewColumn>

The images in the .png files created for display in the column are 13x13 pixels in size.

The images being displayed in the WPF form are being scaled to the display width of the column, apart from any images displayed below the bottom of the visible area of the GridView, which show 13x13 pixel images.

What can I do to constrain the images in my GridView to 13x13 pixels and not to scale according to the column width?

+2  A: 
<Image Source="{Binding Path=Validated, Converter={StaticResource imageConverter}}" Stretch="None" />

HTH,
Kent

Kent Boogaart