This question is locked. New answers and comments are not allowed.
Hi Team,
i have designed the RadTileView in the application and set the Default Fluid State to Normal in the XAML.
When i execute all the tiles are opened in normal mode, but i want the first tile alone should be maximized, and others should be in Normal State.
How to do this in the Code ? need your help on this.
Below is my code :
Code Behind :
Need your help on this.
Thanks & Regards,
Gopi V
i have designed the RadTileView in the application and set the Default Fluid State to Normal in the XAML.
When i execute all the tiles are opened in normal mode, but i want the first tile alone should be maximized, and others should be in Normal State.
How to do this in the Code ? need your help on this.
Below is my code :
<UserControl x:Class="GaugeDemo.GaugeDemo" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <UserControl.Resources> <DataTemplate x:Key="contentTemplate"> <telerik:RadFluidContentControl ContentChangeMode="Manual" State="Normal" Background="White"> <telerik:RadFluidContentControl.Content> <telerik:RadSemicircleNorthGauge Background="White" telerik:StyleManager.Theme="Office_Silver"> <telerik:RadialScale Min="0" Max="75" MajorTickStep="25"> <telerik:RadialScale.Ranges> <telerik:GaugeRange x:Name="GreenRange" Min="0" Max="25" StartWidth="0.02" EndWidth="0.02" TickBackground="Green" Background="Green" IndicatorBackground="Green" /> <telerik:GaugeRange x:Name="YellowRange" Min="25" Max="50" StartWidth="0.02" EndWidth="0.02" TickBackground="Yellow" Background="Yellow" IndicatorBackground="Yellow" /> <telerik:GaugeRange x:Name="RedRange" Min="50" Max="75" StartWidth="0.02" EndWidth="0.02" TickBackground="Red" Background="Red" IndicatorBackground="Red" /> <telerik:GaugeRangeGroup Location="Inside" Offset="0.25"> <telerik:GaugeRange Min="0" Max="25" StartWidth="0.1" EndWidth="0.1" TickBackground="Green" Background="Green" IndicatorBackground="Green" /> <telerik:GaugeRange Min="25" Max="50" StartWidth="0.1" EndWidth="0.1" TickBackground="Yellow" Background="Yellow" IndicatorBackground="Yellow" /> <telerik:GaugeRange Min="50" Max="75" StartWidth="0.1" EndWidth="0.1" TickBackground="Red" Background="Red" IndicatorBackground="Red" /> </telerik:GaugeRangeGroup> </telerik:RadialScale.Ranges> <telerik:RadialScale.Indicators> <!--<telerik:BarIndicator x:Name="radialBar" telerik:ScaleObject.Location="Inside" telerik:ScaleObject.Offset="0.25" Value="75" UseRangeColor="True" RangeColorMode="ProportionalBrush"> </telerik:BarIndicator>--> <telerik:Needle Name="needleNorth" IsAnimated="True" Value="50" /> <telerik:Pinpoint /> </telerik:RadialScale.Indicators> </telerik:RadialScale> </telerik:RadSemicircleNorthGauge> </telerik:RadFluidContentControl.Content> </telerik:RadFluidContentControl> </DataTemplate> </UserControl.Resources> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Border Grid.Row="0" Background="#f2f2f2" BorderThickness="1" BorderBrush="#a0a0a0" Margin="0"/> <telerik:RadTileView x:Name="radTileView" ContentTemplate="{StaticResource contentTemplate}" MinimizedItemsPosition="Left" Grid.Row="1"> </telerik:RadTileView> </Grid></UserControl>Code Behind :
namespace GaugeDemo{ public partial class GaugeDemo : UserControl { private ObservableCollection<object> collection = new ObservableCollection<object>(); public GaugeDemo() { InitializeComponent(); collection.Add(new { NeedleValue = 50 }); collection.Add(new { NeedleValue = 60 }); collection.Add(new { NeedleValue = 70 }); radTileView.ItemsSource = collection; } }}Need your help on this.
Thanks & Regards,
Gopi V