<Grid x:Name="LayoutRoot" Background="White"> <ig:XamTagCloud MaxScale="10" MinScale="1" x:Name="myTagCloud" UseSmoothScaling="True"> … </ig:XamTagCloud> </Grid>
By setting the xamTagCloud™ control’s UseSmoothScaling property, a log scale is applied to the calculated scaled size of the item. This ensures that all of the cloud items are scaled relative to each other. With the UseSmoothScaling property enabled, the MaxScale value will be ignored and the cloud items will never be scaled below the MinScale value. The smooth scaling feature was designed to smooth out the differences between items with large differences in their final scaled sizes.
For example if you have a tag cloud with a MinValue of 1 and a MaxValue of 100, and many cloud items with a vast range of Weight values, you could potentially have a cloud item that is scaled to 100 times its normal size and the rest of the cloud items would appear significantly smaller. Using smooth scaling eliminates this problem and ensures that the cloud item with the heaviest Weight value is always scaled relative to the cloud item with the lightest Weight value.
In XAML:
<Grid x:Name="LayoutRoot" Background="White"> <ig:XamTagCloud MaxScale="10" MinScale="1" x:Name="myTagCloud" UseSmoothScaling="True"> … </ig:XamTagCloud> </Grid>
In Visual Basic:
tagCloud.UseSmoothScaling = True
In C#:
tagCloud.UseSmoothScaling = true;