Programmatically add a document to a DocumentDock. The document content is an usercontrol with datagrid #295
Unanswered
dariocigna
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I successfully added a document containing an usercontrol to a DocumentControl in XAML
this is the Usercontrol View
this is the main view
Now i would like to add a new GridControl to a new document programmatically.
I successfully added tabs with correct titles
but whatever i do the content of new document is always empty
notes:
checking the new document parent i see it's: {Dock.Avalonia.Controls.DocumentTabStripItem}
instead the parent of existing document build in xaml is:{Avalonia.Controls.ContentControl}
(if i set the content of the new document = content of existing xaml document it shows correctly)
Beta Was this translation helpful? Give feedback.
All reactions