The tag 'CircularGauge' does not exist in XML namespace

Gauge for WPF Forum

Posted 6 years ago by Christof Reinarz
Version: 13.1.0583
Avatar

Hi folks,

I created a UserControl with a Circular Gauge inside. It shows up fine in Visual Studio C# 2010 but when I try to open the file with explorer or any other application, I get the following error: The tag 'CircularGauge' does not exist in XML namespace 'http://schemas.actiprosoftware.com/winfx/xaml/gauge'. Line '10' Position '10'.

I have tried solutions to similar issues in this forum but nothing helps.

Here is the code:

<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:gauge="http://schemas.actiprosoftware.com/winfx/xaml/gauge"			 
    xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    x:Name ="UC" DataContext="{Binding}">
    <Viewbox x:Name="VB" Stretch="Fill">
        <!-- CirularGauge -->        
        <gauge:CircularGauge x:Name="gauge" Width="220" Height="220" Radius="110" HorizontalAlignment="Left" RimBrush="#FF363065" FrameType="CircularThickRimEclipse" BackgroundGeometry="M 1,0 L 2,0 L 3,1 L 3,2 L 2,3 L 1,3 L 0,2 L 0,1 Z" RimGeometry="M 1,0 L 2,0 L 3,1 L 3,2 L 2,3 L 1,3 L 0,2 L 0,1 Z" BackgroundRadiusRatio="0.9" Background="#FFE9DDDD" GlassType="None" IsBackgroundEffectEnabled="True">
        <gauge:CircularGauge.LayoutTransform>
                <ScaleTransform ScaleX="{Binding ElementName=scaleSlider, Path=Value}"
									ScaleY="{Binding ElementName=scaleSlider, Path=Value}" />
            </gauge:CircularGauge.LayoutTransform>

            <gauge:CircularGauge.Items>
                <TextBlock x:Name="textBlock" gauge:CircularGauge.Y="-30" Text="Entrópica" FontFamily="Tahoma"
									Foreground="WhiteSmoke" FontSize="15" />
            </gauge:CircularGauge.Items>

            <gauge:CircularGauge.Scales>
                <gauge:CircularScale Radius="74" StartAngle="180" SweepAngle="180"
									Background="{shared:LinearGradientBrush DarkGray, Gray, GradientType=TopToBottom}">
                    <gauge:CircularScale.TickSets>
                        <gauge:CircularTickSet MajorInterval="20" MinorInterval="5">
                            <gauge:CircularTickSet.Ticks>
                                <gauge:CircularTickMarkMinor TickMarkAscent="3" ScalePlacement="Outside" ScaleOffset="1"
													Background="{shared:LinearGradientBrush Black, DarkGray, GradientType=TopToBottom}" />
                                <gauge:CircularTickMarkMajor ScalePlacement="Outside" ScaleOffset="1"
													Background="{shared:LinearGradientBrush Black, DarkGray, GradientType=TopToBottom}" />
                                <gauge:CircularTickLabelMajor FontFamily="Tahoma" Foreground="WhiteSmoke"
													TextOrientation="Normal" ScalePlacement="Inside" FontStyle="Normal" FontWeight="Normal" ForceCursor="False" MinorInterval="5" />
                            </gauge:CircularTickSet.Ticks>
                            <gauge:CircularTickSet.Pointers>
                                <gauge:CircularPointerNeedle
													Background="{shared:LinearGradientBrush #FFEF153F, #FFEB7A8A, GradientType=LeftToRight, AdditionalStopCount=1}"
													NeedleType="PivotSwordSharp"  PointerExtent="78" PointerAscent="10" BorderWidth="0" gauge:CircularScale.SweepAngle="180" />
                            </gauge:CircularTickSet.Pointers>
                        </gauge:CircularTickSet>
                    </gauge:CircularScale.TickSets>
                </gauge:CircularScale>
            <gauge:CircularScale />
        </gauge:CircularGauge.Scales>
    </gauge:CircularGauge>
    </Viewbox>
</UserControl>

 

Many thanks in advance,

Christof

Comments (3)

Answer - Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Christof,

The Actipro Gauge controls are defined inour Gauge assembly.  It must be referenced by whatever app is rendering the UI.  In VS, you can reference our Gauge assembly and it works there.  However if you open the standalone XAML file in Internet Explorer, etc. there is no reference to our Gauge assembly and thus the type won't be found.

If you want to use it in a browser, you could make a WPF XBAP project instead.


Actipro Software Support

Posted 6 years ago by Christof Reinarz
Avatar

Thanks for your reply.

Actually I need to use your gauges in CopaData's Zenon SCADA System. They have a few of their own but they are very limited and I would love to use yours. The microcharts also would look really nice here. You can have a look at this software and the gagues here: http://www.copadata.com/en/downloads/wpf-elements.html

As a matter of fact, their controls work fine, but I can't get yours to work. I checked and there even is a method for importing other assemblies but I keep getting the message mentioned above.  

If you have heard of anybody using your controls with this SCADA system I would very much appreciate you let me know. Otherwise, and if it is not too much to ask, below is a link to a file that explains the process of creating wpf controls for this application in some detail. I don't have any experience with wpf so I am probably missing a few points here. In particlar, they mention some limintations I do not understand very well. 

http://www.copadata.com/fileadmin/user_upload/Products_and_Solutions/Anzeigen_und_Bedienen/wpffiles/WPF_manual_en.pdf

your help would greatly appreciated.

Best,

Christof

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Christof,

We've never used this system so you are probably better off writing the authors of it to ask how you can implement third-party custom controls in it.  Page 6 in the manual says there is some sort of Add Reference menu option.  Perhaps you need to use that to add our Shared and Gauge libraries in?  Other than that, I'm not sure what the limitations of this software application are, so it would be best to contact them.  It could be that they only support the native WPF controls in their integrations.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 16 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.