Radial Gauge issue

2 posts, 0 answers
  1. James Kucharski
    James Kucharski avatar
    2 posts
    Member since:
    Sep 2009

    Posted 14 Sep 2009 Link to this post

    Im trying to use a quarter circle gauge, but I cant seem to find the correct namespace for ResourceDictionary... I have:
    <navigation:Page
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
        mc:Ignorable="d" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
     xmlns:Telerik_Windows_Controls_Charting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
     xmlns:Telerik_Windows_Controls_Gauge="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Gauge" x:Class="ForexApplication.Home"
        xmlns:Telerik_Windows_Controls_Gauges="clr-namespace:Telerik.Windows.Controls.Gauges;assembly=Telerik.Windows.Controls.Gauge"    d:DesignWidth="640" d:DesignHeight="480"
        Title="Home"
        Style="{StaticResource PageStyle}">
     <UserControl.Resources>
      <ResourceDictionary>
       <telerik:ResourceDictionary.MergedDictionaries>
        <telerik:ResourceDictionary Keys="RadialGaugeQuarterCircleNEStyle,
               RadialGaugeQuarterCircleNWStyle,
               RadialGaugeQuarterCircleSWStyle,
               RadialGaugeQuarterCircleSEStyle,
               RadialScaleQuarterCircleNEStyle,
               RadialScaleQuarterCircleNWStyle,
               RadialScaleQuarterCircleSWStyle,
               RadialScaleQuarterCircleSEStyle"
               Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml" />
       </telerik:ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
     </UserControl.Resources>

    ...

    For the <telerik:ResourceDictionary.MergedDictionaries> tag I continue to get The error:

    The name "ResourceDictionary" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 

    I have a reference to Telerik.Windows.Controls.dll. The dll is copied from ...\Program Files (x86)\Telerik\RadControls for Silverlight Q2 2009\Binaries\Silverlight

    Looks like a simple dll reference issue, but the reference is clearly defined.

    Im using silverlight 3 and Microsoft Expression Blend 3 on Vista x64

    Thanks

  2. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 15 Sep 2009 Link to this post

    Merged Dictionaries are part of Silverlight 3, so removing the namespace prefix should make it work.

    Steve
Back to Top