• WPF Customized Find Control for FlowDocuments

    There are a couple of controls in the WPF that can be used to load and display FlowDocuments. These controls have a Find feature that allows the users to find a word or a phrase in the FlowDocuments. Although, the find feature is very nice, but unfortunately, Microsoft defines it as an internal control and one can’t customize it. In this paper, I developed an out of the box Find control that is customizable and can be used anywhere.

    ast month, me and my colleague (Afshin Khashei) worked on a …

  • A Framework to Animate WPF and Silverlight Pages Similar to the PowerPoint Slides

    WPF and Silverlight have many things to say in terms of features and capabilities, but unlike many Microsoft products, they are not some kind of Rapid Application Development (RAD) framework. In this paper, I developed a plug & play framework to animate page entrance and page exit in the WPF and Silverlight applications similar to the Powerpoint slides. The advantages of the framework are plug & play deployment and its capability of extensions. In fact, the framework can be used in a RAD manner. …

  • WPF Report Engine, Part 3

    The story began by posing the problem of printing a ListView in such a way that the printing process takes into account the pagination. Although, WPF has the capability of printing any Visual, however it does nothing about pagination. It means if the visual exceeds one page, the over headed area would be excluded from the printed version. In the first part of this series, I showed an approach for the problem using custom DocumentPaginator. DocumentPaginator provides an abstract base class that …

  • WPF Report Engine, Part 2

    In the previous paper, I showed the process of printing a ListView using the WPF printing features. Unlike the other approaches that used FlowDocuments to print data, my approach used the ListView to print data. It gave us the flexibility to use all of the WPF controls and we can implement custom Views to print data. The main structure of the generated reports in the previous implementation was as follows:

    In fact, the main task in the previous paper was dividing the main data source to …

  • WPF Report Engine, Part 1

    Most developers hate the process of generating printed reports. Although, there are well known report engines like Active Reports, Crystal Reports and rdlc Reports, but each report engine has its own issues. The main issue is the fact that developers have to work with different environments to generate reports. In many situations, the developer has to implement two interfaces; one for viewing & editing data in the application, one for printing. As you may know, WPF provides the ability to print …

  • WPF TreeView Control With Filtering of Nodes Based on Their Levels

    In this paper, I will demonstrate the process of implementing a new TreeView that provides an option to filter the nodes based on their levels. The new TreeView inherits from the Listbox and has good performance on large scale data. It is based on an idea of using custom ControlTemplate for the ListBoxItem and using ObservableCollection.

    Nobody can deny the fact that Microsoft made a big stride in the user interface technology by introducing the WPF platform. It provides better data binding, …

  • 1
  • 2