Hello
I did upgraded all DLLs in the install-folder und changed the version-entry in all *.csproj files that i use. Now, I have massive problems to use the RadDocking.
I can complie the programm and it starts, too. But when I try to move a Pane an NullReferenceException will thrown.
All components (RadSplitContainer, RadGroups, RadPane and RadDocumentPane) are created by code, just the RadDocking is defiend in XAML.
I tried to build a Exsample and I get allmost the same error
important is Application_Startup I need to create the MainWindow at this position!
If StyleManager.ApplicationTheme is assined than an exception will thrown when a Pane add to RadDocking .
I did upgraded all DLLs in the install-folder und changed the version-entry in all *.csproj files that i use. Now, I have massive problems to use the RadDocking.
I can complie the programm and it starts, too. But when I try to move a Pane an NullReferenceException will thrown.
All components (RadSplitContainer, RadGroups, RadPane and RadDocumentPane) are created by code, just the RadDocking is defiend in XAML.
I tried to build a Exsample and I get allmost the same error
important is Application_Startup I need to create the MainWindow at this position!
If StyleManager.ApplicationTheme is assined than an exception will thrown when a Pane add to RadDocking .
public
partial
class
App : Application
{
private
void
Application_Startup(
object
sender, StartupEventArgs e)
{
StyleManager.ApplicationTheme = new Office_BlueTheme();
this
.MainWindow =
new
MainWindow();
this
.MainWindow.Show();
}
}
public
partial
class
MainWindow : RadRibbonWindow
{
public
MainWindow()
{
this
.WindowState = WindowState.Maximized;
InitializeComponent();
}
private
void
AddNewToolDocPane()
{
var container = Docking.DocumentHost
as
RadSplitContainer;
if
(container ==
null
)
{
container =
new
RadSplitContainer() { InitialPosition = DockState.DockedBottom };
Docking.DocumentHost = container;
}
var paneGroup = container.Items.OfType<RadPaneGroup>().FirstOrDefault();
if
(paneGroup ==
null
)
{
paneGroup =
new
RadPaneGroup();
container.Items.Add((paneGroup));
}
var pane =
new
RadPane();
paneGroup.AddItem(pane, DockPosition.Center);
}
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
AddNewToolDocPane();
}
}
<
telerik:RadRibbonWindow
x:Class
=
"WpfApplication2.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"1*"
/>
</
Grid.RowDefinitions
>
<
StackPanel
>
<
Button
Content
=
"test"
Click
=
"Button_Click"
/>
</
StackPanel
>
<
telerik:RadDocking
Grid.Row
=
"2"
x:Name
=
"Docking"
BorderThickness
=
"0"
Padding
=
"0"
>
</
telerik:RadDocking
>
</
Grid
>
</
telerik:RadRibbonWindow
>