This is a migrated thread and some comments may be shown as answers.

floating layout

1 Answer 21 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kate
Top achievements
Rank 1
Kate asked on 09 Apr 2010, 01:34 PM

Hello!

I’m working with your Chart, and I found it working incorrectly.

<QuickStart:ExampleControl x:Class="Telerik.Windows.Examples.Chart.WPF.TwoDimensional.Bar.Example"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:QuickStart="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>     
        <telerik:RadChart x:Name="RadChart1"/>
    </Grid>
</QuickStart:ExampleControl>

As a result I expect to see a Chart of 0x0 size, but instead it’s 800x600.
I do not understand where this size comes from, because it’s not written anywhere.
How can I solve that problem?
The matter is crucial for me, since in my application I need to implement the floating layout.
Thank you very much.

RadarSoft

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 14 Apr 2010, 12:14 PM
Hello Kate,

The default behavior of the RadChart control is to measure itself with the size of its parent. In other words the control fully utilizes the available space from the parent. However, there might be a situation when the container reports available size of infinity. In these cases the chart control uses a default size of {800, 600} to render its data correctly.

Best wishes,
Velin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Kate
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or