Windows10 SplitView Control | Hamburger Menu

21In this blog, I’ll be talking about a new Xaml Control in Windows 10 which is “SplitView | Hamburger Menu” Control, and here’s an example in some apps in Windows 10


Note: if you didn’t get Windows 10 Developer Tools, you can check this Blog to get you ready.
So, Let’s Start building this in our upcoming Windows 10 Apps 😉 Continue reading

Integrating Cortana | Part 3


In the two previous blog posts, you should be finished of the first two steps of integrating Cortana.

So, in this blog post, you will perform the last step of integrating Cortana and the most important one which is How to Handle the voice commands.

What we did in the two past blog posts is:

  1. We Created the VCD file which contains the Voice Commands Which the user should say to Cortana.
  2. Then, we registered this VCD file on App Startup to let the System/Cortana recognize which command is activated by the user later.

And Now, we will walk through How to Handle the Voice Command when the user Activate it by saying it to Cortana,  in other words, What the action should be performed when the user say a specific Command. Continue reading

Integrating Cortana | Part 2


Integrating Cortana | Part 1

In the previous blog post, we have already demonstrated How to Integrate Cortana through Three easy steps and we walked through the First Step “Create Voice Command Definition File”.
In this blog post, we will walk through the Second Step “Register VCD xml file on App Startup”.

2. Register VCD xml file on App Startup

After Creating the Voice Command Definition File, we have to register this file on App Startup to let the Phone System and Cortana able to Recognize these Commands.

To Register the VCD File:

  1. Open App.xaml.cs
  2. Add this snippet of code in OnLaunced Method

    Uri uriVoiceCommands = new Uri("ms-appx:///vcd.xml", UriKind.Absolute);
    StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(uriVoiceCommands);
    await VoiceCommandManager.InstallCommandSetsFromStorageFileAsync(file);

    And this code should be performed under Try/Catch to Handle Exception Errors.

Continue reading

Integrating Cortana | Part 1

CortanaIn this blog, you will learn How to integrate Cortana into your Windows Phone 8.1 Runtime App.
But, before you integrate Cortana, you have to know Who is Cortana?
So, let me introduce Cortana to you, or actually she will 😀

Who is Cortana?

Cortana is your Digital Personal Assistant, it was developed by Microsoft for Windows Phone 8.1, Microsoft Band and it will be available in Windows 10.
Cortana was announced for the first time at Microsoft BUILD Developer Conference April 2014 and before that she was a character in Halo video game series.

If you have a Windows Phone Device, try asking Cortana “Who are you?” and “Tell me more about yourself.” 😉

Cortana’s Core Functions

Cortana has Three Core Functions:

  1. Communicate
    It can make a call, send text message and text dictation task and so on.
  2. Reminder
    Help the user complete the task now, or help them remember for later.
  3. Find
    Finding content in large catalogs, from large lists, etc…

What can Cortana do?

If you have a Windows Phone Device, try asking Cortana the below commands between the double quotations. Continue reading

Localization Using Multilingual App Toolkit

Today, we are going to know and learn how to make Localized Windows Store Apps.

What is Localization ?

Localization is that process to translate the App resources(strings) into many other languages.

Why should i learn localization ?

To publish your app into several markets with different cultures and languages than enables your to get thousands of downloads 🙂

The most important advantage of Localization is that makes you build just one app with different versions in many languages and cultures instead building multiple apps each one in language differ than the other.

How to use Localization ?

In this lesson we will be using Multilingual App Toolkit that should be downloaded.

Let’s Start!

Continue reading

05 C# Data Types

And now we’re going to talk about C# Data Types and C# Type Conversion

In C#, variables are categorized into the following types:

  • Value types
  • Reference types
  • Pointer types

Value Types
Value type variables can be assigned a value directly. They are derived from the class System.ValueType. The value types directly contain data. Some examples are int, char, float, which stores numbers, alphabets, floating point numbers, respectively. When you declare an int type, the system allocates memory to store the value.

