OnRender replacement?

15 views
Skip to first unread message

rudigrobler

unread,
Sep 1, 2010, 7:13:01 AM9/1/10
to WPF Disciples
What is the prefered why of porting a control that uses OnRender (in
WPF) too silverlight?

rudigrobler

unread,
Sep 1, 2010, 7:14:03 AM9/1/10
to WPF Disciples
typical example: Grid.ShowGridLines... In WPF I would draw the grid
lines by overriding OnRender... What should I use in Silverlight?

Peter O'Hanlon

unread,
Sep 1, 2010, 7:22:35 AM9/1/10
to wpf-di...@googlegroups.com
Can you achieve what you want with OnApplyTemplate? If not, you may need to hook into MeasureOverride and ArrangeOverride.
--
Peter O'Hanlon

Sacha Barber

unread,
Sep 1, 2010, 8:52:37 AM9/1/10
to wpf-di...@googlegroups.com
Can't you use a WritableBitmap?
--
Sacha Barber
sacha....@gmail.com
Reply all
Reply to author
Forward
0 new messages