This is a migrated thread and some comments may be shown as answers.

RadDocking not visible on both design and runtime

2 Answers 256 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Haider
Top achievements
Rank 1
Haider asked on 15 Oct 2016, 05:11 AM

I have created a simple project to test RadDocking. My Xaml is pretty basic(exactly what's given in the examplehttp://docs.telerik.com/devtools/wpf/controls/raddocking/features/panes/docked-floating-panes). But I cannot see the controls in the designer and also when I execute the code nothing appears on the window.

<Window x:Class="DockTest.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:DockTest"xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"mc:Ignorable="d"Title="MainWindow" Height="350" Width="525"><Grid><telerik:RadDocking x:Name="radDocking"><telerik:RadSplitContainer x:Name="radSplitContainer" InitialPosition="DockedRight"><telerik:RadPaneGroup x:Name="radPaneGroup"><telerik:RadPane x:Name="radPane" Header="Docked Pane"><TextBlock Text="Docked Pane."></TextBlock></telerik:RadPane></telerik:RadPaneGroup></telerik:RadSplitContainer></telerik:RadDocking></Grid>

I have included all the required dlls:
Telerik.Windows.Controls
Telerik.Windows.Controls.Navigation
Telerik.Windows.Controls.Docking
Telerik.Windows.Data
I get no error on design or runtime. The version of my Dlls is "2016.1.216.45". My project is running with .Net Framework 4.6.

2 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 17 Oct 2016, 06:37 AM
Hi Haider,

The observed by you behavior is probably caused due the fact the referenced binaries (Telerik.Windows.Controls, Telerik.Windows.Controls.Docking etc.) are NoXaml binaries. The NoXaml dlls do not include any xaml code - no default styles, brushes or ControlTemplates. So, as these assemblies do not specify a default ControlTemplate for the components, when you use them, the controls have no default visualization and you can't see anything in runtime or design-time - as you have already observed.

When you use a NoXaml dll, you have to manually add a style/ControlTemplate for the controls you need in your application. We have provided two different options for that - you can use the theme dlls which are located in Binaries.NoXaml folder (Telerik.Windows.Themes.Expression_Dark.dll, Telerik.Windows.Themes.Windows8.dll, etc.), or you can use the resource dictionaries by assembly name from the Themes.Implicit folder (/Themes.Implicit/<platform>/Windows7/Themes/Telerik.Windows.Controls.xaml). Please, check the following article from our help documentation that provides detailed information how to visualize the controls when NoXaml binaries are used:
http://docs.telerik.com/devtools/wpf/styling-and-appearance/styling-apperance-implicit-styles-overview

If you want to visualize the controls as expected without using NoXaml binaries please, reference the binaries that should be placed inside the Binaries folder of the Telerik UI for WPF distribution - they use Xaml assemblies.

Hope the provided information will be helpful for you.

Regards,
Nasko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
F1Soft
Top achievements
Rank 1
answered on 18 Aug 2017, 03:59 PM

Hi.

I know this problem.

Please check App.xaml file, if last two line of ResourceDictionary is missing.

I think that is bug of default templete created....

 

          <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
                <ResourceDictionary Source="/Telerik.Windows.Themes.Green;component/Themes/Telerik.Windows.Controls.Docking.xaml" />

          </ResourceDictionary.MergedDictionaries>

 

Tags
Docking
Asked by
Haider
Top achievements
Rank 1
Answers by
Nasko
Telerik team
F1Soft
Top achievements
Rank 1
Share this question
or