Free Gauge, styles not found

6 posts, 0 answers
  1. Paul
    Paul avatar
    3 posts
    Member since:
    Jun 2012

    Posted 26 Oct 2010 Link to this post

    Just downloaded the free Gauge, and want to use a Quarter gauge, so copied xaml from QuarterCircleGauges online example,

    <telerik:RadGauge x:Name="radGauge" Height="250" Width="250">
                <Gauges:RadialGauge x:Name="radialGauge" 
                    Style="{StaticResource RadialGaugeQuarterCircleNWStyle}">
                    <Gauges:RadialScale x:Name="radialScale"
                        Style="{StaticResource RadialScaleQuarterCircleNWStyle}">
                        <Gauges:RadialScale.MajorTick>
                            <Gauges:MajorTickProperties />
                        </Gauges:RadialScale.MajorTick>
                        <Gauges:RadialScale.MiddleTick>
                            <Gauges:MiddleTickProperties Length="0.05" TickWidth="0.2" />
                        </Gauges:RadialScale.MiddleTick>
                        <Gauges:RadialScale.MinorTick>
                            <Gauges:MinorTickProperties Length="0.03" TickWidth="0.3" />
                        </Gauges:RadialScale.MinorTick>
                        <Gauges:RadialScale.Label>
                            <Gauges:LabelProperties Location="Outside" />
                        </Gauges:RadialScale.Label>
                        <Gauges:IndicatorList>
                            <Gauges:Needle x:Name="needle" IsAnimated="True" Value="65" />
                        </Gauges:IndicatorList>
                    </Gauges:RadialScale>
                </Gauges:RadialGauge>
            </telerik:RadGauge>

    added in the ResouceDictionary section in UserControl.Resources

        <UserControl.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml" />
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </UserControl.Resources>

    But still have wiggly line under the
    RadialGaugeQuarterCircleNWStyle
    and
    RadialScaleQuarterCircleNWStyle


    Any thoughts?

    Many Thanks
    Paul

    Any update on this? Trying to get purchase order for SL controls, and this is part of what's needed for proof-of-purchase!
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 28 Oct 2010 Link to this post

    Hi Paul,

    I've copied your XAML into a test page and everything worked just fine. Here is the full XAML of the test page:

    <UserControl x:Class="Telerik.RadGauge.Silverlight.MainPage"
         Width="1000" Height="800">
        <UserControl.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml" />
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </UserControl.Resources>
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadGauge Name="radGaugeNW">
                <telerik:RadialGauge Style="{StaticResource RadialGaugeQuarterCircleNWStyle}">
                    <telerik:RadialScale Style="{StaticResource RadialScaleQuarterCircleNWStyle}">
                        <telerik:RadialScale.MajorTick>
                            <telerik:MajorTickProperties />
                        </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:RadialScale.Label>
                            <telerik:LabelProperties Location="Outside" />
                        </telerik:RadialScale.Label>
                        <telerik:IndicatorList>
                            <telerik:Needle x:Name="needle" IsAnimated="True" Value="65" />
                        </telerik:IndicatorList>
                    </telerik:RadialScale>
                </telerik:RadialGauge>
            </telerik:RadGauge>
        </Grid>
    </UserControl>

    Please, check that all necessary DLLs are referenced from your Silverlight application:

    Telerik.Windows.Controls.dll
    Telerik.Windows.Data.dll
    Telerik.Windows.Controls.Gauge.dll

    Best wishes,
    Andrey Murzov 
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Paul
    Paul avatar
    3 posts
    Member since:
    Jun 2012

    Posted 29 Oct 2010 Link to this post

    Tried copying your snippet, and still doesn't work.
    Got references to the 3 dll's
    changed to use the xmlns of schemas.telerik.com as opposed to having three namespaces for the dll's

    Are you testing with just the free gauge dll on your system, or do you have the full controls installed?

    Again, here's my xaml, with the namespace difference

    as an aside, your posted xaml doesn't copy out of the webpage very well, spaces get eaten. try copying it out and pasting into vs.

    <UserControl x:Class="telerikGauge.MainPage"
         Width="1000" Height="800">
        <UserControl.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="/Telerik.Windows.Controls.Gauge;component/Themes/Generic.xaml"/>
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </UserControl.Resources>
        <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadGauge x:Name="radGaugeNW">
                <telerik:RadialGauge Style="{StaticResource RadialGaugeQuarterCircleNWStyle}">
                    <telerik:RadialScale Style="{StaticResource RadialScaleQuarterCircleNWStyle}">
                        <telerik:RadialScale.MajorTick>
                            <telerik:MajorTickProperties/>
                        </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:RadialScale.Label>
                            <telerik:LabelProperties Location="Outside"/>
                        </telerik:RadialScale.Label>
                        <telerik:IndicatorList>
                            <telerik:Needle x:Name="needle" IsAnimated="True" Value="65"/>
                        </telerik:IndicatorList>
                        </telerik:RadialScale>
                        </telerik:RadialGauge>
                        </telerik:RadGauge>
                        </Grid>
     
    </UserControl>

  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 02 Nov 2010 Link to this post

    Hi Paul,

    I'm sorry, the Quarter and Half circle styles have been removed from the FREE DLL by mistake. We will check the issue and let you know.  

    Sincerely yours,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 03 Nov 2010 Link to this post

    Hi Paul,

    We have replaced the DLLs, so you should not have problems with the new ones. Please, download fresh free DLLs from our site.

    All the best,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Paul
    Paul avatar
    3 posts
    Member since:
    Jun 2012

    Posted 03 Nov 2010 Link to this post

    Thats sorted it out.
    Many thanks for getting this updated.

    Paul
Back to Top
DevCraft banner