开发者

Prevent image scaling on GridViewColumn entires?

开发者 https://www.devze.com 2023-01-18 08:57 出处:网络
I have a GridViewColumn created with the following XAML: <GridViewColumn Header=\"Validated\" > <GridViewColumn.CellTemplate>

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 widt开发者_运维知识库h 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?


<Image Source="{Binding Path=Validated, Converter={StaticResource imageConverter}}" Stretch="None" />
0

精彩评论

暂无评论...
验证码 换一张
取 消