How to resize circular gauge according to window size.

Gauge for WPF Forum

Posted 8 years ago by sheshidar
Version: 16.1.0633

<Grid.RowDefinitions >
<RowDefinition Height="50*"/>

<gauge:CircularGauge x:Name="gauge" Height="50" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Top"
Background="Aqua" RimBrush="Aqua" FrameType="CircularOrb" IsBackgroundEffectEnabled="False"
IsRimEffectEnabled="True" Width="95" Grid.RowSpan="2" >


This was the code used for simple circular gauge.

I obeserved with linear transaformation its zooming the control, but not resizing.

I need to resize.


Can you please help me in this.

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA


Like any WPF control, the gauge can only stretch to its container's size if you don't set Width or Height and also have HorizontalAlignment and VerticalAlignment set to Stretch.  If you change those properties, it should work.  Our Dynamic Sizing QuickStart sample shows how you can specify sizes for inner gauge elements using percentages so that they scale properly with the gauge's size.

Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.