Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers: CodeProject
Showing posts with label CodeProject. Show all posts
Showing posts with label CodeProject. Show all posts

#UWP Tips: Building a Toast Notification with buttons (Part 2)

I hope you read my previous post on “Building a Toast Notification with text for apps targeting Universal Windows Platform”. There we learned how to create a very basic toast notification. Continuing the series of posts, today we will learn how to add buttons within the notification.

 

Let’s begin with building toast notification with text and buttons. Stay tuned to learn creating more complex notifications in next blog posts of this series.



#UWP Tips: Building a simple Toast Notification with text (Part 1)

If you are a developer and building apps or games for Windows 10, targetting Universal Windows Platform (aka. UWP), you might want to show toast notifications to the user of your app/game. You might also want to provide some additional content like textbox, button etc. to get specific inputs.

 

As part of this tutorial series, we are going to learn how to show custom toast notifications. Today let’s begin with building simple toast notification with text. Stay tuned to learn complex notifications in next blog posts.


#UWP Tips: How to create Hosted Web Apps for #Windows 10?

Windows 10 SDK provides an easy to implement project template by which you can quickly create an app for Universal Windows Platform which you can use to run a hosted web app. You don’t have to create the whole app, if the site is already running. Just change few values in manifest file and your app will be running.

 

In this post, we will learn how to create a hosted web app targeting Windows 10 (without writing any code). Share your feedback and/or ask your queries, if any.


How to get the Device Information in #UWP apps?

If you are building apps/game for Universal Windows Platform, you might want to retrieve the device information where the app/game is currently running. You might use this information to log details about any exception and/or to do specific action based on device details.

 

In this post, we will learn how to fetch the device information in UWP apps. Continue to read about the APIs exposed by Microsoft SDK. Don’t forget to read my other posts too and share your feedback.


How to get the Battery Information in #UWP apps?

How many times we are in such a condition when our battery is going to die and we have to do some important calls or something else? If we poll for it, the count will be high. If you are a developer and building apps targeting Universal Windows Platform (aka. UWP), you might want to integrate the battery APIs already exposed.

 

This post will cover about the API today and we will learn how more about the API with proper demonstration. Continue to read more on this topic and don’t forget to check other posts on the same topic.


How to turn ON/OFF the Frame Rate Counter in #UWP apps?

If you are a developer building apps for Universal Windows Platform, you might have noticed that, at the time of debugging there are some strings of digit getting display just under the title bar of the application. This is called as Frame Rate Counter, which displays frame rate and per frame CPU usage.

 

Today in this small blog post, we will learn how to enable/disable the Frame Rate Counter in your Universal Windows apps. Countinue reading to know more about it.



How to apply custom color in #UWP apps Title Bar?

If you are a developer and building apps for Universal Windows apps, you might like to customize your app title bar to match your app theme. You can also change various colors of the buttons. Windows 10 SDK provides you to customize the title bar of Universal apps.

 

Today in this blog post, we will learn how to apply custom colors in apps built for Universal Windows Platform along with different other APIs exposed for it.


How to serialize/deserialize a Dictionary object in #CSharp?

Serialization and deserialization of .NET objects made easy using various serializer classes that it provides. But serialization of Dictionary object is not that much easy. For this, you have to create a special Dictionary class which is able to serialize itself. The serialization technique might be different in different business cases.

 

Today, let’s discuss how to implement the same with a sample. Code is shared in the post, which you can use in your application. Continue reading and let me know if you have any other approaches.


What’s new in C# 6.0? - Dictionary Initializer

Visual Studio 2015 and .NET 4.6 came up with another new feature (more precisely an enhancement) for C# 6.0 named “Dictionary Initializer”. It’s not a new thing but now you will be able to map the key/indexer directly at the time of dictionary object initialization.

 

Today in this blog post, we will discuss about this with an example. Don’t forget to read the other new features which I posted earlier. Links can be found in this post.

 


What’s new in C# 6.0? - await in catch and finally blocks

C# 6.0 came with another new feature along with Visual Studio 2015 and .NET 4.6. Now you will be able to write await operations in catch {} and finally {} blocks too. This will help many developers to do certain async operations when they encounter any exceptions or want to do async clean-ups in finally block.

 

Today in this blog post, we will discuss about this new feature. Don’t forget to read the other new features which I posted earlier. Links can be found in this post.


