Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7583609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:43:19+00:00 2026-05-30T18:43:19+00:00

I have a Guage control in MainPage.xaml which needs three value (value, minimum and

  • 0

I have a Guage control in MainPage.xaml which needs three value (value, minimum and maximum). I have written the logic to get these three values from database in a stored procedure.

Please let me know how can I call these value in DomainService and bind the guage control properties to it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:43:20+00:00Added an answer on May 30, 2026 at 6:43 pm

    Below I will elucidate my knowledge dump as it took me some time to figure this out precisely, and I’d like to contribute this per SO’s documentation guidelines for anyone other than us:

    0) I’m going to assume you have your stored procedures all implemented and are utilizing RIA services (as they’re simpler for Silverlight development)

    1) In the .Web, add a new EDM – you’ll need to pull in all stored procedures manually via import function. At this point the autogenerated code part should be done for you, go ahead and build your project.

    2) Time to add your domain service. Add a new Domain Service, this won’t automatically generate code to pull in your stored procedures.

    3) Next, visit leeontech (http://leeontech.wordpress.com/2010/05/24/ria-services-and-storedprocedures/) for some manual coding based on your stored procedure definitions.
    What you’re doing here is exposing data from stored procedures.

    4) Start using your newly created classes

    5) In silverlight, when you use Gauge on the front end side, make sure you assign max first using Math.Max() and similarly min using Math.Min() methods in the Load completed event handler. This way you are guaranteed that the asynchronous request is completed and you have values available. Actually in Visual Studio its pretty easy to debug that event handler even.

    ps:
    The visual studio tooling can recognize and allow you to create complex types based on your stored procedures you have implemented in step 1. As my personal best practice I like to assign the return column names as uniquely as I possibly can, thereby using them in client code the same way.

    In stored procedure’s final select I’ll do something like

    SELECT actualValueInDatabase as clientSideDataTypeIWant…

    if that makes sense

    If any of the above isn’t clear, please let me know and I’ll try to update with more information.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have custom control where i want to show some items. In generic.xaml defined
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you determined a maximum number of characters allowed in FCKEditor ? I seem
Have you managed to get Aptana Studio debugging to work? I tried following this,
I have a .NET Windows Service which spawns a thread that basically just acts
I have written two queries. query 1: select stock_id from_id, nvl(lead(stock_id, 1, null) over
I want to have another copy of some control upon dragging and dropping it
I have seen a new control named Gauge in winform RDLC report. Whats the
I have set up a linear gauge in Reporting Services 2008. What I would
Have just started using Google Chrome , and noticed in parts of our site,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.