How to add controls to an already developed windows phone 8.1 universal application

2 posts, 0 answers
  1. Rishi
    Rishi avatar
    1 posts
    Member since:
    Aug 2014

    Posted 22 Aug 2014 Link to this post

    Hi team,

    I am kind of new to this mobile development. I have created one app that pulls data from my database and presents it. I want to add a new frame that has a pie chart and i have no idea on how to add telerik control to that frame. Please help me out. I have already installed telerik famework. 
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 26 Aug 2014 Link to this post

    Hi Rishi,

    Adding Telerik controls to a Windows Universal app is done just like adding any other third party library: You will need to add reference to one or more assembly. In the .zip file you have downloaded you will find a folder Help with Telerik_UI_for_WindowsUniversalTelerik_UI_for_WindowsUniversal.chm inside it. In this help file there is a section for every control and there is a Getting Started and/or Overview help topic for each of the controls. In these topics you can find which assemblies you need to add references to in order to use that control. E.g. for the chart you need to add references to Telerik.Universal.Core.dll, Telerik.Universal.UI.Xaml.Primitives.dll and Telerik.Universal.UI.Xaml.Chart.dll.

    Then you need to add the xmlns definition: xmlns:telerikChart="using:Telerik.Universal.UI.Xaml.Controls.Chart" and now you can add a pie chart like this:

    <telerikChart:RadPieChart  x:Name="pieChart" PaletteName="DefaultDark">
        <telerikChart:PieSeries ShowLabels="True">
            <telerikChart:PieSeries.ValueBinding>
                <telerikChart:PropertyNameDataPointBinding PropertyName="Value"/>
            </telerikChart:PieSeries.ValueBinding>
        </telerikChart:PieSeries>
    </telerikChart:RadPieChart>

    You can find more details in the help file mentioned above.

    Best regards,
    Ves
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top