private void ToggleAppBarButton(bool showPinButton)
{
if (showPinButton)
{
this.PinUnPinCommandButton.Label = "Pin to Start";
this.PinUnPinCommandButton.Icon = new SymbolIcon(Symbol.Pin);
}
else
{
this.PinUnPinCommandButton.Label = "Unpin from Start";
this.PinUnPinCommandButton.Icon = new SymbolIcon(Symbol.UnPin);
}
this.PinUnPinCommandButton.UpdateLayout();
}