private async void OnTogglePinnedCommandExecuted(object parameter)
        {
            var commandSender = parameter as FrameworkElement;

            await this.RefreshAsyncProperties();

            if (this.ExampleIsPinned)
            {
                var warningSuppression = PinnedItemsHelper.UnpinItem(this.example.Name, commandSender, Placement.Above);
            }
            else
            {
                Uri logo = new Uri(this.Control.PinnedImage);
                var warningSuppression = PinnedItemsHelper.PinItem(this.example.Name, this.example.HeaderText, this.example.HeaderText, logo, commandSender, Placement.Above);
            }
        }
 public async Task RefreshAsyncProperties()
 {
     this.ExampleIsPinned = await PinnedItemsHelper.ItemIsPinned(this.Example.Name);
 }