Saturday, October 2, 2010
Gantt for Silverlight and WPF
The GTP.NET.SL enables you to easily add time dependant stuff in the background or foreground of your TimeItemArea.
As our Gantt is flexible enough to integrate with any grid or treeview we need a generic way to help you do draw things in the area that belongs to the Grid or Tree but resides under the DateScaler:
We did this by exposing two events:
You can from the internal code above see that the exact same way that we implement the TodayLine and the VerticalDayStripes we also call the OnDrawBackground and OnDrawForeground events.
This is how we implement the today line:
Notice that the call to DateScaler.TimeToPixel easily helps anyone to convert between time and position – this call – that is very effective and the heart of our Gantt implementation – ensures that the TodayLine is positioned on the exact spot where the user perceives NOW to be.
Also notice that we check the ScheduleMode setting to decide in what direction to draw the todayline.
This is the sample implementation of the OnDrawForeground event:
The difference between Foreground and Background is achieved with Canvas.ZIndex settings and enables you to get effects like this:
Where the the blue ellipse goes above the TimeItem and the green ellipse goes below the TimeItem.
Great tips for constructing a gantt for silverlight. I've been looking for something like this, hopefully I can get it to work on my application.
web design perth
A very interesting topic that you have discussed here, definitely, your tips help me out to reach my passion. I would love to see more updates. Thank you, admin.
dot net training institutes in chennai
dotnet training in chennai
This could be one of the most useful blogs I have ever come across on this technology. I am a newbie to this technology. Great work admin.
Selenium Course in Chennai
Selenium Courses in Chennai
It is exceptionally valuable data. It will enhance my insight in Selenium. Much thanks to you for sharing this marvelous site.
Selenium Training in Chennai | Selenium Training | Selenium Course in Chennai | Selenium Training Institute in Chennai
Really great info you provide here
best orthopedic hospital jaipur
best orthopedic doctor in jaipur
Sports injury treatment in jaipur
joint replacement hospital in jaipur
knee replacement doctor in jaipur
The ankle is another joint that can be injured as a result of the demanding quick-change motions found in many sports. Ankle sprains are common, and they are caused by a partially or completely torn ligament. Damaged ligaments in the ankle, similar to knee injuries, can cause increased strain on other ligaments and structures in the ankle, increasing the risk of further injury if left untreated. Your sports injury surgeon in Gurgaon can examine the extent of the damage and provide treatment or surgical intervention to reduce the risk of long-term damage if you seek prompt orthopedic care for an ankle injury.
Subscribe to Post Comments [Atom]
Subscribe to Posts [Atom]