943,193 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 740
  • C# RSS
Jun 8th, 2009
0

WPF C# .text not working

Expand Post »
Ok I am try to make a simple calculator, and it looks like every thing if working find, but my btn.Text isn't is giving me the Error

'System.Windows.Controls.Button' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'System.Windows.Controls.Button' could be found (are you missing a using directive or an assembly reference?)

I am not sure what I am supposed to do here.

TBoxMain.Text+= btn.Text;
I am currently using

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections;
using System.ComponentModel;

please help,
thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Blizard6 is offline Offline
4 posts
since Jun 2009
Jun 8th, 2009
0

Re: WPF C# .text not working

NM,

I realized I am a Idiot/noob and WPF doesn't use .text it uses .Content.

lol It is so much fun learning a new language. *cry*
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Blizard6 is offline Offline
4 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Text Comparer
Next Thread in C# Forum Timeline: WPF Class Call





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC