How to resize circular gauge according to window size.

Posted 2 years ago by Avatar sheshidar

<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 2 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
Information The latest build of this product (2018.1 build 0674) was released 5 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.