Windows Phone 8.1 Silverlight and XAML

Can I add XAML controls to my WP 8.1 Silverlight app? I would like to use progress bars and radio buttons, but it looks like Silverlight doesn't have them. How can I add them?

Adding the link "using Windows.UI.Xaml.Controls" does not work.

+3


source to share


2 answers


Windows.UI.Xaml.Controls is Windows Phone 8.1 only (or better known as Universal App). If you don't like the controls that are already in Silverlight, Microsoft will release an extended set of controls for all Windows Phone Toolkits. You can get it using NuGet by right-clicking the References -> Manage NuGet Packages -> Search Tool) link and select Microsoft.

Toolkit

Add the namespace to your XAML and you are ready to go.

<phone:PhoneApplicationPage xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">

      



Windows Phone Toolkit CodePlex Project Page


List of all Toolkit controls on the toolbar

enter image description here

+4


source


Unfortunately, you cannot mix Silverlight and WinRT controls at this time. And I doubt it will ever be possible, as Microsoft is likely to move towards a Silverlight rollback.



0


source







All Articles