Click here to Skip to main content
15,897,180 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How to design using MVVM for a GUI interacting with Hardware [modified] Pin
Mark Salsbery24-May-11 9:08
Mark Salsbery24-May-11 9:08 
GeneralRe: How to design using MVVM for a GUI interacting with Hardware Pin
Praveen Raghuvanshi30-May-11 6:41
professionalPraveen Raghuvanshi30-May-11 6:41 
AnswerRe: How to design using MVVM for a GUI interacting with Hardware Pin
_Maxxx_24-May-11 20:57
professional_Maxxx_24-May-11 20:57 
GeneralRe: How to design using MVVM for a GUI interacting with Hardware Pin
Praveen Raghuvanshi30-May-11 6:42
professionalPraveen Raghuvanshi30-May-11 6:42 
QuestionWPF/MVVM TextBox Width From DB Field Size Pin
Kevin Marois24-May-11 4:57
professionalKevin Marois24-May-11 4:57 
AnswerRe: WPF/MVVM TextBox Width From DB Field Size Pin
Pete O'Hanlon24-May-11 9:25
mvePete O'Hanlon24-May-11 9:25 
GeneralRe: WPF/MVVM TextBox Width From DB Field Size Pin
Kevin Marois24-May-11 12:58
professionalKevin Marois24-May-11 12:58 
GeneralRe: WPF/MVVM TextBox Width From DB Field Size Pin
SledgeHammer0124-May-11 13:36
SledgeHammer0124-May-11 13:36 
You are going to run into a problem with your idea... WPF UIs use TrueType fonts. For example, on my screen 10 W's are about 4x as wide as 10 i's. You'd have to size your field to fit W's since that is the widest character (in English -- USUALLY), so you'd end up with a bunch of empty space for most other characters since they are much narrower. You could switch to a fixed width font, but then it wouldn't match the rest of the UI and you'd lose various functionality / behavior from TrueType fonts.

If you still want to go down that route, Petes code snippet will allow you to calculate the width you need, then you'll need to add in some padding depending on the control.
GeneralRe: WPF/MVVM TextBox Width From DB Field Size Pin
Pete O'Hanlon24-May-11 21:54
mvePete O'Hanlon24-May-11 21:54 
AnswerRe: WPF/MVVM TextBox Width From DB Field Size Pin
_Maxxx_24-May-11 21:22
professional_Maxxx_24-May-11 21:22 
QuestionChanging Image Source does not cause the image to be loaded Pin
Michael J. Eber23-May-11 10:58
Michael J. Eber23-May-11 10:58 
AnswerRe: Changing Image Source does not cause the image to be loaded Pin
SledgeHammer0123-May-11 11:18
SledgeHammer0123-May-11 11:18 
GeneralRe: Changing Image Source does not cause the image to be loaded Pin
Michael J. Eber23-May-11 11:39
Michael J. Eber23-May-11 11:39 
GeneralRe: Changing Image Source does not cause the image to be loaded Pin
Mycroft Holmes23-May-11 14:02
professionalMycroft Holmes23-May-11 14:02 
GeneralRe: Changing Image Source does not cause the image to be loaded Pin
SledgeHammer0123-May-11 14:05
SledgeHammer0123-May-11 14:05 
GeneralRe: Changing Image Source does not cause the image to be loaded Pin
Michael J. Eber26-May-11 10:31
Michael J. Eber26-May-11 10:31 
GeneralRe: Changing Image Source does not cause the image to be loaded Pin
Mycroft Holmes26-May-11 12:36
professionalMycroft Holmes26-May-11 12:36 
QuestionSilverlight - Saving a file without the dialog? Pin
dbrenth23-May-11 7:56
dbrenth23-May-11 7:56 
AnswerRe: Silverlight - Saving a file without the dialog? Pin
Michael J. Eber23-May-11 10:56
Michael J. Eber23-May-11 10:56 
GeneralRe: Silverlight - Saving a file without the dialog? Pin
Mycroft Holmes23-May-11 14:04
professionalMycroft Holmes23-May-11 14:04 
GeneralRe: Silverlight - Saving a file without the dialog? Pin
Mark Salsbery23-May-11 14:13
Mark Salsbery23-May-11 14:13 
AnswerRe: Silverlight - Saving a file without the dialog? Pin
Pete O'Hanlon24-May-11 0:14
mvePete O'Hanlon24-May-11 0:14 
GeneralRe: Silverlight - Saving a file without the dialog? Pin
dbrenth24-May-11 3:07
dbrenth24-May-11 3:07 
GeneralRe: Silverlight - Saving a file without the dialog? Pin
Pete O'Hanlon24-May-11 3:32
mvePete O'Hanlon24-May-11 3:32 
QuestionSilverlight DataGrid unable to be edited when used with DataPager Pin
Steve Holdorf23-May-11 6:26
Steve Holdorf23-May-11 6:26 

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.