Skip to main content

Posts

Generate QR Code in WPF

Introduction In my previous two blogs, we have discussed how to display generate and display various barcodes on the web page. In this blog, we are going to demonstrate how to Generate QR Code in the WPF application. Getting Started Here in the demonstration Generate QR Code in WPF , will generate QR code using third party library as there is not inbuilt library provided by Microsoft to generate QR code and will display in WPF image control, In the below, we will see the steps to display QR Code. As I mentioned in the above paragraph that there is no inbuild library provided by Microsoft to generate QR code, I have taken the help of the ZXing library which is a third party free library and available Nuget. This library provides various options to generate barcodes and QR Code from the user-friendly text. Generate QR Code in WPF Here are the steps to generate QR code and let's follow the steps to complete demonstrations. Demonstration:- Generate QR Code Open visual stud
Recent posts

Generate Barcode in WPF

Introduction In my previous two blogs, we have discussed how to display generate and display various barcodes on the web page. In this blog, we are going to demonstrate how to Generate Barcode in the WPF application. Getting Started Here in the demonstration Generate Barcode in WPF , will generate Bar code using third party library as there is not inbuilt library provided by Microsoft to generate Bar code and will display in WPF image control, In the below, we will see the steps to display Barcode. As I mentioned in the above paragraph that there is no inbuild library provided by Microsoft to generate Bar code, I have taken the help of the ZXing library which is a third party free library and available Nuget. This library provides various options to generate barcodes and Barcode from the user-friendly text. Generate Barcode in WPF Here are the steps to generate Bar code and let's follow the steps to complete demonstrations. Demonstration:- Generate Barcode Open visual

Bootstrapper for Prism Application

Introduction This article explains to create a bootstrapper for your prism application using WPF, it contains a little explanation about bootstrapper such as definition, how it works, etc. before going forward lets understanding about bootstrapper definition, how it works and relation with prism. What is Bootstrapper A bootstrapper is a class that is responsible for the initialization of an application built using the Prism Library. By using a bootstrapper, you have more control over how the Prism Library components are wired up to your application. The Prism Library includes a default abstract Bootstrapper base class that can be specialized for use with any container. Many of the methods on the bootstrapper classes are virtual methods. You can override these methods as appropriate in your own custom bootstrapper implementation. Getting Started Creating bootstrapper for prism application easy very easy, just need to follow some steps to create and use bootstrapper. Here I have divid

Creating Application in Prism

Introduction This article explains an illustration of creating a windows application in Prism Library(WPF Prism). The solution includes recommended practices and techniques and is the basis for the procedures in Prism. This illustration created in the Visual Studio 2012, It can also developed in the visual studio 2008 and 2010, because wpf supports from .net framework 3.5 to latest version. Microsoft.Practices.Prism.dll. This assembly contains the implementation of the Prism Library core components such as modularity, logging services, communication services, and definitions for several core interfaces. It also contains the implementation of Prism Library components that target WPF applications, including commands, regions, and events. Microsoft.Practices.Prism.UnityExtensions.dll. This assembly contains base and utility classes you can reuse in applications built with the Prism Library that consume the Unity Application Block. For example, it contains a bootstrapper base class

WPF Dependency Properties

Introduction This article describes WPF dependency properties with example and it also explains how dependency properties are different from normal CLR properties. Getting Started A Dependency Property is a property whose value depends on the external sources, such as animation, data binding, styles, or visual tree inheritance. The Dependence property extends the CLR property, which means it provides some external service to CLR property like it is providing notification when the property has changed, data binding and styling. A class which defines a dependency property must be inherited from the DependencyObject class. Many of the UI controls class which are used in XAML are derived from the DependencyObject class and they support dependency properties, e.g. Button class supports the IsMouseOver dependency property. Need of Dependency Property Dependency Properties offer a lot of functionalities that you won’t get by using a CLR property. We can use Dependency property for the fol

WPF Control Template

Introduction Control Template in WPF takes care of the visual appearance of WPF control, this article describes and demonstrates how control template is used in WPF. Here I have taken a button control as an example and customized the appearance of the button control using Control Template . WPF Control Template defines the visual appearance and visual behavior of WPF control, for example, a button controller has a shape and it changes background color when mouse clicks and hovers, Every WPF controls associates by its default Template which provides default appearance of control and behavior, using WPF Control Template the visual appearance and visual behavior of WPF control can be customized and you can create your own control as well using WPF Control Template . There are two ways to implement WPF control template that is Styling and Templating. The Styling and Templating model provides you with such great flexibility that in many cases you do not need to write your own con

WPF Style

Introduction Styles in WPF is the most one of the important feature, because of the style we also prefer WPF over normal Win Form. This article explains details about WPF styles , type of styles and various ways of defining styles. Getting Started In WPF style is used to design a WPF control like background color, border color etc. it enables the sharing of properties , resources , and event handlers between instances of a type. Normally a style is an unique object which is used to style WPF controls. Each WPF element contains a number of Dependency Properties. A dependency property defines the basic behavior and look of the control in UI. Styles maintains a collection of Setters which enumerates a DependencyProperty with its value, thus you can say a style is a collection of DependencyProperty settings which when applied on a Target will change the behavior of it. There are mainly two way to creating style in WPF that are Behind code and XAML Code Style in Code Behind