MajorTickProperties not found

5 posts, 0 answers
  1. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 05 Aug 2009 Link to this post

    Hi:

    I'm new to both Silverlight and Telerik.  I'm trying to create a gauge based upon then Gauge/Linear Gage example.  Visual Studio says MajorTickProperties, MiddleTickProperties, and MinorTickProperties do not exist in the Telerik.Windows.Controls.Gauges namespace.  The documentation also says these classes are in that namespace.  Everything else in the code example seems OK.  Has this changed recently and the examples and documentation haven't caught up.  I have the most recent Telerik release (7/20 I believe).

    I've installed these three in my toolbox, but when I try to drag them onto the page, I get "The operation could not be completed.  Invalid FORMATETC structure".

    Do I perhaps have an inconsistent set of files?  How should I proceed?

    Thanks in advance,

    Terry
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 06 Aug 2009 Link to this post

    Hi Terry Lindeman,

    You are using version 2009.1.526 of our control. The MajorTickProperties, MiddleTickProperties and MinorTickProperties classes appear starting from the 2009.Q2 release (2009.2.xxx).  Examples and documentation have been changed to reflect these changes.  Please, download it and give it a try.

    All the best,
    Andrey Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 06 Aug 2009 Link to this post

    Actually, I did have the 2009.2.xxx release, but I uninstalled it and reintalled it just to be sure (change and repair options got a network error reading the msi, either from the internet or from my hard drive).

    I still get the same error:
    Error 2 The type 'gauge:MajorTickProperties' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\aaa\Code\HCDA_PFS_0100\HCDA_PFS_0100\Example.xaml 83 34 HCDA_PFS_0100

    My code looks like the following.  The ...tickproperties near the bottom are generating the errors.  Everything else in the gauge namespace appears to be OK.

     
    <navigation:Page x:Class="HCDA_PFS_0100.Page1"   
            xmlns="http://schemas.microsoft.com/client/2007" 
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            xmlns:demo="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Gauge" 
            xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
            xmlns:control="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Gauge" 
            xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
            xmlns:gauge="clr-namespace:Telerik.Windows.Controls.Gauges;assembly=Telerik.Windows.Controls.Gauge">  
     
        <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" 
                BorderBrush="Transparent">  
            <ScrollViewer.Resources> 
                <ResourceDictionary> 
                    <telerik:ResourceDictionary.MergedDictionaries> 
                        <telerik:ResourceDictionary Keys="LinearMarkerStyle" 
                                Source="/Examples.Gauge;component/Silverlight/RadGaugeResources.xaml" /> 
                    </telerik:ResourceDictionary.MergedDictionaries> 
     
                    <LinearGradientBrush x:Key="green" EndPoint="1,0.5" StartPoint="0,0.5">  
                        <LinearGradientBrush.RelativeTransform> 
                            <MatrixTransform /> 
                        </LinearGradientBrush.RelativeTransform> 
                        <LinearGradientBrush.Transform> 
                            <MatrixTransform /> 
                        </LinearGradientBrush.Transform> 
                        <GradientStop Color="#FFA5FD6C" Offset="0.2" /> 
                        <GradientStop Color="#FF61B322" Offset="0.6" /> 
                        <GradientStop Color="#FFA9EA6B" Offset="1" /> 
                    </LinearGradientBrush> 
                    <LinearGradientBrush x:Key="yellow" EndPoint="1,0.5" StartPoint="0,0.5">  
                        <LinearGradientBrush.RelativeTransform> 
                            <MatrixTransform /> 
                        </LinearGradientBrush.RelativeTransform> 
                        <LinearGradientBrush.Transform> 
                            <MatrixTransform /> 
                        </LinearGradientBrush.Transform> 
                        <GradientStop Color="#FFFAE8A6" Offset="0.2" /> 
                        <GradientStop Color="#FFF8CD12" Offset="0.6" /> 
                        <GradientStop Color="#FFFFE679" Offset="1" /> 
                    </LinearGradientBrush> 
                    <LinearGradientBrush x:Key="red" EndPoint="1,0.5" StartPoint="0,0.5">  
                        <LinearGradientBrush.RelativeTransform> 
                            <MatrixTransform /> 
                        </LinearGradientBrush.RelativeTransform> 
                        <LinearGradientBrush.Transform> 
                            <MatrixTransform /> 
                        </LinearGradientBrush.Transform> 
                        <GradientStop Color="#FFFDB57B" Offset="0.2" /> 
                        <GradientStop Color="#FFF86F12" Offset="0.6" /> 
                        <GradientStop Color="#FFFFCE79" Offset="1" /> 
                    </LinearGradientBrush> 
                </ResourceDictionary> 
            </ScrollViewer.Resources> 
            <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="483" Width="761">  
                <Grid.Background> 
                    <ImageBrush ImageSource="LinearGaugeBackground.png" /> 
                </Grid.Background> 
     
                <Grid.RowDefinitions> 
                    <RowDefinition Height="0.5*" /> 
                    <RowDefinition Height="2*" /> 
                    <RowDefinition Height="2*" /> 
                </Grid.RowDefinitions> 
     
                <Grid.ColumnDefinitions> 
                    <ColumnDefinition Width="2.2*" /> 
                    <ColumnDefinition Width="2*" /> 
                </Grid.ColumnDefinitions> 
     
                <Grid Grid.Row="1">  
                    <Grid.ColumnDefinitions> 
                        <ColumnDefinition /> 
                        <ColumnDefinition /> 
                        <ColumnDefinition /> 
                    </Grid.ColumnDefinitions> 
     
                    <control:RadGauge x:Name="radGauge" Margin="15,0,15,0">  
                        <gauge:LinearGauge> 
                            <gauge:LinearScale x:Name="linearScale" Min="0" Max="100" 
                                    StrokeThickness="1" Top="0.12" Left="0.5">  
     
                                <gauge:LinearScale.MajorTick> 
                                    <gauge:MajorTickProperties /> 
                                </gauge:LinearScale.MajorTick> 
                                <gauge:LinearScale.MiddleTick> 
                                    <gauge:MiddleTickProperties Length="0.07" /> 
                                </gauge:LinearScale.MiddleTick> 
                                <gauge:LinearScale.MinorTick> 
                                    <gauge:MinorTickProperties Length="0.055" /> 
                                </gauge:LinearScale.MinorTick> 
                                 ...
     
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 07 Aug 2009 Link to this post

    Hello Terry,

    We've tried to to reproduce the problem using your code and build 2009.2.701 of our control but without success (see the attached solution).
    It looks like you still reference the Q1 version of our product from your application. Please check the references path and change them to Q2 dlls.
    If they are already referenced properly, then please open a formal support ticket and send us a small application that reproduces the problem. We would appreciate if it contains the Telerik DLL you are using.

    Kind regards,
    Andrey Murzov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 07 Aug 2009 Link to this post

    Thanks, Andrey.  That was indeed the issue.  I removed references and put the new ones in place and all is golden!

    Thanks for your help and quick response.

    Terry
Back to Top
DevCraft banner