2010-04-22 49 views
5

只是想知道什么是轻,我将有一个控件,绘制280 * 4我的SegmentControl,这是一个圆的四分之一,我只是想知道什么是最少的内存绘制方式说段。Path vs GeometryDrawing

GeometryDrawing:

<Image> 
    <Image.Source> 
     <DrawingImage> 
      <DrawingImage.Drawing> 
       <GeometryDrawing Brush="LightBlue" 
           Geometry="M24.612317,0.14044853 C24.612317,0.14044853 33.499971,-0.60608719 41,7.0179795 48.37642,14.516393 47.877537,23.404541 47.877537,23.404541 L24.60978,23.401991 z" /> 
      </DrawingImage.Drawing> 
     </DrawingImage> 
    </Image.Source> 
</Image> 

或路径:

<Path Fill="LightBlue" 
       Stretch="Fill" 
       Stroke="#FF0DA17D" 
       Data="M24.612317,0.14044853 C24.612317,0.14044853 33.499971,-0.60608719 41,7.0179795 48.37642,14.516393 47.877537,23.404541 47.877537,23.404541 L24.60978,23.401991 z" /> 

或者,如果你知道一个更好的方法,这将是大加赞赏。

谢谢!

回答