Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <DataTemplate x:Key="PhotoTemplate"
- DataType="{x:Type l:Photo}">
- <Button Command="{Binding OpenPhotoCommand}">
- <Button.Template>
- <ControlTemplate>
- <Image Margin="0,10"
- Source="{Binding Source}"
- MaxHeight="300"
- MaxWidth="300"
- Width="{Binding ExpectedWidth}"
- Height="{Binding ExpectedHeight}"
- Stretch="Uniform"
- x:Name="Image"
- RenderOptions.BitmapScalingMode="HighQuality"/>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </DataTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement