Browse by Tags

All Tags » c# (RSS)
Forcing a visual tree repaint in WPF
So what does InvalidateVisual do? The SDK documentation says it " invalidates the rendering of the element, and forces a complete new layout pass. OnRender is called after the layout cycle is completed" . Just what I needed when it was time to implement...

Posted by smash | with no comments

Filed under: , ,

building a full trust XBAP app
After reading this post by Karsten, I created a WPF XBAP project that displays the ClassicReports designer on a Frame as shown below. < Page x:Class ="IApp.Page3" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

Posted by smash | with no comments

Filed under: , , , ,

XAML renders differently
I was reading with great interest Keith's posts about creating a color chart in ASP.NET and decided to roll out a similar WPF application in pure code first - in Boo ofcourse - and in XAML second. The former will be a Windows application and the latter...

Posted by smash | 3 comment(s)

Filed under: , , , ,

implementing undo and redo
for a command to be undone, we need to store it somewhere. to facilitate this, we need to create a class for every command and we also need to create a class that will process and then store these commands upon request. interface ICommand { void Execute...

Posted by smash | 9 comment(s)

Filed under: , ,

making a WYSIWYG report designer .NET control
the report designer is made up of three elements, a listBox that contains the report controls, a propertyGrid where we edit control properties, and the bandContainer. Figure1 shows the reportDesigner control at design time. Figure2 shows the designer...

Posted by smash | with no comments

Filed under: ,