Notifications
Clear all
[Closed] [.Net] CuiDockableContentAdapter With Out Pre-Loader
Apr 25, 2018 1:03 pm
Hey experst
One little question about AssemblyLoader … I have a dynamic assembly that is a Dockable Window …
My code is fine and it works , but only when I put it in bin/assemblies folder and restarting max
But I need to load assembly by myself and when software is loaded becuz it’s a custom application.[b]
Here’s my codes and it even compile fine in application and return me a CuiDockableContentAdapter .
But it doesn’t show up in actions or …
Here’s the class :
[/b][i]
public class X_Launcher : CuiDockableContentAdapter
{
public override string ActionText {
get {
return "Test1";
}
}
public override string Category { get { return "#Test"; } }
public override string WindowTitle { get { return "Title"; } }
public override Type ContentType
{
get
{
return typeof(UserControl1);
}
}
public override object CreateDockableContent()
{
return new UserControl1();
}
public override DockStates.Dock DockingModes
{
get
{
return DockStates.Dock.Left ;
}
}
}
[/i]
[b]
And Here’s a function I’m calling it :
[/b]
[b]
[/b][i]void launch_dock()
{
var Launch_Method = new X_Launcher();
var launching = Launch_Method.CreateDockableContent();
}
the code works and launching is my usercontrol1 but nothing shows up!
[b]
> I tried to use AssemblyLoader.dll Method too but nothing changed.
Thanks[/b]
[/i]
1 Reply