Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Windows Phone 7 ala VS Express 2010 Frage

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

ich habe eine Tik Tak Toe Applet in Java geschrieben und wollte es nun auch in .NET C# (VS10Express for Windows Phone 7) schreiben, nun frage ich almählich wieso keine der grundlegnsten Methoden gehen. Fehlen mir einfach nur die Bibliotheken? es geht um das ersetzen des Button Labels, da meint er er würde "Text" nicht kennen. Hier der src:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

using System.Windows.Shapes;

using Microsoft.Phone.Controls;


namespace TikTakToe

{

    public partial class MainPage : PhoneApplicationPage

    {

        bool playerone = true;

        public MainPage()

        {

            InitializeComponent();


            SupportedOrientations = SupportedPageOrientation.Portrait; //| SupportedPageOrientation.Landscape;


        }


        private void button1_Click(object sender, RoutedEventArgs e)

        {   

            if (playerone == true) {

                button1.[U][COLOR="Red"]Text[/COLOR][/U] = "X";

            }

            else if (playerone == false) { 


            }

        }

    }

}

Bearbeitet von bluewhile

GELÖST: einfach

button1.Content = "X";

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.