Browse Source
Make paths with Stretch != None correctly fill the Path control's available size. Added a Path_Tick_Scaled test with a path from MahApps.Metro to test this.pull/13/head
20 changed files with 295 additions and 50 deletions
@ -0,0 +1,34 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="RotateTransform.cs" company="Steven Kirk">
|
|||
// Copyright 2013 MIT Licence. See licence.md for more information.
|
|||
// </copyright>
|
|||
// -----------------------------------------------------------------------
|
|||
|
|||
namespace Perspex.Media |
|||
{ |
|||
public class MatrixTransform : Transform |
|||
{ |
|||
public static readonly PerspexProperty<Matrix> MatrixProperty = |
|||
PerspexProperty.Register<MatrixTransform, Matrix>("Matrix", Matrix.Identity); |
|||
|
|||
public MatrixTransform() |
|||
{ |
|||
} |
|||
|
|||
public MatrixTransform(Matrix matrix) |
|||
{ |
|||
this.Matrix = matrix; |
|||
} |
|||
|
|||
public Matrix Matrix |
|||
{ |
|||
get { return this.GetValue(MatrixProperty); } |
|||
set { this.SetValue(MatrixProperty, value); } |
|||
} |
|||
|
|||
public override Matrix Value |
|||
{ |
|||
get { return this.Matrix; } |
|||
} |
|||
} |
|||
} |
|||
|
After Width: | Height: | Size: 5.0 KiB |
Loading…
Reference in new issue