Getting duplicate Dropdown Pop-up when ribbon is collapsed

Getting duplicate Dropdown Pop-up when ribbon is collapsed

Anonymous
Not applicable
676 Views
10 Replies
Message 1 of 11

Getting duplicate Dropdown Pop-up when ribbon is collapsed

Anonymous
Not applicable

I am working on creating custom ribbon tab in AutoCAD ribbon.

I am creating ribbon using RibbonCompositeItem and RibbonPanelSource classes.

I am using xaml file to add custom ribbon, which has dropdown with wpf popup element.

When the ribbon is not collapsed, dropdown popup is coming once when opened, and working fine.

But when window size is decreased, and ribbon is collapsed, then I am getting duplicate popup.

Please help, how can I resolve this.

 

I am using button click to open popup.

<Button x:Name="PART_DropDownButton"  Background="Transparent" Height="Auto">
</Button>
<Popup AllowsTransparency="True" x:Name="PART_Popup"PopupAnimation="Fade" >
<ContentControl Content="{Binding PopupContent, RelativeSource={RelativeSource TemplatedParent}}"/>
</Border>
</Popup>

 

0 Likes
677 Views
10 Replies
Replies (10)
Message 2 of 11

pendean
Community Legend
Community Legend
Post screenshots showing your issue please.
0 Likes
Message 3 of 11

Anonymous
Not applicable

AutoCAD tab Issue 1.PNG

Thank you.

You can see in the above image, "Deliverable" panel is collapsed, when I click on "2D" dropdown, I am getting duplicate popups.

And when the "Deliverable" panel is not collapsed, it works file, and I get single popup only.

0 Likes
Message 4 of 11

pendean
Community Legend
Community Legend
"deliverable" is the only panel doing this, no other panel (especially the core panels that are default to the program) do this?

Post a screenshot of your ABOUT command too please.
0 Likes
Message 5 of 11

Anonymous
Not applicable

AutoCAD About.PNG

Core panel like "URL Options" is working fine.

I am getting issues only with all the custom panel's dropdowns.

0 Likes
Message 6 of 11

pendean
Community Legend
Community Legend
If it only happens with custom panels, and no other panels, it might be related to just these add-ons: are they loaded from separate CUIx files, or are you adding them to the core CUIx file?
Are you all running Enterprise CUIx files?

FWIW you are missing the 2021.1 update, get it installed sometime soon.
0 Likes
Message 7 of 11

Anonymous
Not applicable

I am using WPF xaml files for these custom panel.

I am adding them using classes RibbonCompositeItem, FrameworkElementFactory, DataTemplate, and RibbonPanelSource.

I am passing .xaml file as DataContext.

 

FrameworkElementFactory ChooseControl = new FrameworkElementFactory(typeControl);

ChooseControl.SetValue(System.Windows.Controls.UserControl.DataContextProperty, DataContext);

 

It works fine when the main panel is not collapsed.

 

Yes, I will get AUtoCAD updated soon. Thank you.

 

 

0 Likes
Message 8 of 11

pendean
Community Legend
Community Legend
That may be where you are creating the duplication with that method, sorry that will be hard for many to test over here, not many other users do it that way.
0 Likes
Message 9 of 11

Anonymous
Not applicable

Okay, thank you.

I had question like why It work fine when panel is not collapsed, why duplicates for collapsed panel.

 

And it is working fine in BricsCAD in both ways (expand, and collapse).

0 Likes
Message 10 of 11

pendean
Community Legend
Community Legend
>>>... it is working fine in BricsCAD in both ways (expand, and collapse)...<<<
I'm sure a lot f things work just fine in other programs, but that does not matter really.
0 Likes
Message 11 of 11

Anonymous
Not applicable

I am still trying to figure out how to resolve this issue.

If you can suggest something, that would be great.

Or what is the best way to add custom panels (designed using xaml) in AutoCAD.

Thank you.

0 Likes