Hi!
I would like to change the needle style for the agc:gauges. I´ve seen that it has an option: "Custom", but how can I custom the needle?
Thanks in advance!
Change Needle Style
Moderator: Queue Moderators
- ArctionNikolai
- Posts: 38
- Joined: Fri Feb 05, 2016 11:37 am
- Location: Finland
- Contact:
Re: Change Needle Style
Hello,
My name is Nikolai and I am representative of Arction. Thank you for your question.
Customization options are available for all needle styles, not only for "Custom needle". May be, it can confuse, but custom option means that needle for a gauge is with a tickmarker, which follows with a needle and shows value above just a front of needle ending. And you can customize that marker and needle of course. That is all the difference between custom needle and other styles.
Each needle can be customized with shape, thickness, length and colours, depends on your wish. What kind of customization would you like to make???
Wish you all the best and looking forward to hearing from you.
My name is Nikolai and I am representative of Arction. Thank you for your question.
Customization options are available for all needle styles, not only for "Custom needle". May be, it can confuse, but custom option means that needle for a gauge is with a tickmarker, which follows with a needle and shows value above just a front of needle ending. And you can customize that marker and needle of course. That is all the difference between custom needle and other styles.
Each needle can be customized with shape, thickness, length and colours, depends on your wish. What kind of customization would you like to make???
Wish you all the best and looking forward to hearing from you.
Nikolai Arsenov
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
- ArctionNikolai
- Posts: 38
- Joined: Fri Feb 05, 2016 11:37 am
- Location: Finland
- Contact:
Re: Change Needle Style
Did you find solution?matstumpf wrote:Hi!
I would like to change the needle style for the agc:gauges. I´ve seen that it has an option: "Custom", but how can I custom the needle?
Thanks in advance!
Nikolai Arsenov
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
Re: Change Needle Style
Hi!
Thanks for the reply and sorry for the delay, i was kind of busy on last days..
I would like to add a custom image (.png or .jpeg) to the needle, or build my own shape!
Thanks for the reply and sorry for the delay, i was kind of busy on last days..
I would like to add a custom image (.png or .jpeg) to the needle, or build my own shape!
- ArctionNikolai
- Posts: 38
- Joined: Fri Feb 05, 2016 11:37 am
- Location: Finland
- Contact:
Re: Change Needle Style
Hello, I am glad to hear from you.matstumpf wrote:Hi!
Thanks for the reply and sorry for the delay, i was kind of busy on last days..
I would like to add a custom image (.png or .jpeg) to the needle, or build my own shape!
For adding image (.png / .jpg / .bmp) you can try to change your needle style in the following steps:
- Select in your XAML <agc:Scale> in Primary scale section (<agc:Gauge.PrimaryScale>).
- Then find property "Dial" and click "New" button.
- Then find property "DialElement" and click "New button". It will offer to select needle for modification. For this solution, you may select "WideNeedle".
Expand Arction.X.Gauges/Arction.Needles.
- After steps mentioned above, you wil have new XAML lines (<agc:Dial.DialElement><Needles:X>).
- In this specific needle, select Background as Image, choose picture you like.
- It will be under the needle. So, you have to make needle smaller or make it transparent.
1. First of all, in the same property tree, You can decrease width to make needle smaller, but background area has still the same size, then increase length (Needle will grow, but picture will be in front of it).
Sample code. Speedometer gauge was modified so.
Code: Select all
<agc:Dial DialShape="Custom" Length="389">
<agc:Dial.DialElement>
<Needles:WideNeedle Width="1337">
<Needles:WideNeedle.Background>
<ImageBrush ImageSource="Pictures/metalTexture.jpg" Stretch="Uniform"/>
</Needles:WideNeedle.Background>
</Needles:WideNeedle>
</agc:Dial.DialElement>
</agc:Dial>
- Go to the <agc:Scale x:Name="X"> and change for this specific needle all three colors to transparent. (Set Alpha channel to 0).
See picture: Is it same result as you expected?
I do hope it helps you in your projects. I am happy to answer all your further questions.
If you would like to order some features, you could contact with our support by e-mail.
Best regards
Nikolai Arsenov
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
Re: Change Needle Style
Hi!
Thanks for the reply!
I understand and could do the instructions you told me, but what I really want is something like that (attached png)
Is it possible? Thanks!
Thanks for the reply!
I understand and could do the instructions you told me, but what I really want is something like that (attached png)
Is it possible? Thanks!
- Attachments
-
- Untitled-2.png (229.66 KiB) Viewed 27817 times