RadDocking not visible on both design and runtime

3 posts, 0 answers
  1. Haider
    Haider avatar
    1 posts
    Member since:
    Mar 2015

    Posted 15 Oct 2016 Link to this post

    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:
    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. Nasko
    Nasko avatar
    727 posts

    Posted 17 Oct 2016 Link to this post

    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:

    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.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. F1Soft
    F1Soft avatar
    10 posts
    Member since:
    Mar 2017

    Posted 18 Aug 2017 in reply to Haider Link to this post


    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 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" />



Back to Top