标签: windows-phone-8 custom-controls
我想在以下派生Shape类:
class MyRectangle : Shape { protected override System.Windows.Media.Geometry DefiningGeometry { get { return null; } } }
但我收到错误,因为无法覆盖DefiningGeometry属性(虽然wpf可以)。 如何在WP8中自定义形状?
答案 0 :(得分:0)
您应该将自定义形状基于Path,而不是直接从Shape继承。
Path
Shape