I'm talking WPF... I have a panel (with virtualization). The panel has a custom measure and arrange implementation. I want the panel background to look like Outlook calendar in the day view (with the lines for each amount of time) any suggestions?
views:
21answers:
1
+1
A:
I think the simplest way is to override the panel's OnRender and draw the lines (or place a new custom control behind the panel that will draw the lines).
Nir
2010-07-08 07:07:59
do you have a sample? i how do i draw this lines?
Chen Kinnrot
2010-08-23 06:48:39
@Chen Kinnrot - you already override MeasureOverride and ArrangeOverride, so you can also override OnRender, OnRender gets a DrawingContext as a parameter and the DrawinContext has all sort of useful methods like DrawLine and DrawText you can use to create the outlook-like background
Nir
2010-08-23 11:15:18