• What can I say?

    Using WS-Federation with Windows Store and .NET rich clients

    • 0 Comments
    In general, rich client apps use OAuth flow to obtain authorization tokens to a web service. However, that flow may not be available from the authentication servers. In the following I am using an alternative approach: WS-Federation, well supported by...
  • What can I say?

    Using Azure Queues to schedule work items

    • 2 Comments
    Attached sample shows how to use Azure Storage Queues to schedule processing of an item for a later point in time. It solves a common problem of scaling out a process based on iterating over a collection and processing some items based on time specific...
  • What can I say?

    OAuth2 with ADFS and WAAD using C#

    • 0 Comments
    Overview The following summarizes the process of creating an end-to-end OAuth2 sample using ADFS 2.1 (or Windows Azure Active Directory). Web site setup Use the VS.NET 2012 ASP.NET MVC 4 WebAPI project template to setup your server project. ...
  • What can I say?

    Serializing SAML tokens using WIF 4.5

    • 0 Comments
    Recently, I had to find a way to serialize SAML tokens received by my application so that they could be saved as a session variable and reused. This allowed the application, running behind a load balancer to not use cookies (and security context) or to...
  • What can I say?

    Migrating C# DLL Library to WinRT Component project

    • 0 Comments
    In order to make the functionality of your C# or VB.NET class library (DLL) available to other WinRT languages (C++, JavaScript) you need to convert it to a WinRT component ( http://msdn.microsoft.com/en-us/library/windows/apps/br230301.aspx). The referenced...
  • What can I say?

    Some experience migrating Silverlight graphical apps to Windows 8 Store

    • 0 Comments
    Recently, I had the opportunity to migrate a Silverlight application to Windows 8 Store. The application is highly graphical, showing a variety of images or symbols representing real-world objects and allowing the user to interact with these objects and...
  • What can I say?

    WPF Data Binding error 2: Cannot find governing FrameworkElement...

    • 0 Comments
    I got this error when trying to bind to a collection element, which was not derived from the FrameworkElement (just DependencyObject) and was thus not inheriting it's container's DataContext, e.g. <Grid> <Grid.DataContext> <loc:MyViewModel...
  • What can I say?

    Sticky Azure WCF service roles

    • 0 Comments
    In general, sticky connectivity should be avoided when creating Azure-based services. However, there are situations, e.g. migration of a legacy application which relies on stickiness where it would be good to be able to support it. Here is a solution...
  • What can I say?

    Azure: post-deployment updates

    • 1 Comments
    Here are some techniques to dynamically modify a running Azure application. They all rely on using blob storage as source of modification and presume that the application was originally written to use these changes: 1. New/changed Silverlight applications...
  • What can I say?

    Dynamic branding for Azure web-roles

    • 0 Comments
    Here is an approach to providing ASP.NET server-side customization data post-deployment in Azure. It is particularly applicable to multi-tenant solutions, where individual users may need to be served pages using different master pages, user controls,...
  • What can I say?

    Silverlight and basic authentication

    • 0 Comments
    Silverlight client does not support TransportCredentialOnly to enable Basic authentication. Here is some code to add the basic authentication http header to a standard Silverlight WCF proxy: ServiceReference1.ServiceClient svc = new ServiceReference1...
  • What can I say?

    Custom line caps in WPF

    • 0 Comments
    The attached project contains a custom element (FrameworkElement-derived), which allows definition of line paths (straight lines, Bezier curves, etc.) with custom-defined line caps. The following graphic contains two lines: a straight line with an arrow...
  • What can I say?

    Displaying hierarchical data in the DataGrid

    • 10 Comments
    The attached project shows how to display data which is both tabular and hierarchical in nature in the Silverlight (or WPF) DataGrid. Employee list is an example of such data, where each employee is described using the same set of data column but there...
  • What can I say?

    WPF and Silverlight working together presentation

    • 0 Comments
    I recently gave a presentation to a number of ISV regarding use of WPF and Silverlight 2 for developing applications that can be deployed to both the desktop and the web. The attached presention and demos show the main similarities and differences between...
  • What can I say?

    Custom data and dynamic templates in WPF

    • 3 Comments
    This blog describes how TemplateSelector in WPF can be used to dynamically modify contents of the UI. This is particularly useful in a common scenario many ISV's need to support: ability of 3rd parties and users to extend the ISV's data model with their...
  • What can I say?

    Editable ListBox using template

    • 5 Comments
    WPF Templates are useful for defining common themes and styles. They can also be used to extend the functionality of controls. Following is an example of a ListBoxItem template, which makes individual items in a listbox in-place editable (provided the...
  • What can I say?

    A role-based approach to architecting WPF (and Silverlight 2?) applications

    • 1 Comments
    Karsten Januszewski and Jaime Rodriguez in The New Iteration ( http://windowsclient.net/wpf/white-papers/thenewiteration.aspx ) point out the ability of WPF infrastructure (framework and tools) to allow for clear separation between the roles of designers...
Page 1 of 1 (17 items)