问题
I want to derive Shape class following:
class MyRectangle : Shape
{
protected override System.Windows.Media.Geometry DefiningGeometry
{
get { return null; }
}
}
but I get error because DefiningGeometry property can't be overrided (althought wpf can). How can i custom shape in WP8 ?
回答1:
You should base your custom shape on a Path rather than inheriting from Shape
directly.
来源:https://stackoverflow.com/questions/19519936/custom-shape-in-windows-phone-8