For Microsoft Kool-Aid Drinkers, Non-paid MS Evangelists written by a Senior Consultant, Passionate about Tech

All posts tagged c#

I just rolled off a client recently that needed to build a Universal Windows Platform (UWP) application as part of their hardware and software solution.  For those who aren’t yet familiar with UWP, you can check out this article by Tyler Whitney.

As many of you developers out there are aware, sometimes you have to build or bring with you a number of application infrastructure items before you can even get started with the core application logic.  For example, you might need some helpers, services and base classes that make your job easier or allow you to start with your base patterns, such as, MVC, MVVM, etc.

So, I have decided to create a series of posts that build up a bunch of common, important parts of an application that you might want to have in place before you even start developing your core functionality.  I have discussed a number of topics in my previous posts:

Building a Universal Windows Platform (UWP) Application (Part 1) – Using Template10

Building a Universal Windows Platform (UWP) Application (Part 2) – T4 and Strings

Building a Universal Windows Platform (UWP) Application (Part 3) – Multilingual Support

If you haven’t already read the previous posts, I recommend you do since they all build on each other.

Every developer knows the pain of distributing their application to someone who isn’t running it in debug mode in Visual Studio and is having a problem with the software.  “Oh, I haven’t done anything.”, “It used to work!” or “This software just isn’t working.” are common statements that we hear, right?

Today, we are going to discuss how we can add logging support to our application so that we can get better information from a user to help find and fix any issues that they are experiencing.

Read more: https://www.intertech.com/Blog/building-a-universal-windows-platform-uwp-application-part-4-logging-w-metrolog/
Follow us: @IntertechInc on Twitter | Intertech on Facebook


uwp3-560x224

I just rolled off a client recently that needed to build a Universal Windows Platform (UWP) application as part of their hardware and software solution.  For those who aren’t yet familiar with UWP, you can check out this article by Tyler Whitney.

As many of you developers out there are aware, sometimes you have to build or bring with you a number of application infrastructure items before you can even get started with the core application logic.  For example, you might need some helpers, services and base classes that make your job easier or allow you to start with your base patterns, such as, MVC, MVVM, etc.

So, I have decided to create a series of posts that build up a bunch of common, important parts of an application that you might want to have in place before you even start developing your core functionality.  I have discussed a number of topics in my previous posts:

Building a Universal Windows Platform (UWP) Application (Part 1) – Using Template10

Building a Universal Windows Platform (UWP) Application (Part 2) – T4 and Strings

If you haven’t already read the previous posts, I recommend you do since they all build on each other.

Today, we are going to discuss how we can add multilingual support to our application.

Read more: https://www.intertech.com/Blog/building-a-universal-windows-platform-uwp-application-part-3-multilingual-support/
Follow us: @IntertechInc on Twitter | Intertech on Facebook

 


uwppart2-560x224

I just rolled off a client recently that needed to build a Universal Windows Platform (UWP) application as part of their hardware and software solution.  For those who aren’t yet familiar with UWP, you can check out this article by Tyler Whitney.

As many of you developers out there are aware, sometimes you have to build or bring with you a number of application infrastructure items before you can even get started with the core application logic.  For example, you might need some helpers, services and base classes that make your job easier or allow you to start with your base patterns, such as, MVC, MVVM, etc.

So, I have decided to create a series of posts that build up a bunch of common, important parts of an application that you might want to have in place before you even start developing your core functionality. Check out the previous post about Using Template10. If you haven’t already read the previous post, I recommend you do since they all build on each other.

Today, we are going to discuss how we use strings in our application. Sounds easy doesn’t it? I mean, just type in your text like this, “Hello World!”, right? Well, not exactly.

Read more: https://www.intertech.com/Blog/building-a-universal-windows-platform-uwp-application-part-2-t4-and-strings/
Follow us: @IntertechInc on Twitter | Intertech on Facebook


C# 6.0

A simple, yet time consuming aspect of developing in C# is creating property initializers.  I know, you are a wizard with typing, or even using code snippets.  However, C# 6.0 just made it even more simple.

Read more


Ever wish you had a way to pad a string with spaces or multiply a number by 2 or 3 without having to write out all the syntax every time you needed it?  What if strings or integers just had functions built in to do the little extras that maybe your application does repetitive times throughout your code?

Well, in C#, you can use extension methods to enhance your experience.  Extension methods allow you to add functionality to existing types such as string, integers, etc.. Even sealed types are supported. They are declared as static methods and you can use them for interfaces and constructed types.

Let’s get started…

Read more


imageWell, I have used Felix the Cat and Captain Caveman in my last two posts, so it is time to crack out a superhero, The Fly.  In the first four issues of Adventures of the Fly,  others took on the character and made him an adult lawyer who fought crime in Capital City. He was later partnered with Fly Girl.

So, as a continuation of my previous posts, Text to Speech in Windows Phone 8 and Voice Commands in Windows Phone 8, I thought I would expand on my previous post and show you how to update your voice commands on the fly.  For example, what if we wanted to add to a command by introducing a new word to the phrase that was spoken?  Up until now, we could only issue commands that we defined in our voice definition.  Well, today, I am going to walk you through how to add this functionality programmatically.

Read Article…


FelixTo play off of my last post on Text to Speech in Windows Phone, I thought I would continue the theme of cartoon characters.  So, anyone out there heard of Felix the Cat?  Felix the Cat was a funny cartoon character in the silent film era.  He always found himself in a fix and needed to resort to his bag of tricks.  Well, let’s jump into the Windows Phone SDK bag of tricks and see how we can send voice commands to our Windows Phone 8 application.

Windows Phone 7.x introduced simple voice commands such as “Open Ebay”, “Call Ed Glogowski”, “Find food in Apple Valley”, “Text John Cannon” or even “Note It is my wife’s birthday on Friday”.

Windows Phone 8 has given developers the option to extend the voice commands to call directly into their application.

Read Article…