Results 1 to 2 of 2

Thread: add button on a top of combobox item wpf

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2014

    Lightbulb add button on a top of combobox item wpf

    I want to add button on the top of combo box item to open another wpf window
    i fill combo box items by code C#

    how can i do that

    Name:  743795.gif
Views: 711
Size:  114.3 KB

  2. #2
    Lively Member
    Join Date
    Jan 2020

    I have try but not using button normal one click to redirect another page work like b


    <StackPanel Margin="10">
    <ComboBox Name="ComboBox1" Width="200" Height="30" Margin="10,10,0,0" SelectionChanged="ComboBox1_SelectionChanged">
    <ComboBoxItem Content="Top Item" ></ComboBoxItem>
    <ComboBoxItem Content="1" ></ComboBoxItem>
    <ComboBoxItem Content="2" ></ComboBoxItem>


    private void ComboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
    if(((ComboBoxItem)ComboBox1.SelectedItem).Content.ToString()=="Top Item")
    Page1 newItem = new Page1();
    Last edited by Prahlad; Feb 19th, 2020 at 11:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width