tags:

views:

21

answers:

1

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?

+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
do you have a sample? i how do i draw this lines?
Chen Kinnrot
@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