gaugelibv2的问题 [英] Question for gaugelibv2

查看:67
本文介绍了gaugelibv2的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我用你的GaugeLibV2做一些代码。



这就是我做的;



1.将GaugeLibV2项目转换为WPF的Windows项目。

2.构建它。(我得到了dll)

3.创建新的WPF项目

4.将dll添加到工具箱。

5.我可以使用你的仪表。



但是,这是一个问题。



我需要4个RadialScale但是我不能再添加两个RadialScale。



第1名和第2名都很好。



但是刻度和标签角度从第3个部署为正交。



这里是屏幕截图iamge。 - radialgauge.png [ ^ ]



我该如何解决这个问题?



我尝试过:



Hello,

I'm make some code with your GaugeLibV2.

This is what am I did ;

1. Converted GaugeLibV2 project to windows project for WPF.
2. build it.(I got the dll)
3. Create new WPF project
4. Add dll to tool box.
5. I can use your gauges.

but, here is a problem.

I need 4 RadialScale but I cannot add "RadialScale" more then two.

1st and 2nd is all good.

but tick and label angle are deployed as orthogonal from the 3rd.

here is the screen capture iamge. - radialgauge.png[^]

How can i solve this?

What I have tried:

<Window
        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:local="clr-namespace:TDCV2"
        xmlns:GaugeLib="clr-namespace:GaugeLib;assembly=GaugeLib" x:Class="TDCV2.MainWindow"
        mc:Ignorable="d"
        Title="Traction Device Controller" Height="800" Width="1280" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF464545" Offset="0"/>
            <GradientStop Color="#FF252525" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>
    <Grid x:Name="LayoutRoot" RenderTransformOrigin="0.5,0.5">
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="*" />
            <RowDefinition Height="100" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Grid.Column="0"/>
        <!-- End of Top menu & information -->
        <!-- Start of indicator area -->
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0">

                <GaugeLib:RadialScale HorizontalAlignment="Center" Height="450" VerticalAlignment="Center" Width="450" TickPlacement="Outward"
                                      MinAngle="-110" MaxAngle="110" MinorTickStep="1" MajorTickStep="10">
                    <GaugeLib:RadialBarIndicator Height="100" Width="100"/>
                </GaugeLib:RadialScale>
                <GaugeLib:RadialScale HorizontalAlignment="Center" Height="250" VerticalAlignment="Center" Width="250" TickPlacement="Inward"
                                      MinAngle="-110" MaxAngle="110" MajorTickStep="25">
                    <GaugeLib:RadialBarIndicator Height="100" Width="100"/>
                </GaugeLib:RadialScale>

            </Grid>

            <!-- Speed indicator -->
            <Grid Grid.Column="1"/>
            <!-- end of speed indicator -->
            <!-- start of distance indicator -->
            <Grid Grid.Column="2">
                <GaugeLib:RadialScale HorizontalAlignment="Center" Height="450" VerticalAlignment="Center" Width="450"
                                      MinAngle="-110" MaxAngle="110" MinorTickStep="1" MajorTickStep="10">
                </GaugeLib:RadialScale>
                <GaugeLib:RadialScale HorizontalAlignment="Center" Height="250" VerticalAlignment="Center" Width="250" TickPlacement="Inward"
                                      MinAngle="-110" MaxAngle="110" MajorTickStep="25"/>
            </Grid>
            <!-- end of distance indicator -->
        </Grid>
        <Grid Grid.Row="2"/>



        <!-- End of force control gauge -->


    </Grid>

</Window>

推荐答案

正如@Graeme_Grant所说,你需要将这个问题指向这篇文章的作者,我相信是自定义量表控件Windows Phone 7:第III部分 [ ^ ]



在该页面的底部(如果这是正确的文章!),你会发现一个问题,回答特定于该文章的论坛。
As @Graeme_Grant has said, you need to direct this question to the author of the article, which I believe is Custom Gauge Controls for Windows Phone 7: Part III[^]

At the bottom of that page (if it's the correct article!) you will find a question and answer forum specific to that article.


这篇关于gaugelibv2的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