Thanks for writing back.
Being new to programming, the easiest way for you to study things and get started with our controls is to take a look at sample code.
We have a very clear explanation with samples of how RadLoopingList
is integrated into a Windows Phone application here:
As you can see, the help states that you need to reference the following two Telerik
After referencing these two assemblies, you will need to add the following prefix in the XAML code of the page you want to have a RadLoopingList
In the code sample above the prefix is called telerikPrimitives
and points to the Telerik.Windows.Controls
namespace defined in the Telerik.Windows.Controls.Primitives
assembly. Our base controls are defined in this namespace in the Telerik.Windows.Controls.Primitives
assembly so you need to have it in XAML in order to be able to use our controls on your page.
After doing this, you should be able to define a RadLoopingList
instance onto your page:
By setting the x:Name
attached property you can access the control instance from the code-behind file via C#.
To fill the control with data you will need to use an instance of the LoopingListDataSource
class. This class is defined in the Telerik.Windows.Controls.Primitives
in the Telerik.Windows.Controls
Here you can find extensive code samples that demonstrate how the LoopingListDataSource
Based on your questions I believe you are a bit confused what the difference between adding a DLL
reference and a using
is, so let me give you some explanations. Adding a DLL
reference is done via the Solution Explorer in Visual Studio. All DLL references of a project are visible in the References
folder. When you add a DLL reference to a project, you immediately gain access to all public types defined in this DLL. You can use these types in C# or XAML by adding usings
. Since in a single DLL many namespaces may exist (namespaces are way of grouping classes in a DLL which belong to a common context), you will need to specify which namespace you want to use by creating a using.
in C# is created the following way:
Whereas in XAML it is defined as a prefix:
So, in the case of the Telerik.Windows.Core.dll
you need both DLLs referenced in your project but since you want to use RadLoopingList and its supporting classes (like LoopingListDataSource
) which are defined in the Primitives
assembly, you only
need to add usings to the namespaces defined in this assembly both in C# and in XAML (via the prefix shown above). The Telerik.Windows.Core.
dll assembly contains logic which is used by the Telerik.Windows.Controls.Primitives.dll
but not directly
These are basic Silverlight
and .NET principles which you will need to use with the Microsoft's Toolkit controls as well.
Another point I would like to make is that the Visual Studio code editor will automatically create usings
for you when you try to use a type from a given assembly so you do not need to explicitly create them in C#. This, however, doe snot work this way in XAML - the prefixes there should be created by hand as described above.
So, if this information is not helpful, you can simply open a new support ticket, attach the project you want to have a RadLoopingList instance in and I will integrate the control for you.
As for our examples, I would kindly like to ask you for feedback if you think we can improve them so that they become more straightforward in terms of explaining how the controls are used.
Let me know if I can be of further help.
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal
to submit ideas, feedback and vote for them.