WPF

How to fix “WPF Application hangs” Problem in Windows 7

I have a  WPF based application which was working fine on my “Windows 7” laptop till last night.Today when i tried to launch ,it just hanged and becomes non responsive .There is no information regarding any exception or error, except an “Application hang” event in the event Viewer. After a whole day of failed attempts, …

How to fix “WPF Application hangs” Problem in Windows 7 Read More »

How To Merge Two FlowDocument Objects Using C# Code[WPF]

As part of one of requirements in our application we had to appended a FlowDocument objects to another FlowDocument object. The requirement looked very simple and I tried the following which loops through the Blocks of source FlowDocument and appends them to target FlowDocument object. sourceDocument = (FlowDocument)XamlReader.Load(memoryStream); // foreach (Block aBlock in sourceDocument.Blocks) { …

How To Merge Two FlowDocument Objects Using C# Code[WPF] Read More »