Click here to Skip to main content
15,884,892 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF DataGrid Column CellStyle at Runtime Pin
zaki19848-Apr-09 23:53
zaki19848-Apr-09 23:53 
AnswerRe: WPF DataGrid Column CellStyle at Runtime Pin
yogeshCJ2-Jun-10 23:44
yogeshCJ2-Jun-10 23:44 
Questionwhere is the best start line Pin
cppwxwidgetsss8-Apr-09 19:44
cppwxwidgetsss8-Apr-09 19:44 
AnswerRe: where is the best start line Pin
Feras Mazen Taleb8-Apr-09 20:27
Feras Mazen Taleb8-Apr-09 20:27 
AnswerRe: where is the best start line Pin
Mark Salsbery9-Apr-09 6:38
Mark Salsbery9-Apr-09 6:38 
QuestionAdd 'Command' property to derived control? Pin
David Veeneman8-Apr-09 9:04
David Veeneman8-Apr-09 9:04 
AnswerRe: Add 'Command' property to derived control? Pin
David Veeneman8-Apr-09 14:06
David Veeneman8-Apr-09 14:06 
QuestionWPF textbox, update problem. Mode: TwoWay Pin
marca2927-Apr-09 23:42
marca2927-Apr-09 23:42 
Hi,

I have a WPF textbox and I want to validate the text the user types i.e. only numbers are allowed. To do this I have set


<pre>Text="{Binding MobileNumber, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}</pre>

And the property is

<pre> public string MobileNumber {
get {
return mobileNumber;
}
set
{
if (AllowedPhoneNumberCharacter(value))
mobileNumber = value;
OnPropertyChanged("MobileNumber");
}
}</pre>

If the user types a character we came to <i>set </i> and after OnPropertyChanged("MobileNumber"); a call to <i>get </i>is made. But the textbox is not updated, why?

Example:

09876 :User types o phone number. OK
098767 :User adda a digit 7. OK
098767g :Not OK to add g. Now I want to update textbox with 098767.

Regards
Marc
AnswerRe: WPF textbox, update problem. Mode: TwoWay Pin
R2B210-Apr-09 5:31
R2B210-Apr-09 5:31 
Questionthat very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh7-Apr-09 21:30
Piyush Vardhan Singh7-Apr-09 21:30 
AnswerRe: that very confusing in virtual directory and MIME Type................ Pin
Mark Salsbery8-Apr-09 12:38
Mark Salsbery8-Apr-09 12:38 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh8-Apr-09 21:43
Piyush Vardhan Singh8-Apr-09 21:43 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Mark Salsbery9-Apr-09 6:33
Mark Salsbery9-Apr-09 6:33 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh9-Apr-09 19:45
Piyush Vardhan Singh9-Apr-09 19:45 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Mark Salsbery10-Apr-09 6:58
Mark Salsbery10-Apr-09 6:58 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh12-Apr-09 19:15
Piyush Vardhan Singh12-Apr-09 19:15 
GeneralRe: that very confusing in virtual directory and MIME Type................ Pin
Piyush Vardhan Singh13-Apr-09 5:58
Piyush Vardhan Singh13-Apr-09 5:58 
QuestionTextbox border curve Pin
Ravi Mori7-Apr-09 19:44
Ravi Mori7-Apr-09 19:44 
AnswerRe: Textbox border curve Pin
ABitSmart7-Apr-09 21:49
ABitSmart7-Apr-09 21:49 
GeneralRe: Textbox border curve Pin
Ravi Mori7-Apr-09 21:57
Ravi Mori7-Apr-09 21:57 
GeneralRe: Textbox border curve Pin
ABitSmart8-Apr-09 0:37
ABitSmart8-Apr-09 0:37 
QuestionSnapshot of a Form in a thumbnail Pin
Graeme_Grant6-Apr-09 23:57
mvaGraeme_Grant6-Apr-09 23:57 
AnswerRe: Snapshot of a Form in a thumbnail Pin
Christian Graus7-Apr-09 13:51
protectorChristian Graus7-Apr-09 13:51 
GeneralRe: Snapshot of a Form in a thumbnail Pin
Graeme_Grant7-Apr-09 23:30
mvaGraeme_Grant7-Apr-09 23:30 
AnswerRe: Snapshot of a Form in a thumbnail Pin
Eslam Afifi7-Apr-09 15:56
Eslam Afifi7-Apr-09 15:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.