WPF

WPF Architecture

WPF is a successor of Windows Forms. Earlier Windows Forms uses the Windows Graphics Device Interface (GDI+) for rendering any graphics, and drawing text. WPF is a new framework for developing rich Windows smart client applications that uses the DirectX technology behind the scene. WPF is resolution-independent because WPF uses …

WPF Architecture Read More
C# / WPF

WPF BackgroundWorker

To build more responsive WPF UI, we have to use multiple threads that can work in the background and update the UI when the work completed. But background threads can’t access the objects created in the STA. Then how can we update the UI when the background threads completed their …

WPF BackgroundWorker Read More
WPF

WPF Tab Control – Templates

WPF TabControl provides two templates property for changing the UI for Header and Content area. ItemTemplate ItemTemplate is used for changing the DataTemplate of Header section of TabItem. By default, Header DataTemplate call the ToString method of binded object to get the content of it. You can define your custom …

WPF Tab Control – Templates Read More
WPF

WPF Tab Control – Selection

TabControl provides two main properties for selection of Items. TabControl SelectedItem SelectedItem property is used for getting and setting the selected object of WPF TabControl. You bind item list into the ItemsSource property of TabControl and set the SelectedItem property to object which you want to selected first. Below is …

WPF Tab Control – Selection Read More
WPF

WPF Tab Control – FlowDirection

FlowDirection in WPF TabControl is used for setting the content flow direction of UI elements in header and content area.  FlowDirection is an enum which has only two values: LeftToRight By default, any TabControl set the FlowDirection property to LeftToRight. In this, all the UI controls in header and content area are …

WPF Tab Control – FlowDirection Read More
C#

C# Reflection Introduction

Reflection in C# is a big topic in itself. I’ll summarize a little list of what you can do with reflection. .NET assembly is a collection of types and its metadata. Metadata describes all the types and its structures like methods, fields, events, and properties. Metadata also defines all the attributes defined …

C# Reflection Introduction Read More