Hi Thomas,
We are unable to understand your query . But, we are
assuming your requirement is to meet the following scenarios.
Scenario 1:
We suspect that your requirement is to display the
SymbolPaletteItems in any other control instead of using the SymbolPalette. If
so, we can display the SymbolPaletteitems in other controls. We have prepared a
simple sample. In that sample, we have display all the Symbolpaletteitems in a
Listbox. For more information, please refer the attached sample and video.
Scenario 2:
We suspect that your requirement is to add the custom
SymbolPaletteItem like nav bar in SymbolPaletteGroup. If so, we can create the
custom SymbolpaletteItem and can add that item to SymbolPalette. Please refer the
following code snippet. In that code snippet, we have created a custom
SymbolPalette Group and created custom SymbolPaletteItem with the content of
the Button & Text box. And then, added that item to custom group.
Code Snippet :
// Custom
SymbolPaletteGroup SymbolPaletteGroup grp = new
SymbolPaletteGroup(); grp.Label = "Application"; SymbolPalette.SetFilterIndexes(grp, new List<int>() { 0, 6 }); diagramControl.SymbolPalette.SymbolGroups.Add(grp); // Custom
SymbolPalette Item SymbolPaletteItem item1 = new SymbolPaletteItem(); item1.Name = "CustomItem"; StackPanel panel = new StackPanel() {
Orientation=Orientation.Vertical}; panel.Children.Add(new TextBox()
{Text="Edit..",Width=50,Height=20,Margin=new Thickness(3)}); panel.Children.Add(new Button()
{Content="Submit",
Width=30,Height=20,Margin=new Thickness(3) }); panel.IsHitTestVisible = false; // Added the content
of the Items as Button and Textbox item1.Content = panel; item1.Width = 50; item1.Height = 50; grp.Items.Add(item1); |
Likewise, we can add any element as content of the
SymbolPaletteItems like nav bar.
If the above scenario doesn’t meet your requirement, please
provide more information about your requirement. So that we able to investigate
more on your requirement.
Please let us know if you need further assistance on this.
Regards,
Sudhakar C
Hi Thomas,
Please download the attached video from below link.
Regards,
Sudhakar C
Hi Thomas,
Please download the attached video from below link.
Regards,
Sudhakar C
F111149Video_7fdb81d.zip
Hi Issac,
We are sorry for the inconvenience caused. Due to some technical problems, our files has been crashed.
Kindly find the sample and video from the attachment.
Please let us know, if you require any further assist on this.
Regards,
Parthiban