Thursday, April 22, 2010
Marking up certain days in the datescaler, Silverlight and WPF
Implement the event OnTextOutOverride, look at the code below where I mark up the 5:th of March, make Sundays red, and append “a.d” behind each year
Wednesday, April 21, 2010
In GTP.NET for Silverlight and WPF, how to stop a move to avoid collision
This is one way to stop a move that will cause a collision:
Stealing the scrollbar
If you want to have the scrollbar to the right of the time item area, you can achieve with very little effort.
In this samples I added some panels and gave them color so that they would be visible. The yellow panel to the right is were I want my scrollbar.
And the code that does the trick:
Filter away exceptions
In Eco the OCL parser uses exceptions to abort operations that fails. Since the different levels in the parsing logic catch this exception, acts on it and then throws it again, you normally get not 1 but 5 halts for every error discovered (it halts on throw).
I have started to mask away these messages by adding the exception to the visual studio exception dialog like this.
Sunday, April 18, 2010
Better Silverlight and WPF performance
I been working on performance for the GTP.NET.SL products for Silverlight and WPF.
I also took the Microsoft FamilyShow sample as a base and created some new WPF samples:
This sample also show skinning by the use of DynamicResources:
The main performance gain was by avoiding to resize UIElements that will not currently show on screen.
Monday, April 12, 2010
This blog is now located at http://theblog.plexityhide.com/. You will be automatically redirected in 30 seconds, or you may click here. For feed subscribers, please update your feed subscriptions to http://theblog.plexityhide.com/feeds/posts/default.
Subscribe to Posts [Atom]