Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

message uwp c#

        private async void ShowMessage(string str)
        {
            var dialog = new MessageDialog(str);
            await dialog.ShowAsync();
        }
Comment

message uwp c#


using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Windows.UI.Popups;
using System;

namespace App1
{
    /// <summary>   
    /// An empty page that can be used on its own or navigated to within a Frame.   
    /// </summary>   
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
        }

        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new MessageDialog("Hi!");
            await dialog.ShowAsync();
        }
    }
}

Comment

PREVIOUS NEXT
Code Example
Csharp :: get logged in user name c# 
Csharp :: unity change material 
Csharp :: destroy gameobject unity 
Csharp :: c# read char 
Csharp :: set particle system start colour + random between two 
Csharp :: how to reference function in unity 
Csharp :: how to check if a value is inside an array c# 
Csharp :: unity keycode 
Csharp :: c# get pixel color from image 
Csharp :: what is data encapsulation c# 
Csharp :: how to create an array in c# 
Csharp :: changing euler angles unity 
Csharp :: c# encrypt decrypt string 
Csharp :: clear textbox winform 
Csharp :: how to add a list to observablecollection in c# 
Csharp :: reverse for loop unity 
Csharp :: unity change particle system sorting layer via script 
Csharp :: c# remove from list in foreach 
Csharp :: C# .net core convert to int round up 
Csharp :: convert text to number c# 
Csharp :: regular expression for email in c# 
Csharp :: c# socket listen on port 
Csharp :: c# read binary file 
Csharp :: hashing a file in C# 
Csharp :: covert char[] to string C# 
Csharp :: void ontriggerenter not working 
Csharp :: c# append text to file 
Csharp :: c# get getter set setter method 
Csharp :: c# unity detect any keyboard input 
Csharp :: implement custom string to datetime convert net core 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =