Category: UWP

Using Remote Debugging On Another PC

If you’re developing a multi user app or just want to try your app out on another PC you can use Visual Studios remote debugging feature. You don’t even need to have Visual Studio set up on the remote PC for this to work. There’s a few things that need to be done so let’s get stuck in. Remote Tools For Visual Studio Before you do anything you are going to need to find the right remote tools for your version of Visual Studio.┬áHead on over to https://www.visualstudio.com/downloads/ and download Remote Tools for Visual Studio. Note: If you are...

Read More

Uploading files with Windows.Networking.BackgroundTransfer

Uploading (or downloading) large files to your web server has always been a dangerous process. Too many users with large files can cause server overload, users trying to upload files beyond the accepted server size, giving reliable feedback to the user while uploading and handling file interruptions are common causes. So when I had to build uploading large files into a UWP app I really didn’t want to rely on the standard HTTP Post method. Thankfully there is an awesome API built in to the framework called Background Transfer. Windows.Networking.BackgroundTransfer Background Transfer has some really great features that tie...

Read More

Telerik RadDataGrid Hints and Tips

The Telerik RadDataGrid is perfect for displaying lots of data on any size screen in your UWP app. There’s just a few little, not so obvious tricks and tips which isn’t covered in their documentation. Working with Template Columns Let’s say I have a data source and one of the fields is a phone number. What I want to do is display an icon of a phone in front of the number in my data grid cell and drop the phone number into a HyperlinkButton so that the user can press on it to call the number. This is...

Read More

Close Content Dialog in Code Behind

Have a look at this simple bit of code: ... Dim result As ContentDialogResult = Await cldEdit.ShowAsync() If result = ContentDialogResult.Primary Then DoTextChange() End If ... Looks pretty straight forward? If the content dialog return result is that the primary button has been pressed then call DoTextChange(). That all works well if the users presses the primary button but what happens if you want your dialog control to act like a standard WinForms dialog and accept Enter or Cancel keyboard presses to close the content dialog? Have a look at this code: Private Sub txtEdit_KeyUp(sender As Object, e As...

Read More

Update Live Tiles by using a background task

Background tasks come in handy when you want your app to do something even if it isn’t currently running on your device. Once of the most common things to do is update your live tile. Background tasks run in a separate process from your app and are installed at the same time you app is installed. Because it’s a separate process it needs to be a separate assembly. So the first thing we need to do is add a new project to your current apps solution. Let’s get started: Create the background task project In Solution Explorer, right click...

Read More
  • 1
  • 2