Infragistics(R) NetAdvantage(R) : WPF 2012.1
Setting Minimum and Maximum Scale Values
E-mail your feedback on this topic.
Shared XAML > Menus > xamTagCloud > Using xamTagCloud > Setting Minimum and Maximum Scale Values

Glossary Item Box

The xamTagCloud control’s scale is used to determine the size of the tags based on their weight. Setting the MinScale and MaxScale properties determines the range of scale values.

For example, if you have a range of items where their weights range from 1-N, the minimum scale value would be applied to the items with weight of 1 and the maximum scale value would be applied to the items with weight of N. All the other items with weight values in between would be scaled relative to the minimum and maximum values.

The following code demonstrates how to set the scale with a minimum value of 1 and a maximum value of 10.

In XAML:

<Grid x:Name="LayoutRoot" Background="White">
   <ig:XamTagCloud MaxScale="10" MinScale="1" Name="tagCloud"></ig:XamTagCloud>
</Grid>

In Visual Basic:

…
tagCloud.MaxScale = 10
tagCloud.MinScale = 1
…

 

In C#:

…
tagCloud.MaxScale = 10;
tagCloud.MinScale = 1;
…
Min Max Values
Related Topics

 

Add Cloud Items to xamTagCloud

Add Navigation URIs to Cloud Items

Add Spaces Between Cloud Items

xamTagCloud Events

Smooth Scaling

Working with ScaleBreaks Collection