using radlineargauge always gets does not support direct content

2 posts, 0 answers
  1. Victor
    Victor avatar
    3 posts
    Member since:
    Jan 2013

    Posted 03 Jan 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"/>

                            </DataVisualization:RadLinearGauge>

    Why do I keep getting this error message?

     

     

     
     
  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 06 Jan 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: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
Back to Top