Created
November 21, 2013 00:12
-
-
Save TravisTheTechie/7573666 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pathBinding = new Binding() | |
{ | |
Source = "M 12.5,3.5 a 22.5,22.5 0 0,1 0,43 a 22.5,22.5 0 1,0 0,-43 z" | |
}; | |
var newPath = new Path | |
{ | |
Height = height, | |
Width = width, | |
Stretch = Stretch.Uniform | |
}; | |
BindingOperations.SetBinding(newPath, Path.DataProperty, pathBinding); | |
return newPath; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment