How to keep the ellipse position fixed regardless of the transformations?
I have an ellipse which is placed on the bottom of the canvas in WPF. I
apply some transformations to the canvas and the ellipse is disappeared. I
am new to the world of WPF and transformations. Please guide.
My XAML is as follows:
<Grid>
<Canvas Width="200" Height="200" Background="LightBlue">
<Canvas.RenderTransform>
<TransformGroup>
<MatrixTransform>
<MatrixTransform.Matrix>
<Matrix M11="45.062" M22="-45.062" OffsetX="13.625"
OffsetY="131.499" />
</MatrixTransform.Matrix>
</MatrixTransform>
</TransformGroup>
</Canvas.RenderTransform>
<Ellipse Canvas.ZIndex="5" RenderTransformOrigin="0,0"
Width="100" Height="100" Canvas.Bottom="0" Canvas.Left="0"
Fill="Red" />
</Canvas>
</Grid>
Basketball isn’t just a frivolous game. It can be played anywhere there is open space. To shoot hoops and play basketball better in general, focus reading the information below.
ReplyDeletehttp://www.assistmeditechclients.com |
http://www.autoinjurywis.com |
http://www.auto-satisfait.com |
http://www.autoshutotaska.com |
http://www.biotech4business.com |