Click here to Skip to main content
15,909,030 members
Home / Discussions / WPF
   

WPF

 
QuestionHow to change the content of Button in View from ViewModel Pin
Ashfaque Hussain28-Oct-13 0:05
Ashfaque Hussain28-Oct-13 0:05 
AnswerRe: How to change the content of Button in View from ViewModel Pin
Pete O'Hanlon28-Oct-13 0:13
mvePete O'Hanlon28-Oct-13 0:13 
AnswerRe: How to change the content of Button in View from ViewModel Pin
Abhinav S28-Oct-13 0:51
Abhinav S28-Oct-13 0:51 
QuestionMouse Down event Pin
Ashfaque Hussain25-Oct-13 1:04
Ashfaque Hussain25-Oct-13 1:04 
AnswerRe: Mouse Down event Pin
Pete O'Hanlon25-Oct-13 1:32
mvePete O'Hanlon25-Oct-13 1:32 
AnswerRe: Mouse Down event Pin
Abhinav S26-Oct-13 1:19
Abhinav S26-Oct-13 1:19 
GeneralRe: Mouse Down event Pin
Ashfaque Hussain26-Oct-13 7:44
Ashfaque Hussain26-Oct-13 7:44 
AnswerRe: Mouse Down event Pin
Abhinav S26-Oct-13 18:13
Abhinav S26-Oct-13 18:13 
AnswerRe: Mouse Down event Pin
_Maxxx_27-Oct-13 19:11
professional_Maxxx_27-Oct-13 19:11 
GeneralRe: Mouse Down event Pin
Mycroft Holmes27-Oct-13 19:21
professionalMycroft Holmes27-Oct-13 19:21 
GeneralRe: Mouse Down event Pin
_Maxxx_27-Oct-13 20:50
professional_Maxxx_27-Oct-13 20:50 
GeneralRe: Mouse Down event Pin
Pete O'Hanlon28-Oct-13 0:23
mvePete O'Hanlon28-Oct-13 0:23 
AnswerRe: Mouse Down event Pin
Meshack Musundi27-Oct-13 20:16
professionalMeshack Musundi27-Oct-13 20:16 
GeneralRe: Mouse Down event Pin
Ashfaque Hussain27-Oct-13 21:35
Ashfaque Hussain27-Oct-13 21:35 
GeneralRe: Mouse Down event Pin
Ashfaque Hussain7-Nov-13 23:00
Ashfaque Hussain7-Nov-13 23:00 
QuestionHow to set minwidth of GridViewColumnHeader while resizing column header in ListView Pin
Deepak B V24-Oct-13 4:42
Deepak B V24-Oct-13 4:42 
AnswerRe: How to set minwidth of GridViewColumnHeader while resizing column header in ListView Pin
Pete O'Hanlon24-Oct-13 5:32
mvePete O'Hanlon24-Oct-13 5:32 
GeneralRe: How to set minwidth of GridViewColumnHeader while resizing column header in ListView Pin
SledgeHammer0124-Oct-13 7:20
SledgeHammer0124-Oct-13 7:20 
QuestionHow to Show/Hide stack pannel from ViewModel?? Pin
Ashfaque Hussain24-Oct-13 4:01
Ashfaque Hussain24-Oct-13 4:01 
AnswerRe: How to Show/Hide stack pannel from ViewModel?? Pin
Pete O'Hanlon24-Oct-13 4:08
mvePete O'Hanlon24-Oct-13 4:08 
The standard way to do this is to expose a boolean property from your ViewModel that indicates whether or not the items the StackPanel represents are visible or not (I have worded this carefully so that you don't get the idea that the boolean maps to the StackPanel in anyway). This property must raise the PropertyChanged event when it changes. Then, in your View, bind the StackPanel Visibility to this property; as you are aware, the Visibility property is not a boolean property, so you use the BooleanToVisibilityConverter[^] to convert between the boolean value and the Visibility of the object.

GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
Ashfaque Hussain24-Oct-13 4:15
Ashfaque Hussain24-Oct-13 4:15 
GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
Pete O'Hanlon24-Oct-13 4:20
mvePete O'Hanlon24-Oct-13 4:20 
GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
SledgeHammer0124-Oct-13 4:55
SledgeHammer0124-Oct-13 4:55 
GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
Pete O'Hanlon24-Oct-13 5:00
mvePete O'Hanlon24-Oct-13 5:00 
GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
_Maxxx_27-Oct-13 19:14
professional_Maxxx_27-Oct-13 19:14 

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.