Telerik blogs

Latest

For the latest product updates, please visit Release.

  • Mobile

    Windows 8–Toast Notification

    Continuing my series based on the presentations I’m giving in Europe, today I turn to toast notifications. As with Tiles, Toast notifications are a great way to let the user know that something interesting is happening with your application. Toast notifications can be very complex but their essence can be stripped down to just a few lines of code, especially thanks to the NotificationsExtensions library available from Microsoft. Create a new application, add the NotificationsExtension library and add a reference to the NotificationsExtension library to the main project. In MainPage.xaml we’ll add a single button to launch the toast, 1: <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> ...
    May 27, 2021 2 min read
  • Mobile

    How to Build a Picture Gallery app for Windows Phone - Part 3

    In this last part of the Picture Gallery blog series, we will discuss how the app handles errors and how RadControls for Windows Phone improved the development experience. In case you missed the previous two posts, they can be found here and here. Handling exceptions No application is complete without proper error handling. To be robust the application should handle the expected exceptions in a meaningful way or crash noisily when an unexpected error occurs. In the Picture Gallery app there are a few situations that should be expected.  The first and most important condition that we need to verify on app startup is whether...
    May 27, 2021 3 min read
  • Mobile

    Windows 8–Secondary Tiles

    Continuing my series based on the presentations I’m giving on Europe, today I return to Tiles to look at creating Secondary tiles. A secondary tile can be created by the user and pinned to the start menu to provide deep access into your program. A classic example of a secondary tile would be to pin a tile for your home town in a weather application, or a specific stock in a portfolio program. I’ve stripped down the Microsoft SDK sample to its essentials to make it a bit easier to see how to create a secondary tile. To begin, create a new application,...
    May 27, 2021 3 min read
  • Mobile

    Controlling current culture in your XAML Windows Store apps

    When building an application for Windows 8 we find the same known feature for Globalization through the CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture properties, used in many cases where it comes to using culture-specific strings, formatting dates, numbers, etc. And while developing, you might be surprised that, in the common scenario, the current culture does not derive from the OS culture for the current machine. Then, how the current culture is resolved? It turns out that there is a way to get the correct OS UI culture. To understand the process I will start from a blank app and modify it for our needs. Package.appxmanifest default language When...
    May 27, 2021 2 min read
  • Mobile

    Location Awareness in about 2 minutes with Windows 8–HTML

    Introduction I was working on a mapping application for Windows 8 – HTML using the Bing SDK and needed to pass the latitude and longitude into it. I began searching for a straightforward way to get the location and had to read through pages of documentation before finally finding it. Here it is in case you want to use it in your own apps. Default.html Just replace the <body> tag as shown below: 1: <body> 2: Latitude: <div id="latitude"></div><br /> 3: Longitude: <div id="longitude"></div><br /> 4: Accuracy:...
    May 27, 2021 3 min read