Flowdocument in WPF

The FlowDocument object in WPF can be thought of as a document with contents that can take up/flow to use the available space in the control. The FlowDocument shown below contains controls such as Paragraph, Table, List, Figure and Floater along with other UI elements. <FlowDocument FontFamily="Arial" FontSize="12" Background="Lime" Foreground=" Black" >   <Paragraph>This is […]
Continue reading…

Enjoyed this post? Share it!

 
 

Bulletdecorator in WPF

The BulletDecorator control is used to display a single item and bullet in a bulleted list in WPF. The following xaml code shows how to draw a diamond shaped BulletDecorator next to a textblock. <BulletDecorator> <BulletDecorator.Bullet> <Polygon Margin=” 2, 0, 0, 0” Points=”0, 5 5, 0 10, 5 5, 10” Fill=” Blue” /> </BulletDecorator.Bullet> <TextBlock […]
Continue reading…

Enjoyed this post? Share it!

 
 

Image control in WPF

The image control is used to display various formats of images in WPF applications. The basic steps include adding the image control to the window/page and setting its source property. To adjust the dimensions of the image we can set the stretch and stretchdirection properties. Stretch can be set to the following properties: None – […]
Continue reading…

Enjoyed this post? Share it!