I was glad to see the Gauge as a new control in SL.
But I had to find out the there is no documentation.
The (pretty hard) repsonse to a ticket was something like: "In Feb. 2009 we will...."
Anyhow - optimistic and knowing the things from a competitors control suite I placed a gauge in a SL Project.
Works "fine" - but I see nothing.
So my second approach was to use some code from your examples.
I copied the gauge from NumericIndicatorSamples Formating to my project.
The Result - I got a sevensegment display -- looking like the sample.
Since I only want to have the "number block" not the Orange thing around I played a bit with the things.
I found out - most settings are done via Resources.
Since there is no documentation I had the idea to remove some of the styles - to see what happens.
I changed
<
gauge:LinearGauge Style="{StaticResource LinearGaugeStyle}">
to
<
gauge:LinearGauge>
just to see what it does.
The result - VS crashes.
Every approach to open the file results in a VS crash.
After opening the file it with a plain text editor and bring back the style I could open the file again in designer.
So LinearGaugeStyle or NumerisScaleStyle (I guess) bring the orange block with the gray border I think.
Playing around with the things brings the risk to crash VS.
Changes are not visible directly.
Example:
I place a button on the same UC -- I set content to "Hallo".
As soon as I change it to "Hello you" the text is displayed in the preview.
If I (for an example) change the color of on of the NumberPositions the display disappears.
Changeing scale or something else in preview brings up the display again.
Next from the scratch:
<
control:RadGauge Width="300" Height="200">
</control:RadGauge>
As soon as I enter
<
gauge:NumericScale></gauge:NumericScale>
VS crashes.
The crashing stops with a brand new project using no style refs.
Conclusion:
I got a brand new control (needed very much), but to see anything I end up in a copy of an example where some "StaticResources" are used to define the look of the control.
So the simple approach to display nothing more than a rectangle with the numberblocks fails since I don't know which styles are available, or what to use to get what I need.
In other words -- I have something which I can use like it is used in the samples.
To make it look like I need it - I would need some kind of documentation.
Crashes by only adding a node doesn't make the things easier.
So my simple question is:
I'm here with a blank SL App. All I want is a 7segment display with (lets say) 6 digits.
How to start?????
Manfred