|
// Copyright Christophe Bertrand.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Test_UniversalSerializer.Resources;
namespace Test_UniversalSerializer
{
public partial class MainPage : PhoneApplicationPage
{
// Constructeur
public MainPage()
{
InitializeComponent();
Tests.RunTests(this);
// Exemple de code pour la localisation d'ApplicationBar
//BuildLocalizedApplicationBar();
}
// Exemple de code pour la conception d'une ApplicationBar localisée
//private void BuildLocalizedApplicationBar()
//{
// // Définit l'ApplicationBar de la page sur une nouvelle instance d'ApplicationBar.
// ApplicationBar = new ApplicationBar();
// // Crée un bouton et définit la valeur du texte sur la chaîne localisée issue d'AppResources.
// ApplicationBarIconButton appBarButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.add.rest.png", UriKind.Relative));
// appBarButton.Text = AppResources.AppBarButtonText;
// ApplicationBar.Buttons.Add(appBarButton);
// // Crée un nouvel élément de menu avec la chaîne localisée d'AppResources.
// ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText);
// ApplicationBar.MenuItems.Add(appBarMenuItem);
//}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Hi !
I made my first program on a Sinclair ZX-81.
Since that day, I have the virus of computers.
Here is my website:
https://chrisbertrand.net
And my blog:
https://chrisbertrandprogramer.wordpress.com/