Yorum yap
- İlk önce aşağıdaki referans kodunu ekliyoruz.
- Sonra yorum adında bir async void bir metot yazıyoruz.
using Windows.ApplicationModel.Store;
private async void yorum()
{
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + CurrentApp.AppId));
}
{
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + CurrentApp.AppId));
}
- Sonra buttonun click eventine yorum metotunu çağırıyoruz.
private void HyperlinkButton_Click_1(object sender, RoutedEventArgs e)
{
yorum();
}
{
yorum();
}
Mail at
- İlk önce aşağıdaki referans kodunu ekliyoruz.
using Windows.ApplicationModel.Email;
- İlk önce mail adında bir async void bir metot yazıyoruz.
private async void mail()
{
EmailRecipient alici = new EmailRecipient() { Address = "mail@yaz.com" };
EmailMessage mail = new EmailMessage();
mail.Subject = "Başlık";
mail.To.Add(alici);
}
{
EmailRecipient alici = new EmailRecipient() { Address = "mail@yaz.com" };
EmailMessage mail = new EmailMessage();
mail.Subject = "Başlık";
mail.To.Add(alici);
}
- Sonra buttonun click eventine yorum metotunu çağırıyoruz.
private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
{
mail();
}
{
mail();
}
Hiç yorum yok :
Yorum Gönder