WPF Toolkit: wpf tool kit :Split button disable dropdown content

Apr 10, 2012 at 3:01 PM

 

Hi all,

I am using WPF split button  which is inherited from  xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"

The issue is I want to disable  , the button ' the one below(Right side of Button 'Conf' in below 'downarrow present in the below fig) , If user clicks on Left side of the button the rightside should be disabled and the button(leftside) background should change to yellow.please find below the xaml , I am using the wpf split button , dropdown content in this case .please let me know if you have any idea


<extToolkit:SplitButton x:Name="ABCbutton"    VerticalAlignment="Center"

                                        Command="{Binding ACommand}"

                                        FontSize="16>

                   <TextBlock HorizontalAlignment="Center"

                               IsEnabled="{Binding IsEnabled,

                                                   ElementName=AButton}"

                               Text="A"/>

                      <extToolkit:SplitButton.DropDownContent>

                        <StackPanel>

                            <Button Command="{Binding BCommand}"

                                    Padding="3"

                                    Style="{DynamicResource  

                                      DropDownButtonMenuButton}">

                               

                             <TextBlock Margin="0,3,6,3"

                                  Text="B"/>

                            </Button>

                            <Button Command="{Binding BCommand}"

                                    Padding="3"

                                    Style="{DynamicResource

                                     DropDownButtonMenuButton}">

                                <TextBlock Margin="0,3,6,3"

                                           HorizontalAlignment="Stretch"

                                           Text="C"/>

                            </Button>

                        </StackPanel>

                    </extToolkit:SplitButton.DropDownContent> </extToolkit:SplitButton>