Hi,
first of all -- I was really happy when I heard that you now have a property called Orientation.
I knew this from competitor gauges - and was really missing it.
But it work -- partially.
First look at this feature:
I have a "nice" Gauge (except that background image I got to remove somehow):
Now I (the optimist) tried to set the orientation to horizontal.
And of course I change Width and height -- thats all I have to do (with a different gauge).
This looks "strange" and is far not what I expect from the Orientation property.
Anyhow - I remove the gauge and the linear gauge to get rid of that image.
So it looks "not so bad".
But it is a lot of "messing around" with Top, Left and so on.
Height has no effect at the real height - it simply "cut's things away" if you set it to small.
And if you leave it (assuming the control will "somehow arrange itself" (like used to from standard silverlight controls) it throws an exception:
This in a "value out of range" exception. And I get this often with gauge :)
Example - I want to rearrange my attributes - cut and paste is the idea.
The fact is cut - exception - paste - reload designer.
So the conclusion of this post is:
The gauge is still a bit problematic to use.
It is still no "just use out of the box" (for an example that background image).
It is (for me) still a bit confusing - I have mess around with some 0.0xx Top and left things instead of (as used) setting margin or things like width - height.
Width does also "what it likes" to have a horizontal liner gauge filling up a surrounding control with width 450 - I must set the width of the gauge to 490 :)
And it confuses me that I have a Gauge (what for?) in it the LinearGauge (brings the "wonderful" background image) and than the linearscale.
BUT: it becomes better from version to version. For me it has reached now the state "useable".
I hope I could help a bit with this post - go on - make the thing the same quality like your ASP.NET controls :)
Regards
Manfred
first of all -- I was really happy when I heard that you now have a property called Orientation.
I knew this from competitor gauges - and was really missing it.
But it work -- partially.
First look at this feature:
I have a "nice" Gauge (except that background image I got to remove somehow):
<control:RadGauge x:Name="radGaugeRam" Width="100" Height="200" HorizontalAlignment="Left"> |
<gauge:LinearGauge> |
<gauge:LinearScale x:Name="linearScaleRam" Min="0" Max="100" MajorTickStep="10" |
StrokeThickness="1" Top="0.12" Left="0.55"> |
<gauge:LinearScale.MiddleTick> |
<gauge:TickProperties Length="0.055"/> |
</gauge:LinearScale.MiddleTick> |
<gauge:LinearScale.MinorTick> |
<gauge:TickProperties Length="0.0" Visibility="Collapsed" /> |
</gauge:LinearScale.MinorTick> |
<gauge:LinearScale.Label> |
<gauge:LabelProperties FontSize="9" Location="Outside" /> |
</gauge:LinearScale.Label> |
<gauge:RangeList> |
<gauge:LinearRange Min="0" Max="70" StartWidth="0.04" |
EndWidth="0.04" Location="OverCenter" |
Background="Green" BorderBrush="#7FFFFFFF" /> |
<gauge:LinearRange Min="70" Max="85" StartWidth="0.04" |
EndWidth="0.04" Location="OverCenter" |
Background="Yellow" BorderBrush="#7FFFFFFF" /> |
<gauge:LinearRange Min="85" Max="100" StartWidth="0.04" |
EndWidth="0.04" Location="OverCenter" |
Background="Red" BorderBrush="#7FFFFFFF" /> |
</gauge:RangeList> |
<gauge:IndicatorList> |
<gauge:Marker x:Name="gauge_markerRAM" Location="OverCenter" |
RelativeHeight="0.04" RelativeWidth="0.08" IsAnimated="True" /> |
</gauge:IndicatorList> |
</gauge:LinearScale> |
</gauge:LinearGauge> |
</control:RadGauge> |
And of course I change Width and height -- thats all I have to do (with a different gauge).
This looks "strange" and is far not what I expect from the Orientation property.
Anyhow - I remove the gauge and the linear gauge to get rid of that image.
So it looks "not so bad".
But it is a lot of "messing around" with Top, Left and so on.
Height has no effect at the real height - it simply "cut's things away" if you set it to small.
And if you leave it (assuming the control will "somehow arrange itself" (like used to from standard silverlight controls) it throws an exception:
bei MS.Internal.XcpImports.CheckHResult(UInt32 hr) |
bei MS.Internal.XcpImports.RenderTargetBitmapRender(HostingRenderTargetBitmap bitmap, UIElement visual, Int32& dirtyX, Int32& dirtyY, Int32& dirtyWidth, Int32& dirtyHeight) |
bei System.Windows.Interop.HostingRenderTargetBitmap.Render(UIElement visual) |
bei MS.Internal.Silverlight.Host.RuntimeInterop.RenderElementToTargetBitmap(Int32 elementKey, Int32 targetBitmapIdentifier) |
bei MS.Internal.Silverlight.Host.Interop.RenderElementToTargetBitmap(Int32 element, Int32 targetBitmapIdentifier, ISilverlightContentDownloadCallback urlcallback) |
bei MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateBitmap() |
bei MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.UpdateTree() |
bei MS.Internal.Silverlight.Host.CiderSilverlightImageHost.CiderInternalImage.MeasureOverride(Size constraint) |
bei System.Windows.FrameworkElement.MeasureCore(Size availableSize) |
Example - I want to rearrange my attributes - cut and paste is the idea.
The fact is cut - exception - paste - reload designer.
So the conclusion of this post is:
The gauge is still a bit problematic to use.
It is still no "just use out of the box" (for an example that background image).
It is (for me) still a bit confusing - I have mess around with some 0.0xx Top and left things instead of (as used) setting margin or things like width - height.
Width does also "what it likes" to have a horizontal liner gauge filling up a surrounding control with width 450 - I must set the width of the gauge to 490 :)
And it confuses me that I have a Gauge (what for?) in it the LinearGauge (brings the "wonderful" background image) and than the linearscale.
BUT: it becomes better from version to version. For me it has reached now the state "useable".
I hope I could help a bit with this post - go on - make the thing the same quality like your ASP.NET controls :)
Regards
Manfred