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

GanttView Getting Started

3 Answers 79 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 18 Sep 2017, 12:08 AM

Hi -

I'm trying to familiarize myself with the RadGanttView for WPF and am working through the Getting Started section of the documentation. However, when I create a new WPF app (Visual Studio 2017, .Net 4.6.1), add the listed references, add the namespace to the main window and then add a RadGanttView control to the XAML, the test app does not display the empty Gantt View. The window XAML is below. Getting up to speed with the RadGridView was quite easy with the documentation and I was hoping that the RadGanttView would be likewise.

<Window x:Class="TelerikGantt.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:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:local="clr-namespace:TelerikGantt"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadGanttView x:Name="ganttView" />
    </Grid>
</Window>

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 19 Sep 2017, 08:45 AM
Hi Ed,

Can you please check if you have added NoXaml Binaries to your project? They don't have any default styles or ControlTemplates and this would be why nothing is displayed. If that is the case you can add a theme which is located in the Binaries.NoXaml folder. Then you can include the ResourceDictionaries you need to use in the resources of your window or application. If you choose the Office_Black theme for the RadGanttView, the ResourceDictionary will look like this:

<ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.GanttView.xaml"/>
 
            </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

You can read more about how to set up NoXaml Binaries in the Setting a Theme article.

I hope you find this helpful. Let me know if I can be of any further assistance.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Michael
Top achievements
Rank 1
answered on 19 Sep 2017, 07:34 PM

That took care of it. I had the Office 2016 theme dll referenced, but did not have the theme for the GanttView added to the ResourceDictionary. Thank you for your help.

I'm getting up to speed with Telerik's WPF controls and I've been impressed so far with the documentation and support.

0
Vladimir Stoyanov
Telerik team
answered on 20 Sep 2017, 12:47 PM
Ed,

I am glad to hear that you found my reply helpful and that your experience so far has been pleasant.

Don't hesitate to contact us again if you have any more questions.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GanttView
Asked by
Ed
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Michael
Top achievements
Rank 1
Share this question
or