H
Haiping
I use XamlWriter to write a UserControl to xaml string. The UserControl has
the following namespace:
xmlns:wfi="clr-namespaceystem.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
But the xaml string does not have the WindowsFormsIntegration namespace. It
also has <av:WindowsFormsHost>. I added WindowsFormsIntegration namespace in
the xaml string and change <av:WindowsFormsHost> to <wfi:WindowsFormsHost>.
When XamlReader parse a xaml string it throws the following exception:
"The tag 'WindowsFormsHost' does not exist in XML namespace
'clr-namespaceystem.Windows.Forms.Integration;assembly=WindowsFormsIntegration'. Line '1' Position '1284'."
I don't know why.
Thanks for any input.
the following namespace:
xmlns:wfi="clr-namespaceystem.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
But the xaml string does not have the WindowsFormsIntegration namespace. It
also has <av:WindowsFormsHost>. I added WindowsFormsIntegration namespace in
the xaml string and change <av:WindowsFormsHost> to <wfi:WindowsFormsHost>.
When XamlReader parse a xaml string it throws the following exception:
"The tag 'WindowsFormsHost' does not exist in XML namespace
'clr-namespaceystem.Windows.Forms.Integration;assembly=WindowsFormsIntegration'. Line '1' Position '1284'."
I don't know why.
Thanks for any input.