How do I inject a RadSplitContainer to my main docking manager (telerik:RadDocking). Currently I'm doing the following.
I am using the ninject DI framework.
I have the following code in my main main window.
In the constructor I initialise the DI framework and inject the ILegend usercontrol into the docking manager.
The ILegend UserControl is just a wrapper around a <telerik:RadSplitContainer> i.e.:
This method doesn't seem to be working, is it possible to inject different implementations of a RadSplitContainer containing different content?
I am using the ninject DI framework.
I have the following code in my main main window.
<
telerik:RadDocking
x:Name
=
"mainDockingManager"
Grid.Row
=
"1"
Grid.Column
=
"0"
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadDocumentPane
>Stuff here</
telerik:RadDocumentPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
><
br
></
telerik:RadDocking
>
In the constructor I initialise the DI framework and inject the ILegend usercontrol into the docking manager.
InitializeComponent();
kernel =
new
StandardKernel(
new
AppModule());
this
.mainDockingManager.Items.Add(kernel.Get<ILegend>());
The ILegend UserControl is just a wrapper around a <telerik:RadSplitContainer> i.e.:
<
UserControl
x:Class
=
"Whiteboard.Plugin.UI.UnclassLegend"
<br>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<
br
>
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" <
br
>
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"<
br
>
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"<
br
>
mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"><
br
>
<
telerik:RadSplitContainer
telerik:DockingPanel.InitialSize
=
"170,500"
InitialPosition
=
"DockedLeft"
>
This method doesn't seem to be working, is it possible to inject different implementations of a RadSplitContainer containing different content?