Question

How to resize circular gauge according to window size.

Posted 4 months ago by Avatar sheshidar

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

<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" >
</gauge:CircularGauge>

 

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 4 months ago by Actipro Software Support - Cleveland, OH, USA

Hello,

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 (2016.1 build 0635) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.