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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:50:49+00:00 2026-06-13T02:50:49+00:00

I have a combobox in silverlight mvvm. i need to wrote the event for

  • 0

I have a combobox in silverlight mvvm. i need to wrote the event for combobox name ‘SelectionChanged’. i Create the coding below but it gives an error.. “The Property ‘Command’ was not found in type ‘InvokeCommandAction’ “

Note: I am not using Silverlight Light. I’m using Silverlight5 and its a silverlight application.

<ComboBox x:Name="myComboBox" Width="150" ItemsSource="{Binding Items}" >
                                    <ComboBox.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel>
                                                <TextBlock Text="{Binding Name}"/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </ComboBox.ItemTemplate>
                                    <i:Interaction.Triggers>
                                        <i:EventTrigger EventName="SelectionChanged">
                                            <i:InvokeCommandAction Command="{Binding LoadCommand}" CommandParameter="{Binding SelectedItem, ElementName=myComboBox}" />
                                        </i:EventTrigger>
                                    </i:Interaction.Triggers>
                                </ComboBox>

this line the error comes.

<i:InvokeCommandAction Command="{Binding LoadCommand}" CommandParameter="{Binding SelectedItem, ElementName=myComboBox}" />
  • 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-06-13T02:50:49+00:00Added an answer on June 13, 2026 at 2:50 am

    Hi Finally i found the solution for it..
    i include the below in the XAML page:

     xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
                 xmlns:si="clr-namespace:Expression.Samples.Interactivity;assembly=Expression.Samples.Interactivity"
    

    then the code for combobox is:

    <ComboBox ItemsSource="{Binding Employees,Mode=TwoWay}"  DisplayMemberPath="Dept" SelectedItem="{Binding Names, Mode=TwoWay}" Margin="130,117,0,0" Height="26" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="SelectionChanged">
                        <si:CallDataMethod Method="AddEmployee"/>
                        <si:SetProperty TargetName="LayoutRoot" PropertyName="Background" Value="PaleGoldenrod"/>
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </ComboBox>
    

    Here Employees is like a datasource to get all the employee in Observable Collections.
    that code be written in Employee.cs file.

    then we access the ComboboxSelected event as follow..
    Goto ViewModel Folder and Wrote the function named as follows,

    public void AddEmployee()
    {
    //Your Code....
    }
    

    Happy Coding…!

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

Sidebar

Related Questions

In Silverlight, MVVM I have to create a property window, but I have just
I have a silverlight combobox inside of a dataform as follows: <dataControls:DataForm x:Name=newScheduleMasterForm Height=350
I'm using a Silverlight 4.0 project that utilizes MVVM and we have a combobox
I have a combobox from which i need to programmatically disable items depending on
I have a combobox that passes along values in text, but they can have
The handler of the SelectionChanged event of the ComboBox control has the following signature:
I am having trouble with a telerik combobox in silverlight I have defined it
I have a Silverlight application with a ComboBox that is filled by VideoCaptureDevice 's.
I'm trying to set seletected value to a pre-loaded combobox using silverlight with MVVM.
Platform: Silverlight 4 / .NET 4 Description: I have a ComboBox , a Textbox

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.