What’s new in C# 6.0? - Expression-bodied function

Did you explore the latest of C# 6.0? It brought another new feature called “Expression-bodied function members” which will allow you to write expression bodies for properties, methods etc. instead of writing statement blocks. Thus reducing the code.

 

Today in this post, we will discuss about the new feature “Expression-bodied function members”. Read more to learn about it. Don’t forget to share the feature links in your network.



What’s new in C# 6.0? - Exception Filters

C# 6.0 brought another great new feature named “Exception Filters” along with Visual Studio 2015 and .NET 4.6. If you didn’t try yet the preview version of the new IDE, go and grab it to get your hands dirty with the new features before it actually releases.

 

Today in this post, we will discuss about the new feature “Exception Filters”. Read more to learn about it. Don’t forget to share the feature links in your network.


What’s new in C# 6.0? - Null-conditional operators

C# 6.0 brought a set of most useful features with Visual Studio 2015 Preview and .NET 4.6. If you didn’t yet explore the features, check out the embedded links within this post to learn what’s coming with it. Download the preview to get your hands dirty before you use in production.

 

Today in this blog post, we will discuss about a new feature called “null-conditional operators”, which will actually improve your productivity. Let’s start with it.


What’s new in C# 6.0? - nameof Expressions

Visual Studio 2015, .NET 4.6 and C# 6.0 came up with lot many features. If you didn’t try the new IDE, download the preview version in a non-production environment to get your hands dirty with it. You will definitely love the new features.

 

Today in this post we will learn about another new feature called “nameof” expression which will surely solve most of the problems a developer faces when playing with properties and notifications.


What’s new in C# 6.0? - String Interpolation

Did you download the new Visual Studio 2015 IDE? If not, try the preview version before it actually releases and start improving your coding skills with the forthcoming IDE from Microsoft. Today we are going to explore another new feature of C# 6.0 coming with this release.

 

Let’s continue the series “What’s new in C# 6.0?” and show you what’s coming with C# 6.0 in terms of string interpolation/string concatenation.


What’s new in C# 6.0? - Setting default values to Auto Properties

Did you try the new Visual Studio 2015 and .NET 4.6? At the time of writing this blog post, it’s still in “Preview” release for the developers to try and report issues. .NET 4.6 comes with C# 6.0 with additional new features expected by developers to improve their coding productivity.

 

We are now going to describe the new features introduced in C# 6.0. Today in this blog post, we are going to see how to initialize/set default values to auto properties introduced in C# 6.0. Keep reading.



Windows Phone 8.1 Screen Orientation - What’s changed for #WPDev?

Windows Phone 8.1 SDK came with slight changes in it’s API and among them, few changes I already blogged earlier with a comparison to the previous SDK version. If you are looking for Screen Orientation changes, this post will help you.

 

In this post we are going to discuss “How to set the Supported Orientation and Screen Orientation in Windows Phone 8.1” with a comparison between the API changes.


How to create an Excel file using Silverlight and C#?

Sometime we need to export data as Excel report. This can be a plain Console application or a high end desktop and/or web application. You can of course do this using plugins/add-ons but what if you don’t have permission to use any 3rd party assemblies in your application?

 

Okay, in this post we are going to discuss this with help of a simple Silverlight & C# application but logic will be same in other platforms/technologies too. Keep reading.


Easy Form Validation using HTML5

Writing validation logic using JavaScript in a HTML form is not an easy way. We all have seen it in HTML4 but what’s new in HTML5? Will it provide us easy way to validate the form with writing a small piece of code only?

 

Today we will be talking about this validation stuffs in HTML5. But as usual, all the browsers don’t support all of them but a good start to think for future.


Visual Studio 2012 Tip: Improve Productivity using Quick Launch

“Quick Launch” is a new feature in Visual Studio 2012. If you used Productivity Power Tools in Visual Studio 2010, you might be familiar with this. In Visual Studio 2010 Productivity Tools, you can see this with the name “Quick Access”.

 

Now Microsoft integrated it as “Quick Launch” in Visual Studio 2012 and to use it, you don’t have to install any extensions. This 4th tip on Visual Studio 2012 will guide you to know more about this new feature. So, continue reading and let me know your feedback.

 
© 2008-2017 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top