I have clipped
an Image control
in to a Border
which contains it by referring this blog
Sample xaml
Code
<Border Behaviors:ImageClip.ToBounds="True">
<Image Source="{Binding Image}"/>
</Border>
But how do i clip
an Image Control
into a Path / Shape
[Like Star /Ellipse] .I have tried previous method.But it was not succeeded because path does not have Content
Property so that we can't set Image Clip Behaviour
to Path
.
I have tried with ImageBrush
Fill .But that could not fit into my case beacause i have to implement some behaviours
like Pinch & Zoom on Image Control
.
So that am stuck.
Can anyone help me with any suggestion or samples?