Skip to content

Commit

Permalink
Add ViewAppearing event
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Risi authored and Timothy Risi committed Apr 11, 2014
1 parent 6dfe7f6 commit 98372d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MonoTouch.Dialog/DialogViewController.cs
Expand Up @@ -565,6 +565,8 @@ public virtual RefreshTableHeaderView MakeRefreshTableHeaderView (RectangleF rec
return new RefreshTableHeaderView (rect);
}

public event EventHandler ViewAppearing;

public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
Expand All @@ -586,6 +588,9 @@ public override void ViewWillAppear (bool animated)
tableView.ReloadData ();
dirty = false;
}

if (ViewAppearing != null)
ViewAppearing (this, EventArgs.Empty);
}

public bool Pushing {
Expand Down

0 comments on commit 98372d7

Please sign in to comment.