Tye type of namespace name 'Windows' does not exist ...

2 posts, 0 answers
  1. Jesper
    Jesper avatar
    18 posts
    Member since:
    Jun 2012

    Posted 04 Jul 2012 Link to this post

    I'm trying to get myself introduced into using the RadChartView here and I'm working from your demos on the matter but when I try building I get this compiler error: 

    message: The type or namespace name 'Windows' does not exist in the namespace 'Spike.Telerik' (are you missing an assembly reference?)
    file: GvsDefectsChartControl.xaml 19 26
    project: Spike.Telerik.RadChartView

    Apparently there's an assembly that needs to be referenced but the message isn't gibing me much of a hint on which one.
    Also, on the whole, I think your demos are lacking in this area. None of the XAML examples I've seen includes the namespace declarations, just the rendered tags. Those all include custom (Telerik) namespaces. Fortunately I have Jetbrains Resharper to help me set up the correct namespace declarations but I'm still stuck with the above error.

    This is my complete XAML:

    <UserControl x:Class="Spike.Telerik.RadChartView.MyTestChartViewControl"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart"
                 xmlns:chartView="http://schemas.telerik.com/2008/xaml/presentation"
                 mc:Ignorable="d"
                 xmlns:GVS="clr-namespace:Spike.RADChart.GVS"
                 d:DesignHeight="300" d:DesignWidth="300">
         
        <UserControl.Resources>
            <GVS:MyViewModel x:Key="_testVM"/>
        </UserControl.Resources>
         
        <Grid DataContext="{StaticResource _testVM}">
                 
            <chart:RadCartesianChart >
     
                <chart:RadCartesianChart.HorizontalAxis>
                    <chartView:DateTimeCategoricalAxis LabelRotationAngle="50" LabelFormat="HH:mm"/>
                </chart:RadCartesianChart.HorizontalAxis>
     
                <chart:RadCartesianChart.VerticalAxis>
                    <chartView:LinearAxis />
                </chart:RadCartesianChart.VerticalAxis>
     
                <chart:RadCartesianChart.Series>
                    <chartView:SplineSeries
                        ItemsSource="{Binding Path=Data}"
                        CategoryBinding="Time"
                        ValueBinding="Value"
                        />
     
                </chart:RadCartesianChart.Series>
                 
            </chart:RadCartesianChart>
             
        </Grid>
    </UserControl>


    I would appreciate any help.
    Thanks

  2. Jesper
    Jesper avatar
    18 posts
    Member since:
    Jun 2012

    Posted 04 Jul 2012 Link to this post

    Never mind. Seems the problem "self healed".
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top