Pages

Sunday 16 September 2012

Windows 8, XAML and Displaying Multiple Sized Items

One of the common layouts that you see in Windows Store applications is one that looks a little like the one below.
Windows 8, XAML and Displaying Multiple Sized Items


Want to get like this UI for your app, read more here

Referring to Package Files

When you’re working with a Windows 8 project in VS2012, you have some number of project files in your Solution Explorer. You have HTML files, CSS files, JavaScript files, images, and perhaps some XML or JSON or TXT files - something like that.

If, in the course of executing logic in your app, you need to access these files, there are a number of ways and you should know when you might use what and why… that’s as opposed to being incapacitated or stabbing in the dark.

Read More

Parsing CSV Files in WinRT

I am proud to announce that my CSV Parser for Windows RT is now available on MSDN Code Samples. Creating a CSV parser sounds like an easy task, but it’s the developer equivalent to quick sand. CSV stands for Comma Separted Values and, despite the name, the files in this "format" are often not fields separated by commas. Often, tabs or pipe characters are used instead. Additionally, parsing a CSV file is not as straightforward as it seems. One would think that it would be as simple as splitting the raw text first by line to get the records and then by delimiter to extract the fields.

Read More

Inspecting local and roaming settings for Windows 8 Store app

Inspecting local and roaming settings for Windows 8 Store app
ApplicationDataContainer class supports saving of complex hierarchies of local and roaming settings. Sometimes there is a need to verify saved values but unfortunately Windows 8 development toolset doesn’t include any settings inspector. This post describes a method for inspecting settings manually.

Application settings are stored in C:\Users\<user_name>\AppData\Local\Packages\<package>\Settings\settings.dat. settings.dat is a Windows NT registry file (REGF) and includes local and roaming settings. This file format, REGF, also known as Registry Hive File, is supported by Registry Editor.

To open settings file, close your app and open Registry Editor. Than select HKEY_LOCAL_MACHINE or HKEY_USER and open Load Hive dialog from File menu.

Read More

NFC on the Windows 8 Platform

NFC on the Windows 8 PlatformThe Proximity APIs enable you to create NFC apps for the Windows 8 platform. Designed to be easy to use and streamlined for the most common use cases, the APIs allow integrating powerful features into your apps in a very short time.

At the NFC Congress in Hagenberg, Austria, we’ve just presented the first overview of those APIs during our Developer Workshop that was opening the conference.

Read More

WrapPanel for Windows 8 WinRT

Out of the box, there's no WrapPanel available for WinRT. There's the VariableSizedWrapGrid, which you can use. But it doesn't work well with items that have different sized. Each item in the grid gets sizes based on the dimensions of the first item. You can see this behaviour in action here:

Searching for a good WrapPanel, I found one for Silverlight 2. Silverlight 2 did not have a native WrapPanel, so an open source WrapPanel was created by "Ineir":

Read More
Web Informer Button