Microsoft.HockeyApp.HockeyClientExtensionsWP81.ShowFeedback C# (CSharp) Method

ShowFeedback() public static method

Invoke this method to navigate to the feedback UI where a user can send you a message including image attachments over the HockeyApp feedback system. Make sure to add a call to HockeyClient.Current.HandleReactivationOfFeedbackFilePicker(..) to your App's OnActivated() method to allow for resuming the process after PickFileAndContinue..
public static ShowFeedback ( this @this, string initialUsername = null, string initialEmail = null ) : void
@this this
initialUsername string [Optional] Username to prefill the name field
initialEmail string [Optional] Email to prefill the email field
return void
        public static void ShowFeedback(this IHockeyClient @this, string initialUsername = null, string initialEmail = null)
        {
            HockeyClient.Current.AsInternal().CheckForInitialization();

            dynamic pars = new DynamicNavigationParameters();
            pars.IsCallFromApp = true;
            FeedbackManager.Current.InitialEmail = initialEmail;
            FeedbackManager.Current.InitialUsername = initialUsername;
            var frame = Window.Current.Content as Frame;
            frame.Navigate(typeof(FeedbackMainPage), pars);
        }