how to capture the "Menu Item 1" text in the dropdown button and assign to textbox
-
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
-
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
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>