Click here to Skip to main content
15,900,973 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: how to change Combobox DropDownStyle ? Pin
Abhinav S29-Feb-12 22:40
Abhinav S29-Feb-12 22:40 
GeneralRe: how to change Combobox DropDownStyle ? Pin
gshhar29-Feb-12 23:23
gshhar29-Feb-12 23:23 
QuestionScreen-Workareas of multiple Monitors Pin
Mr.PoorEnglish29-Feb-12 2:05
Mr.PoorEnglish29-Feb-12 2:05 
QuestionHow to access data format errors Pin
Bernhard Hiller29-Feb-12 1:05
Bernhard Hiller29-Feb-12 1:05 
AnswerRe: How to access data format errors Pin
Abhinav S29-Feb-12 1:17
Abhinav S29-Feb-12 1:17 
GeneralRe: How to access data format errors Pin
Bernhard Hiller29-Feb-12 3:32
Bernhard Hiller29-Feb-12 3:32 
GeneralRe: How to access data format errors Pin
Pete O'Hanlon29-Feb-12 4:00
mvePete O'Hanlon29-Feb-12 4:00 
GeneralRe: How to access data format errors Pin
Bernhard Hiller29-Feb-12 19:32
Bernhard Hiller29-Feb-12 19:32 
Also the Attached Behavior tries to prevent the problem, not to solve it after it has come to existence. At least, the framework you suggested (thanks for the link) covers copy&paste as an input method.
But still the problem that the UI contains "illegal" input exists:
It could be appropriate to explicitly allow entering wrong input. E.g. when using a barcode reader, I would not silently filter out unwanted characters, I'd rather tell the user that something wrong happened, e.g. he scanned from the wrong label.
And there might be input methods which do not use keyboard or copy&paste. Imagine an assistive technology which sends a WM_SETTEXT to the textbox...
There might be cases where preventing the wrong input by keyboard might be too complicated, i.e. here the wrong input would be possible, and the error happens when WPF tries to convert from string to the required datatype. A custom converter (IValueConverter) cannot directly talk with the ViewModel, exceptions would be handled by the WPF databinding classes.
Currently my impression is that I should change some properties in my ViewModel to string, since a conversion from string (TextBox.Text) to a string cannot fail. The property setter of the ViewModel then has to do the conversion to the type of the property in the underlying business object, and exceptions raised here can be easily caught. This means that the ViewModel class get even more bloated. But I'd easily cope with another bug of WPF: it always uses a decimal point, even when Windows regional settings tell that it should be a decimal comma.
Questioncalendar control Pin
nik00828-Feb-12 20:38
nik00828-Feb-12 20:38 
AnswerRe: calendar control Pin
Abhinav S28-Feb-12 22:41
Abhinav S28-Feb-12 22:41 
AnswerRe: calendar control Pin
Pete O'Hanlon29-Feb-12 0:18
mvePete O'Hanlon29-Feb-12 0:18 
QuestionThe WPF DocumentViewer Control Pin
usolo28-Feb-12 15:04
usolo28-Feb-12 15:04 
QuestionEdit MainPage title in Silverlight 5 Pin
roni-in28-Feb-12 6:01
roni-in28-Feb-12 6:01 
AnswerRe: Edit MainPage title in Silverlight 5 Pin
Abhinav S29-Feb-12 1:53
Abhinav S29-Feb-12 1:53 
GeneralRe: Edit MainPage title in Silverlight 5 Pin
roni-in29-Feb-12 3:37
roni-in29-Feb-12 3:37 
QuestionReference a Converter from a template.xaml Pin
Mycroft Holmes27-Feb-12 20:55
professionalMycroft Holmes27-Feb-12 20:55 
AnswerRe: Reference a Converter from a template.xaml Pin
Pete O'Hanlon27-Feb-12 21:03
mvePete O'Hanlon27-Feb-12 21:03 
GeneralRe: Reference a Converter from a template.xaml Pin
Mycroft Holmes27-Feb-12 21:25
professionalMycroft Holmes27-Feb-12 21:25 
GeneralRe: Reference a Converter from a template.xaml Pin
Pete O'Hanlon27-Feb-12 21:34
mvePete O'Hanlon27-Feb-12 21:34 
GeneralRe: Reference a Converter from a template.xaml Pin
Mycroft Holmes27-Feb-12 21:48
professionalMycroft Holmes27-Feb-12 21:48 
GeneralRe: Reference a Converter from a template.xaml Pin
Pete O'Hanlon27-Feb-12 21:50
mvePete O'Hanlon27-Feb-12 21:50 
QuestionWPF Facebook App Pin
Kevin Marois27-Feb-12 13:25
professionalKevin Marois27-Feb-12 13:25 
QuestionIntersoft ClientUI 6 Pin
LAPEC27-Feb-12 12:19
LAPEC27-Feb-12 12:19 
AnswerRe: Intersoft ClientUI 6 Pin
Mycroft Holmes27-Feb-12 13:51
professionalMycroft Holmes27-Feb-12 13:51 
AnswerRe: Intersoft ClientUI 6 Pin
Wes Aday28-Feb-12 3:10
professionalWes Aday28-Feb-12 3:10 

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.