After creating default MVC application in Visual Studio there is a default layout file has been added in shared folder under views having name _Layout.cshtml. This file is used to provide consistent look on all of the pages havin...
Saturday, August 30, 2014
Monday, April 14, 2014
StackPanel Overview in WPF
Layouts in WPF
WPF layout, a mostly used component of an application, is basically used to arranging controls on fixed pixels. Users can not resize the places which are placed in these layouts. There are five built-in panels i.e...
Wednesday, August 28, 2013
How to Design Better UI: Border Control in WPF
Whenever we use a control in our WPF window, it feels a simple look in our design view. Border control is used to draw a border around other control. Borders generally play an important role to generate a better UI for the applic...
Saturday, August 17, 2013
WPF: Alignments of Elements
In earlier post we have learnt about size-related properties i.e. Height & Width and Margin & Padding. In this article we will focus on alignments of elements. How a children should be positioned within a parent’s allocated space...
Margin and Padding of Elements: WPF
In our previous post we have set Height and Width properties of an element, now we will set the next size related properties i.e. Margin and Padding. Margin controls how much extra space gets placed around the outside edges of th...
Friday, August 16, 2013
How to set Height and Width of Elements: WPF
Panels, also called parent elements, supports multiple child elements to be arranged in it. Parents decide about where to render and how much space the children get. WPF elements tend to size to their content that is to be done t...
Monday, August 12, 2013
Use Canvas Panel Control in WPF
Canvas is the basic panel. One can simply place children in a canvas with its attached properties left, top, right and bottom. One should have some knowledge of graph paper to use a canvas panel in WPF. This works as margin prope...
Grid Panel Overview in WPF
When a window is added to WPF project then grid is added by default having zero children. It is most often used panel in compare to dock panel, stack panel and other panels. Grid provides no of rows and columns which enables you ...
Sunday, August 11, 2013
DockPanel Overview in WPF
It is somewhat different with wrap panel. The name Dock panel is created by the word Dock. Dock element provides the user with a way of launching, switching between running applications. Dock panel provides easy docking of elemen...
WrapPanel Overview in WPF
Wrap panel is similar to stack panel, but while stack panel stacks its items, wrap panel wrap them to additional rows and columns according to provided space. It may be used when the list of items is to be shown. When we are not ...