I have a third-party control (Visifire) that has a namespace that uses ".". format. This works fine in a WPF application, but not in UserControl, because when you create a namespace object, it creates "cannot find assembly". This means that I have to use the code to add the control, configure the bindings, etc. Etc. Which is pretty annoying as I would rather use XAML. My thought was to trick UserControl using the following:
namespace MyControl
{
public class MyChart : Visifire.Charts.Chart
{
public MyChart () : base() {}
}
public partial Chart : UserControl
{
// All the control stuff goes here
}
}
Then in XAML I would use:
xmlns:local="clr-namespace:MyControl"
<Grid>
<local:MyChart>
</local:MyChart>
</Grid>
This does not work because it throws an exception. Does anyone have any tips on how I could get around this? Extremely important!