Silverlight 的自定义控件转化成UserControl
如何把这个控件http://www.codeproject.com/Articles/38361/Circular-gauge-custom-control-for-Silverlight-3-an转换成基于UserControl 的UserControl
可以贴这里,也可以发我的邮箱corereg@126.com
ImageSize="60,50"
RangeIndicatorThickness="0"
RangeIndicatorRadius="0"
ScaleLabelRadius="90"
ScaleLabelSize="40,20"
ScaleLabelFontSize="11"
ScaleLabelForeground="Black"
MajorTickSize="10,3"
MinorTickSize="3,1"
MajorTickColor="DarkGray"
MinorTickColor="DarkGray"
ImageOffset="-50"
GaugeBackgroundColor="DarkSlateGray"
PointerThickness ="12"
OptimalRangeStartValue="300"
OptimalRangeEndValue="700"
DialTextOffset="40"
DialText="Slate Gray"
DialTextColor="DarkSlateGray"
>
</gauge:CircularGaugeControl>
[解决办法]
不太明白楼主的需求,如果你需要在自身项目调用该控件,可以直接将当前项目导入即可,无需重复封装。