The kink below declares a table lists the available value types in C#

To get the exact size of a type or a variable on a particular platform, you can use the sizeof method. The expression sizeof(type) yields the storage size of the object or type in bytes. Following is an example to get the size of int type on any machine:

using system;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataTypeApplication
    class Program
        static void Main(string[] args)
            Console.WriteLine("Size of int: {0}", sizeof(int));

When the above code is compiled and executed, it produces the following result:

Reference Types
The reference types do not contain the actual data stored in a variable, but they contain a reference to the variables.
In other words, they refer to a memory location. Using more than one variable, the reference types can refer to a memory location. If the data in the memory location is changed by one of the variables, the other variable automatically reflects this change in value. Example of built-in reference types are: object, dynamic and string.

The Object Type is the ultimate base class for all data types in C# Common Type System (CTS). Object is an alias for System.Object class. So object types can be assigned values of any other types, value types, reference types, predefined or user-defined types. However, before assigning values, it needs type conversion. When a value type is converted to object type, it is called boxing and on the other hand, when an object type is converted to a value type, it is called unboxing.

You can store any type of value in the dynamic data type variable. Type checking for these types of variables takes place at runtime. Dynamic types are similar to object types except that type checking for object type variables takes place at compile time, whereas that for the dynamic type variables takes place at run-time.

The String Type allows you to assign any string values to a variable. The string type is an alias for the System.String class. It is derived from object type.


Pointer Types
Pointer type variables store the memory address of another type. Pointers in C# have the same capabilities as in C or C++.
Syntax for declaring a pointer type is:

type*  identifier;

For Example:

char* cptr;
int* iptr;

And now we have already discussed the C# Data Types 🙂

So. it’s the time to know C# Type Conversions 

Type conversion is basically type casting or converting one type of data to another type. In C#, type casting has two forms:

  •  Implicit type conversion – these conversions are performed by C# in a type-safe manner. Examples are conversions from smaller to larger integral types and conversions from derived classes to base classes.
  •  Explicit type conversion – these conversions are done explicitly by users using the pre-defined functions. Explicit conversions require a cast operator.

The following example shows an explicit type conversion:

namespace TypeConversionApplication</pre>
class ExplicitConversion
static void Main(string[] args)
double d = 5673.74;
int i;
// cast double to int.
i = (int)d;


C# Type Conversion Methods
The link below declares the built-in type conversion methods:

The following example converts various value types to string type:

namespace TypeConversionApplication
     class StringConversion
         static void Main(string[] args)
             int i = 75;
             float f = 53.005f;
             double d = 2345.7652;
             bool b = true;


And now we have already finished our lesson 🙂
Next time we will talk about exciting topic so, Stay tuned 🙂
And if you need any help or support, Feel free to contact me 🙂

01 Overview

In this post we’re going to have an Overview on C# then later we will start the Technical parts of C# so let’s start 🙂

C# is a modern, general-purpose, object-oriented programming language developed by Microsoft and approved by Ecma and ISO.

C# was developed by Anders Hejlsberg and his team during the development of .Net Framework.

C# is designed for Common Language Infrastructure (CLI), which consists of the executable code and runtime environment that allows use of various high-level languages to be used on different computer platforms and architectures.

The following reasons make C# a widely used professional language:

  • Modern, general-purpose programming language
  • Object oriented.
  • Component oriented.
  • Easy to learn.
  • Structured language.
  • It produces efficient programs.
  • It can be compiled on a variety of computer platforms.
  • Part of .Net Framework.

Strong Programming Features of C#

Although C# constructs closely follow traditional high-level languages, C and C++ and being an object-oriented programming language, it has strong resemblance with Java, it has numerous strong programming features that make it endearing to multitude of programmers worldwide.

Following is the list of few important features:

  • Boolean Conditions
  • Automatic Garbage Collection
  • Standard Library
  • Assembly Versioning
  • Indexers
  • Integration with Windows

Next time we are going to talk about the Environment of C# and the .NET Framwork
Stay Tuned 🙂