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 4083210
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:17:03+00:00 2026-05-20T18:17:03+00:00

What is WCF RIA Commanding? Is that even the proper name? I have a

  • 0

What is WCF RIA Commanding? Is that even the proper name?

I have a silverlight application in which I want to use command binding to call methods on the webserver; however I’m unsure as to how to go about creating such a class and method so that it can be picked up by RIA and be used in the silverlight XAML; whiout any code behind.

  • 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-20T18:17:04+00:00Added an answer on May 20, 2026 at 6:17 pm

    a ‘command’ in the context of a Silverlight (or WPF) application is a class that implements the ICommand interface.

    It is used to bind code in ViewModels to controls in Views.

    Just about all the decent MVVM frameworks contain them (PRISM has DelegateCommand, MvvmLight has RelayCommand, etc) but it’s not too hard to write your own…

    Example usage:

    in XAML:

    <Button Command="{Binding GetCommand}" Content="Get" />
    

    then in the ViewModel (bound to the View’s DataContext)

    public ICommand GetCommand
    {
        get
        {
            if (_getCommand == null) _getCommand = new RelayCommand(GetHandler, CanGetPredicate);
            return _getCommand;
        }
    }
    
    private void GetHandler()
    {
        // Do the work here - call into the server, or whatever.
    }
    
    private bool CanGetPredicate()
    {
        // work out if it is valid for this to be called or not
        return (someRule == true); // or whatever
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Silverlight / WCF RIA Services application that uses EF 4. Currently,
I have a Silverlight application that uses WCF RIA Services. I'd like to be
I have a WCF RIA Domain Service that contains a method I'd like to
I'm using the WCF RIA Services Beta with Silverlight 3.0 and I want to
I'm using WCF RIA Services and I have a domain service method that returns
I am trying to improve the performance of a Silverlight 4 WCF RIA application.
Our Silverlight 4 / WCF RIA Services application uses windows authentication, but for one
I am using wcf ria services in a silverlight application. I am looking at
I have been dabbling in WCF RIA with Silverlight for the past few weeks
I've used WCF RIA services with Entity Framework to build a simple application which

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.