user2631662
user2631662

Reputation: 855

How to refresh a page or window in wpf?

I cannot seem to refresh or reload a parent window or page in wpf. I have tried the following:

private void btClear1_Click(object sender, RoutedEventArgs e)
{
     //this.LayoutUpdate();
     //Refresh();
     //this.NavigationService.Refresh(); 
}

Upvotes: 3

Views: 17000

Answers (1)

Pavel Tupitsyn
Pavel Tupitsyn

Reputation: 8986

You can achieve complete layout/render pass with InvalidateVisual call (http://msdn.microsoft.com/en-us/library/system.windows.uielement.invalidatevisual.aspx)

Upvotes: 2

Related Questions