Problem with xml namespace.

4 posts, 0 answers
  1. hasan hysa
    hasan hysa avatar
    2 posts
    Member since:
    Apr 2010

    Posted 27 Feb 2011 Link to this post

    Hello to all.
    There are many days that I struggle with this problem, but without any results.
    I'm trying to make a small GAUGE, but I always get the same error when I use it in another application outside of Visual Studio.
    This thing only happens when I use usercontrol and not when I use it in an application.
    The error that is plaguing me is:
    The tag "RadialGuage" does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'
    Visual Studio does not by any error during compilation.
    someone tell me what is it? or where I am wrong?
    Thanks in advance.
    <UserControl 
        mc:Ignorable="d"
        x:Name="UserControl" Width='Auto' Height='Auto'>
        <telerik:RadialGaug Name='radialGauge' Width='300' BorderBrush="Black" Foreground="Black" OuterBorderBrush="Black" FontSize="13.333">
            <telerik:RadialGauge.OuterBackground>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="White"/>
                    <GradientStop Color="#FFD4D4D4" Offset="1"/>
                    <GradientStop Color="Gainsboro" Offset="0.57"/>
                    <GradientStop Color="#FFADADAD" Offset="0.57"/>
                </LinearGradientBrush>
            </telerik:RadialGauge.OuterBackground>
            <telerik:RadialGauge.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF202020"/>
                    <GradientStop Color="#FF767676" Offset="0.778"/>
                    <GradientStop Color="Black" Offset="1"/>
                    <GradientStop Color="Black" Offset="0.261"/>
                </LinearGradientBrush>
            </telerik:RadialGauge.Background>
            <telerik:RadialScale Center='0.5,0.5' EndWidth='0.1' FontFamily='Tahoma' FontSize='12' MaxWidth='Infinity' Name='radialScale' Radius='0.8' StartAngle='120' StartWidth='0.1' StrokeThickness='0' SweepAngle='300' Max='600' BorderThickness='0' LogarithmicBase='10' MajorTicks='30' MiddleTicks='3' MinorTicks='2' Multiplier='1' Foreground="White" BorderBrush="{x:Null}" Margin="0" FontWeight='Bold'>
                <telerik:RadialScale.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF3E3C81" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                        <GradientStop Color="#FF5550F1" Offset="0.183"/>
                        <GradientStop Color="#FF5CFF3B" Offset="0.43"/>
                        <GradientStop Color="#FF0044EB" Offset="0.426"/>
                        <GradientStop Color="Black" Offset="0.983"/>
                        <GradientStop Color="#FF925021" Offset="0.665"/>
                    </LinearGradientBrush>
                </telerik:RadialScale.Background>
                <telerik:RadialScale.MajorTick>
                    <telerik:TickProperties FontStyle='Italic' />
                </telerik:RadialScale.MajorTick>
                <telerik:RadialScale.MiddleTick>
                    <telerik:MiddleTickProperties Length='0.05' TickWidth='0.2' />
                </telerik:RadialScale.MiddleTick>
                <telerik:RadialScale.MinorTick>
                    <telerik:MinorTickProperties Length='0.03' TickWidth='0.3' />
                </telerik:RadialScale.MinorTick>
                <telerik:IndicatorList Foreground="White" FontSize='8' FontWeight="Bold">
                    <telerik:Needle IsAnimated='True' Name='needle' Value='0' ArrowBorderBrush="Black" />
                </telerik:IndicatorList>
            </telerik:RadialScale>
        </telerik:RadialGauge>
    </UserControl>
     
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 02 Mar 2011 Link to this post

    Hi hasan hysa,

    Usually the RadGauge project required references to the tree following DLLs:
    - Telerik.Windows.Controls.dll
    - Telerik.Windows.Controls.Gauge.dll
    - Telerik.Windows.Data.dll

    Please check that all of these DLLs are referenced in your project.
    Also please check that all of these DLLs are available for your control when it used in another application outside of Visual Studio.


    All the best,
    Andrey Murzov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WPF is Visual Studio 2017 Ready
  4. hasan hysa
    hasan hysa avatar
    2 posts
    Member since:
    Apr 2010

    Posted 02 Mar 2011 Link to this post

    First of all thanks for the reply.
    I assure you that references are available and are managed in the project.
    Normally when I create a WPF control testing capabilities with a program called Kxalm.
    If use of default Components of visual studio I have no problem, but if I use external components, there is no way to run it.
    If you want I can send my project, so you can see up close.



    Also please check that all of these DLLs are available for your control when it used in another application outside of Visual Studio.


    This did not understand.sorry
    I must be in a specific place the references .dll?
    Or do they go well installer put them?
    Thanks.
    Best Regards.
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 04 Mar 2011 Link to this post

    Hello hasan hysa,

    I would recommend you to take a look to the "Dynamic-Link Library Search Order" article:
    http://msdn.microsoft.com/en-us/library/ms682586(v=vs.85).aspx

    The Telerik assemblies are not installed to the Global Assembly Cache. So, you should add them to installer for distribution.

    Greetings,
    Andrey Murzov
    the Telerik team

    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top