by ManniAT
17. April 2009 17:46
Technorati-Tags:
telerik,
silverlight The title is based loosely on Roxette's Joyride.
And it’s confusing I guess. So (in opposite to my last series) let’s start with the final look of what we I’m talking about.
The last block (Button get Values from and the text below) is the test interface of this thing – and the rest explains itself I think.
Telerik has an example for the Gauge Control – and as you can see on that image they built some kind of computer dashboard.
In my code I wanted to focus on the RadGauge for Silverlight so I did not fully implement all the nice details telerik has in the sample.
BUT – there is one big difference. While the sample acts with random data I will do it with life data.
In this series I will take a look at those things:
- Collect Performance Data on a webserver
- Provide this performance data via a webservice in are (almost) performant way
- Retrieve additional computer (server) information not available via performance counters.
- Display the data in a Silverlight control using RadGauge for Silverlight
Of course you can simply use text or other controls – but I think the things look better like this
You can also call the “PerformanceService” from ASPX and forget about Silverlight - Interaction between HTML and Silverlight
And I kept the things mostly like the appear on creation.
The initial project was created by these steps:
- In VS 2008 create a project of the type WebApplication
- To the WebApplication I added a new Item – Silverlight enabled WCF Service
- To the Solution I added a new Item – Silverlight Applicaion
I lefter everything on default – except the “Set as Startpage” for the Testpage
Instead I added a link to this page on my Default.aspx - I dragged a RadGauge to the Page.xaml in my Silverlight application
This adds the necessary references to the project. - I added a class PerfInfo to the WebApplication
Lets start with the PerfInfos class – something is bit tricky – so I will do this in the next section.