I would like to re-template the color picker button which launches the popup.
In the screenshot below, I'm using the WPF Ribbon control, and I want my Font Colour button to launch the ColorPicker popup directly, rather than the current 2-step process. I figure the two ways to achieve this would be either embed the ColorPicker popup in my WPF RibbonMenuButton directly; or I could retemplate the ColorPicker button to match my current Font Colour button styling. I'd say the first option would be preferable, but the second option would at least achieve what I need.
Any suggestions as to how to do this?
Thanks.
There isn't much to go on to what might be your problem. What is the crash? Can you post your demo project so we can see what you are doing? What is the exception?
Hi,
Using your sample when I try to add the advanced button its crashing the app. Please let me know what needs to be done to resolve this issue.
thanks
nthaha
Sorry, you can ignore my post above. I realised that as well as deleting the popup I had also deleted this line:
<igPrim:ColorPickerDialog x:Name="ColorPickerDialog" ColorPicker="{Binding RelativeSource={RelativeSource TemplatedParent}}"/>
which is obviously the advanced dialog window!
I have this exact issue with using your colorpicker in SILVERLIGHT. I have taken your advice above, and moved the popup etc. It works except now the Advanced button throws an error, saying object reference is not set to an instance of an object when the command is fired.
Any help greatly appreciated.
Thanks,
Richard
Just following up on this thread. Let me know if I can be of any further assistance.