Some ideas

Nov 16, 2010 at 6:04 PM

Hey,

I like your gauge very much, but to really please me some things are missing:

  • Ability to hide background images (inner & outer elipse)
  • Ability to change font size of value and ticks
  • Ability to hide value text

Maybe you can implement them! =)

Coordinator
Nov 18, 2010 at 1:43 AM

Hi,

Glad to hear that you like the gauge!  Positive feedback is much appreciated and suggestions for improvement are always welcome.  The features that you list are actually included in the current release of the gauge.

For the ability to hide background images, as well as the inner and outer ellipse you can set the following properties:

  • LightVisibility = "Hidden" (for the lighting)
  • InnerEllipseFill = "Transparent" & InnerEllipseStroke = "Transparent" for the inner ellipse
  • OuterEllipseFill = "Transparent" & OuterEllipseStroke = "Transparent" for the outer ellipse

For the ability to change properties of the value, specify a custom style for the ValueTextStyle property.  For the tick markers, specify a custom style for the TickLabelStyle property.

Below is an example that shows all of the above mentioned modifications:

            <g:Gauge MinorTickMarkColor="DimGray" Value="5" Margin="10,0,0,10"
                  MajorTickCount="10" MinorTickCount="1" ValueFormat="{}{0}" 
                  Width="200" Height="200" LightVisibility="Hidden"
                  InnerEllipseFill="Transparent" OuterEllipseFill="Transparent"
                  OuterEllipseStroke="Transparent"
                  MajorTickMarkColor="Black" >
                <g:Gauge.TickLabelStyle>
                    <Style TargetType="TextBlock">
                        <Setter Property="Foreground" Value="Black" />
                        <Setter Property="FontSize" Value="18" />
                    </Style>
                </g:Gauge.TickLabelStyle>
                <g:Gauge.ValueTextStyle>
                    <Style TargetType="TextBlock">
                        <Setter Property="Visibility" Value="Hidden" />
                        <Setter Property="Foreground" Value="DarkGreen" />
                        <Setter Property="FontSize" Value="23" />
                        <Setter Property="FontWeight" Value="Bold" />
                        <Setter Property="FontFamily" Value="Tahoma" />
                        <Setter Property="Margin" Value="0,100,0,0" />
                    </Style>
                </g:Gauge.ValueTextStyle>
            </g:Gauge>

Thanks again for the feedback and enjoy!

Terry