
Hello,
I have a class with property Thumbnail of type Byte[]. An instance of this class is set as DataObject for PropertyGrid.
In the PropertyEditor for the PropertyGrid I have:
<grids:PropertyEditor PropertyName="Thumbnail">
<grids:PropertyEditor.ValueTemplate>
<DataTemplate>
<Grid Background="White" Height="75">
<Image Source="{Binding Value, Converter={StaticResource ByteToImageSourceConverter}, UpdateSourceTrigger=PropertyChanged}" RenderOptions.BitmapScalingMode="NearestNeighbor" RenderOptions.EdgeMode="Aliased"></Image>
</Grid>
where the ByteToImageSourceConverter returns:
BitmapSource bitmap = (BitmapSource)new ImageSourceConverter().ConvertFrom(bytes);
return bitmap;
The result in the Property grid is that apart of the Image, there are also below the image the bytes enumerated as [0], [1], etc.
Hot to get rid of these "byte" items in property grid?