internal void RaiseTrustedEvent(RoutedEventArgs args) { if (args == null) { throw new ArgumentNullException("args"); } // Try/finally to ensure that UserInitiated bit is cleared. args.MarkAsUserInitiated(); try { UIElement.RaiseEventImpl(this, args); } finally { // Clear the bit - just to guarantee it's not used again args.ClearUserInitiated(); } }