Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Placing WPF toolkit Color Picker inside toolbar

$
0
0

Following XAML in WPF is displaying the dropdown button of the WPF Toolkit's Color Picker outside the toolbar as shown in the screenshot below.

Question: How can I make the dropdown button display inside the toolbar (something similar to what we have in MS WORD toolbar's color picker)? Obviously, I'm missing something in the XAML below.

enter image description here

XAML:

<DockPanel Margin="0,0,660,0"><ToolBarTray><ToolBar><Button Command="New" Content="New" /><Button Command="Open" Content="Open" /><ToggleButton x:Name="tb" Content="Color" /><Popup IsOpen="{Binding IsChecked, ElementName=tb}"
                       PlacementTarget="{Binding ElementName=tb}"
                       Placement="Bottom"
                       StaysOpen="False"><xctk:ColorPicker Name="ColorPicker1" 
                              AdvancedButtonHeader="Advanced"
                              DisplayColorAndName="True" /></Popup></ToolBar></ToolBarTray></DockPanel>


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>