CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Posts
    180

    How do you send a refresh message to a WPF grid or canvas?

    How do you send a refresh message to a WPF grid or canvas?

    In other words, I have noticed while in debug mode, I can write code that sends a line to the display and then, if that line is not right, I can adjust it -- but the previous line is still there.
    Now, the code I am writing sends information to the display based on what the user clicks. So this must mean that the display is not refreshed each time a new set of lines and boxes and text goes to the grid or canvas in WPF.

    Using C# code, how do you send a refresh/repaint message to a WPF grid or canvas?

    If I have drawn lines on a canvas in my C# code (instead of in the XAML code) how do I remove them?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How do you send a refresh message to a WPF grid or canvas?

    In general, if you are using data binding correctly it isn't required to have to 'refresh' anything.

    Can you zip up a sample of what your approach is? We might be able to offer something different.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured