I was working on transforming a Windows Store app into an Universal app so that it worked not just for Windows Store but also for Windows Phone. When you do this two new projects are added to the solution. One of them is a special one, called shared project that you can use to keep…Read More App.xaml requires an ApplicationDefinition Build Action
In WPF, Silverlight and Windows Phone it is possible to render a visual object into a bitmap using the RenderTargetBitmap. This functionality, that I find pretty basic, was not available for Windows Store applications. Fortunately, Windows 8.1 provides that functionality for Windows Store applications too, through the same RenderTargetBitmap class. There are some limitations though:…Read More Render the screen of a Windows Store App to a bitmap in Windows 8.1
Partial classes are finally available to C++. Sort of. It’s not part of the new C++11 standard, it’s part of the C++/CX language developed by Microsoft for targeting WinRT on Windows 8. Partial classes mean that you can define a class spanned across several files. Why is this great? Because it allows developers and automatic…Read More C++, WinRT and Partial Classes
When you create a WPF application, the start-up window is by default one from the same project (by default called Window1.xaml).
< Application x:Class="WpfApplication1.App"
< Application.Resources >
< /Application.Resources >
< /Application >
But what if you want to use a window from another project (class library)? The pack URI scheme, used by WPF, allows you to identify and load files from: the current assembly a…Read More Reference a XAML From Another Project