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

Switched computers and diagram stopped appearing in window

9 Answers 44 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 11 Apr 2018, 02:22 PM
I recently had to switch to a new computer, from win 7 to win 10, and after I installed everything, I loaded my project, rebuilt it, and it all works fine(so far) except the RadDiagram control will not display.  What could I be doing/not doing that would cause this.

9 Answers, 1 is accepted

Sort by
0
Sam
Top achievements
Rank 1
answered on 11 Apr 2018, 02:24 PM
I am using UI for WPF Q3 2015
0
Sam
Top achievements
Rank 1
answered on 11 Apr 2018, 02:51 PM
UI for WPF Q3 2015
0
Dinko | Tech Support Engineer
Telerik team
answered on 16 Apr 2018, 11:22 AM
Hi Sam,

The possible reason behind this could be the referenced assemblies. Can you double check if the referenced DLLs are NoXAML or XAML? If you are using NoXAML and not merged the required dictionaries the RadDiagram control will not appear. You can read more about this in the Setting a Theme help article. The required dictionaries from the RadDiagram control are listed in the Getting Started help article.

Regards,
Dinko
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
Sam
Top achievements
Rank 1
answered on 16 Apr 2018, 01:13 PM
Thank you for this.  I will look into it ASAP, unfortunately I must work on other projects for a time.  I will post back either way after I get back to this project.  I suspect what you posted is the answer and am looking forward to fixing this.  Again, thank you.
0
Sam
Top achievements
Rank 1
answered on 16 Apr 2018, 03:10 PM
I am using the VisualStudio2013 theme. I have a reference to the theme DLL.  Everything else in the app is themed ok.  My App.XAML contains:
 
<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>                 <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewersUI.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 17 Apr 2018, 10:02 AM
Hello Sam,

Looking at the provided code snippet, the RadDiagram dictionaries are not merged. Can you merge the diagram assemblies and check again if the control appears in your main application?
<ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewersUI.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"/>
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

Regards,
Dinko
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
Sam
Top achievements
Rank 1
answered on 20 Apr 2018, 06:31 PM
By adding the missing XAMLs I was able to get the RadDiagram to appear.  However, I could not get the shapes to appear.  My shapes are all derived from a class  called DiagramItem : RadDiagramShape. When I added shapes directly they appeared just fine.  I created a second class ShapeTest : RadDiagramShape with nothing but a constructor and had the same issue.  I converted the project to use Themes from StyleManager and all my issues with diagramming went away.
0
Sam
Top achievements
Rank 1
answered on 20 Apr 2018, 06:32 PM
Thank you very much for your prompt assistance in resolving this.
0
Dinko | Tech Support Engineer
Telerik team
answered on 25 Apr 2018, 10:29 AM
Hi Sam,

From your last reply, I can see that you have a custom class which derives from RadDiagramShape. The newly created custom control (ShapeTest ) will not receive automatically the RadDiagramShape style. To workaround this you can create a custom style which targets your ShapeTest and set the BasedOn property of this style to "telerik:RadDiagramShapeStyle".
<ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewersUI.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"/>
    </ResourceDictionary.MergedDictionaries>
     <Style TargetType="local:ShapeTest" BasedOn="{StaticResource RadDiagramShapeStyle}" />
</ResourceDictionary>

Give this a try and let me know if it works for you.

Regards,
Dinko
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.
Tags
Diagram
Asked by
Sam
Top achievements
Rank 1
Answers by
Sam
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or