Posted 16 years ago by Kevin Yao
Avatar
I get this message when I tried to build the solution:
Error 1 The property 'ScrollViewer.IsDeferredScrollingEnabled' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 83 Position 53. C:\Program Files\Actipro Software\WPFStudio\v4.5.0471\Samples\SampleBrowser\ProductSamples\PropertyGridSamples\QuickStart\Virtualization\MainControl.xaml 83 53 SampleApplication-CSharp.VS2008

Comments (9)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Kevin,

The associated QuickStart only works for .Net 3.5 SP1, but this doesn't appear to build for earlier versions. As a workaround for this build issue, you can simply remove the setting of ScrollViewer.IsDeferredScrollingEnabled in the QuickStart.

We will fix this for the next maintenance release.


Actipro Software Support

Posted 16 years ago by Kevin Yao
Avatar
How can I do a demo for our team using Expression Blend with one of your Circular Gauge Ranges? Do I jsut copy and paste the XAML code and the 2 references? I'm new to this.

Thanks.
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
There is a Getting Started topic in the documention, along with other information that may help you. But to answer your question.

First, add references to the ActiproSoftware.Shared.Wpf30.dll and ActiproSoftware.Gauge.Wpf30.dll assemblies. They should have been installed in the GAC during the control installation process. However they also will be located in the appropriate Program Files folders.

You can then copy the XAML, and possibly the associated C# code, as needed. When copying the XAML code (assuming you just copy the gauge portion), make sure to copy the namespace declarations from the top of the file.


Actipro Software Support

Posted 16 years ago by Kevin Yao
Avatar
Need a bit more help here. I have the following code but it fails to build. Any ideas?

This is the User Control code:
<UserControl
    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"
    mc:Ignorable="d"
    x:Class="UntitledProject1.btn_ProductionLine"
    x:Name="UserControl"
    d:DesignWidth="220" d:DesignHeight="220" xmlns:gauge="http://schemas.actiprosoftware.com/winfx/xaml/gauge">

    <Grid x:Name="LayoutRoot">
        <gauge:CircularGauge x:Name="gauge" Width="220" Height="220" Radius="110" HorizontalAlignment="Left"
                    Background="#FFEEEEE3" RimBrush="#FFF4F3F8" FrameType="CircularGear" IsBackgroundEffectEnabled="False" gauge:TickSetBase.MajorInterval="50">
                    
                    <gauge:CircularGauge.LayoutTransform>
                        <ScaleTransform ScaleX="{Binding Path=Value, ElementName=scaleSlider}"
                            ScaleY="{Binding Path=Value, ElementName=scaleSlider}" />
                    </gauge:CircularGauge.LayoutTransform>
                    
            <gauge:CircularScale Radius="75" StartAngle="30" SweepAngle="330" BarExtent="1">
                <gauge:CircularTickSet MajorInterval="10" MinorInterval="2">
                            <gauge:CircularTickSet.Ranges>
                                <gauge:CircularRange x:Name="redRange" ScalePlacement="Inside" StartValue="0"
                                    EndValue="100" HasDropShadow="False" StartExtent="0" EndExtent="20"
                                    Background="Green"
                                    Visibility="{Binding Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=redRangeVisibilityCheck}"/>
                                <gauge:CircularRange x:Name="greenRange" ScalePlacement="Inside" StartValue="0"
                                    EndValue="100" HasDropShadow="False" StartExtent="0" EndExtent="20"
                                    Background="Green" />
                            </gauge:CircularTickSet.Ranges>
                            <gauge:CircularTickSet.Ticks>
                                <gauge:CircularTickMarkMinor TickMarkExtent="7" TickMarkAscent="4"
                                    TickMarkType="TriangleSharp"
                                    Background="Black" />
                                <gauge:CircularTickMarkMajor TickMarkExtent="10" TickMarkAscent="4"
                                    TickMarkType="SwordBlunt"
                                    Background="Black" />
                                <gauge:CircularTickLabelMajor Foreground="#FF0C0909" FontSize="10"
                                    ScalePlacement="Outside" ScaleOffset="5" TextOrientation="Rotated" />
                            </gauge:CircularTickSet.Ticks>
                            <gauge:CircularTickSet.Pointers>
                                <gauge:CircularPointerNeedle x:Name="needle" NeedleType="TriangleSharp"
                                    PointerExtent="75" PointerAscent="10"
                                    Background="#FFE16179" />
                                <gauge:CircularPointerCap PointerExtent="25" CapType="CircleConvex"
                                    Background="#FF9A1225" />
                            </gauge:CircularTickSet.Pointers>
                </gauge:CircularTickSet>
            </gauge:CircularScale>
        </gauge:CircularGauge>
    </Grid>
</UserControl>
This is the main Windows1.xaml
<Window
    xmlns:gauge="http://schemas.actiprosoftware.com/winfx/xaml/gauge"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="UntitledProject1.Window1"
    x:Name="Window"
    Title="Window1"
    Width="640" Height="480" xmlns:UntitledProject1="clr-namespace:UntitledProject1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">

    <Window.Resources>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <UntitledProject1:btn_ProductionLine d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" Margin="0,0,0,0"/>
    </Grid>
</Window>
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
What is the build error you are seeing?


Actipro Software Support

Posted 16 years ago by Kevin Yao
Avatar
I got it to build. It is an amazing product. How can I bind into some data so the gauge's needle will move around?
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Kevin,

The Demos and QuickStarts provided show numerous examples of how to bind to the needles. Two in particular are the World Clocks sample, which shows how the gauges can be bound to the current time, and the Scientific Demo, which shows data updates based on a timer.


Actipro Software Support

Posted 16 years ago by Kevin Yao
Avatar
I see those demos. Is there any documentation that I can read up? It is pretty confisung for an UI designer....Thanks.
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We don't have the type of documentation you are probaly looking for, since your question deals more with using WPF in general and not with our controls. Regardless,
there are tons of resources available on the subject through Microsoft and other popular sites.

One example is: http://msdn.microsoft.com/en-us/magazine/cc163299.aspx.

Hope this helps


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.