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

using radlineargauge always gets does not support direct content

1 Answer 64 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Victor
Top achievements
Rank 1
Victor asked on 03 Jan 2016, 06:59 AM

I always get this error but is able to eventually build and compile:

 

Severity Code Description Project File Line Suppression State
Error  The type 'RadLinearGauge' does not support direct content. TestingWorkstation C:\Users\Victor\Desktop\TestingWorkstationUWP-010216\TestingWorkstation\PDL_Page.xaml 23 

This is the code causing the problem:

                    <DataVisualization:RadLinearGauge HorizontalAlignment="Left" Background="Aqua" VerticalAlignment="Top" Height="50"
                            MinValue="{Binding SliderDisplayTromboneMin,Mode=TwoWay}" MaxValue="{Binding SliderDisplayTromboneMax,Mode=TwoWay}"
                TickStep=".5" LabelStep=".5" Margin="10,0,10,0" Width="700" Foreground="DarkBlue" >

--> PROBLEM LINE -->                            <DataVisualization:LinearBarGaugeIndicator Value="{Binding TromboneMeasuredValuePS,Mode=TwoWay}" Brush="Green" Thickness="10"/>

                        </DataVisualization:RadLinearGauge>

Why do I keep getting this error message?

 

 

 
 

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 06 Jan 2016, 04:46 PM
Hello Victor,

Thank you for contacting us.

This could be some issue with VS2015. On our side the error disappears after rebuild. If you wish to avoid it, you can add the indicators to RadLinearGauge.Indicators collection:
<DataVisualization:RadLinearGauge ...>
    <DataVisualization:RadLinearGauge.Indicators>
        <DataVisualization:LinearBarGaugeIndicator .../>
     </DataVisualization:RadLinearGauge.Indicators>
</DataVisualization:RadLinearGauge>

Please, let us know if you have any other questions.

Regards,
Rosy Topchiyska
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Gauge
Asked by
Victor
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or