This project has moved. For the latest updates, please go here.

"ButtonChrome" not included in namespace "xmlns:chrome="clr-namespace:Xceed.Wpf.Toolkit.Chromes"

Jan 7, 2014 at 12:55 PM
Hi there!

Working on a WPF-project and I am editing the styles, currently for a DropDownButton.
I pasted all the code from here: https://wpftoolkit.codeplex.com/SourceControl/latest#Main/Source/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DropDownButton/Themes/Aero2.NormalColor.xaml

The problem is, that VS says "ButtonChrome" is not included in the toolkit.

Can anybody help me please?
Developer
Jan 7, 2014 at 5:20 PM
Hi,

Try modifying the line
xmlns:chrome="clr-namespace:Xceed.Wpf.Toolkit.Chromes"
to
xmlns:chrome="clr-namespace:Xceed.Wpf.Toolkit.Chromes;assembly=Xceed.Wpf.Toolkit"
Jan 10, 2014 at 8:55 AM
Thanks, that's it! :-)

Another question, there are 2 things left I'm struggling with.
The Arrow of the DDB has always a left alignment, also if I align it to the right, it stays directly at the textcontent (which has to be aligned left).

The other thing is, that I can't trigger the button with "IsMouseOver". It just doesn't accept it, in my opinion it takes the triggers from the Toolbox, but I just don't know how to change them?
Developer
Jan 14, 2014 at 5:41 PM
Hi,

I don't understand the first problem : The Arrow of the DropDownButton left aligned which you want to place on right ?

For the second question : Trigger the MouseOver on the DropDownButton, you can catch the MouseEnter event :
 <xctk:DropDownButton x:Name="_dropDownButton"
                           Content="Click Me"
                           Width="200"
                           Height="50"
                           MouseEnter="DropDownButton_MouseEnter_1">

 private void DropDownButton_MouseEnter_1( object sender, MouseEventArgs e )
    {
     // Do Stuff
    }