Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. how to capture the "Menu Item 1" text in the dropdown button and assign to textbox

how to capture the "Menu Item 1" text in the dropdown button and assign to textbox

Scheduled Pinned Locked Moved WCF and WF
csswpfwcftutorial
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krishna Aditya
    wrote on last edited by
    #1

    Hi , I am using a code snippet from codeproject of dropdown button. <<m:SplitButton Content="TWB" Name="btnSearch"                               Grid.Row="0" Grid.Column="0"                               Style="{StaticResource aeroNormalColorSplitButtonStyle}"                               Click="btnSearch_Click"                               Width="60" Height="30"                               VerticalAlignment="Center"                               HorizontalAlignment="Left"                                 Mode="{Binding ElementName=modeSelector, Path=SelectedItem}"                               Placement="{Binding ElementName=placementSelector, Path=SelectedItem}" MouseLeftButtonDown="btnSearch_MouseLeftButtonDown">                                     <MenuItem Header="TWB"/>                                     <MenuItem Header="PWB">                                     </MenuItem>                               </m:SplitButton>> so, beside this splitdown button, I have a textbox(which is basically a se

    K 1 Reply Last reply
    0
    • K Krishna Aditya

      Hi , I am using a code snippet from codeproject of dropdown button. <<m:SplitButton Content="TWB" Name="btnSearch"                               Grid.Row="0" Grid.Column="0"                               Style="{StaticResource aeroNormalColorSplitButtonStyle}"                               Click="btnSearch_Click"                               Width="60" Height="30"                               VerticalAlignment="Center"                               HorizontalAlignment="Left"                                 Mode="{Binding ElementName=modeSelector, Path=SelectedItem}"                               Placement="{Binding ElementName=placementSelector, Path=SelectedItem}" MouseLeftButtonDown="btnSearch_MouseLeftButtonDown">                                     <MenuItem Header="TWB"/>                                     <MenuItem Header="PWB">                                     </MenuItem>                               </m:SplitButton>> so, beside this splitdown button, I have a textbox(which is basically a se

      K Offline
      K Offline
      Krishna Aditya
      wrote on last edited by
      #2

      Hi, I tried by adding ListBox to the SplitButton, Now I am able to see the text in the textbox. Modified the above Xaml code to <<m:SplitButton Content="TWB" Name="btnSearch"                               Grid.Row="0" Grid.Column="0"                               click="btnSearch_Click"                               Width="60" Height="30"                               VerticalAlignment="Center"                               HorizontalAlignment="Left"                                 Mode="{Binding ElementName=modeSelector, Path=SelectedItem}"                               Placement="{Binding ElementName=placementSelector, Path=SelectedItem}">                                     <ListBox x:Name="TransitionKind" SelectionChanged="TransitionKind_SelectionChanged">                                           <ListBoxItem Content="TWB"/>                                           <ListBoxItem Content="PWB"/>                                     </ListBox>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups