Search code examples
c#visual-studioxamlvisual-studio-2017dxf

Visual components from external libraries not visible in design view of visual studio


I'm doing maintenance on a GUI, made in C#, using Visual Studio (xaml technology).

There are several visual components I don't see in the design view, like the Telerik and DXF visual components. I have no idea if this is due to a general problems ("Visual Studio Design view has problems external visual components") or if this is a specific problem for the visual components' libraries ("Telerik is not viewable in Visual Studio's Design view" or "In order to see DXF visual components in Visual Studio's Design view, you need to configure ...").

An example of a Telerik visual component in the XAML:

<Grid HorizontalAlignment="Stretch"
      VerticalAlignment="Stretch"
      DataContext="{Binding RelativeSource={RelativeSource AncestorType=client:View}}">
    <telerik:RadBusyIndicator Name="BusyIndicator"
    ....

An example of a DXF visual component in the XAML:

<Grid>
    <netDxf:DxfViewer Name="dxfViewer"
...

How can I make a start on this?

Edit

Meanwhile I've understood that DXF is CAD technology. I'm working with Microsoft Visual Studio Enterprise 2017, version 15.9.44. The DXF viewer in XAML design is at the moment the most important.


Solution

  • You should be able to add the Telerik controls manually by choosing the toolbox items. They have documentation on the process.

    I don't know of an extension that exists already for DXP files on the Marketplace, but you can write your own Visual Studio extension to read in the file and tell Visual Studio how to format it.

    This repository does such thing, but it uses a much simpler example to help guide you along the process.