Toolbar Separator

537
2
06-03-2010 09:17 AM
AgatinoLa_Rosa
New Contributor
I have a toolbar where contents are images. How can I insert a separator among a group of tools? Thanks

<esriToolkit:Toolbar>
<esriToolkit:Toolbar.Items>
<esriToolkit:ToolbarItemCollection>
<esriToolkit:ToolbarItem Text="MyTool1">
<esriToolkit:ToolbarItem.Content>
<Image x:Name="MyTool1" Source="..." />
  </esriToolkit:ToolbarItem.Content>
  </esriToolkit:ToolbarItem>
...here goes the separator...
<esriToolkit:ToolbarItem Text="MyTool2">
<esriToolkit:ToolbarItem.Content>
<Image x:Name="MyTool2" Source="..." />
  </esriToolkit:ToolbarItem.Content>
  </esriToolkit:ToolbarItem>
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
A couple of idea:
  1) Instead of creating a new ToolbarItem as separator, put your separator on the right and/or left of the previous/next ToolbarItem
  2) Manage the toolbar by your own StackPanel
0 Kudos
dotMorten_esri
Esri Notable Contributor
Personally I think you would be better of not using the Toolbar, but instead just put a set of buttons in a stackpanel., It's more flexible, more customizable and way simpler than using the Toolbar.
0 Kudos