Sign in to follow this  
LarsKJ

[SlimDX] How to scroll a Direct2D scene?

Recommended Posts

I have built a datagrid with SlimDX and Direct2D/DirectWrite that I am trying to make scrolling smoother and faster.

When scrolling I would like to avoid repainting the entire scene and only push a certain area of the existing scene upwards or downwards, and then only paint the new rows. I don't want to move the entire scene as the header should remain fix.

The part that I do not know how to handle is how to make a rectangle and move it.

Anyone has a suggestion that is performant.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this