using radlineargauge always gets does not support direct content

Thread is closed for posting
2 posts, 0 answers
  1. Victor
    Victor avatar
    3 posts
    Member since:
    Jan 2013

    Posted 03 Jan 2016 Link to this post

    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"/>


    Why do I keep getting this error message?



  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 06 Jan 2016 Link to this post

    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:LinearBarGaugeIndicator .../>

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

    Rosy Topchiyska
    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
Back to Top