Skip to content

Instantly share code, notes, and snippets.

@TravisTheTechie
Created November 21, 2013 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TravisTheTechie/7573666 to your computer and use it in GitHub Desktop.
Save TravisTheTechie/7573666 to your computer and use it in GitHub Desktop.
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