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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:56:45+00:00 2026-05-13T10:56:45+00:00

I want to bind a command to a comboboxitem much like a typical command

  • 0

I want to bind a command to a comboboxitem much like a typical command (either application or custom) is bound to a button. I can’t seem to find an example.

EDIT:

The ComboBoxItem exists as part of a ContentControl that also contains a button. The button has an associated command that works well. How can I bind a command, in a similar way, to the ComboBoxItem?

<!--    Line    -->
<Button x:Name="Line"
    Style="{DynamicResource Button_Title}"
    Grid.Row="1"
    Grid.RowSpan="3"
    Grid.Column="0"
    Content="Line"
    Command="{x:Static local:Ribbon_AC.Custom_RoutedUICommand}"
    CommandParameter="Line"
    Tag="{DynamicResource Line_32}"/>

    <!--    Arc -->
    <ContentControl x:Name="ArcSplit"
            Template="{DynamicResource Control_SplitSmall}"
            Tag="{DynamicResource Arc_20}"
            Grid.Row="1"
            Grid.Column="1">

    <ComboBox Name="ComboBox_Arc"
        Style="{DynamicResource ComboBox_Small}"
        Width="{DynamicResource Width_DropDown}">

        <!--    Arc_0   -->
        <ComboBoxItem   x:Name="Arc_0"
                Style="{DynamicResource ComboBoxItem_Large}"
                Tag="{DynamicResource Arc0_32}"
                Content="Arc 0">

        </ComboBoxItem>
  • 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-13T10:56:46+00:00Added an answer on May 13, 2026 at 10:56 am
    <ComboBox>
        <ComboBox.Resources>
            <Style TargetType="ComboBoxItem">
                <EventSetter Event="Foo" Handler="Bar"/>
            </Style>
        </ComboBox.Resources>
    </ComboBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application I want to create buttons, minus the whole button part. Like
How can I bind a MouseDoubleClick event of a DataGrid to a delegate command
In emacs, I want to bind a command to C-i. So I put (global-set-key
how can i bind more than one command to a single key in gnu-screen?
Im attempting to bind a button in a user control to a command defined
My command object have a list of objects. I want to bind a text
How to bind TextBox Textchanghe Event To a Command... i want to changh my
I bind my textboxes to ViewModel class. But, button command (it's a RelayCommand, extended
I want to bind a function to an event but I want to change
I want to bind a string value to a text box but only if

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.