Click here to Skip to main content
15,867,488 members
Home / Discussions / WPF
   

WPF

 
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
subeditorPete 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
subeditorPete O'Hanlon24-Oct-13 4:08 
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
subeditorPete O'Hanlon24-Oct-13 4:20 
I have to assume you know how to add the code into your ViewModel, so it looks like the bit that you are confused about is what happens in the XAML. Well, in your user control, add the following into the UserControl.Resources section:
XML
<BooleanToVisibilityConverter x:Key="booleanVisibilityConverter">
Then, in your StackPanel add this (assuming that your VM property is called ShouldShow)
XML
<StackPanel Visibility="{Binding ShouldShow, Converter={StaticResource booleanVisibilityConverter}}"


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
subeditorPete 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 
GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
Ashfaque Hussain24-Oct-13 19:29
Ashfaque Hussain24-Oct-13 19:29 
GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
Pete O'Hanlon24-Oct-13 22:09
subeditorPete O'Hanlon24-Oct-13 22:09 
GeneralRe: How to Show/Hide stack pannel from ViewModel?? Pin
Ashfaque Hussain13-Nov-13 23:29
Ashfaque Hussain13-Nov-13 23:29 
QuestionSend content of button from View to ViewModel Pin
Ashfaque Hussain23-Oct-13 5:30
Ashfaque Hussain23-Oct-13 5:30 
AnswerRe: Send content of button from View to ViewModel Pin
Kenneth Haugland23-Oct-13 6:00
mvaKenneth Haugland23-Oct-13 6:00 
GeneralRe: Send content of button from View to ViewModel Pin
Ashfaque Hussain23-Oct-13 7:41
Ashfaque Hussain23-Oct-13 7:41 
QuestionRe: Send content of button from View to ViewModel Pin
Kenneth Haugland23-Oct-13 12:03
mvaKenneth Haugland23-Oct-13 12:03 
AnswerRe: Send content of button from View to ViewModel Pin
Mycroft Holmes23-Oct-13 13:01
professionalMycroft Holmes23-Oct-13 13:01 
GeneralRe: Send content of button from View to ViewModel Pin
Ashfaque Hussain23-Oct-13 21:16
Ashfaque Hussain23-Oct-13 21:16 
AnswerRe: Send content of button from View to ViewModel Pin
Abhinav S26-Oct-13 1:21
Abhinav S26-Oct-13 1:21 
GeneralRe: Send content of button from View to ViewModel Pin
Ashfaque Hussain7-Nov-13 23:06
Ashfaque Hussain7-Nov-13 23:06 
QuestionNo suitable axis is available for plotting the dependent value Pin
SunnyGaur21-Oct-13 17:10
SunnyGaur21-Oct-13 17:10 
QuestionRe: No suitable axis is available for plotting the dependent value Pin
Kenneth Haugland23-Oct-13 6:20
mvaKenneth Haugland23-Oct-13 6:20 
AnswerRe: No suitable axis is available for plotting the dependent value Pin
SunnyGaur23-Oct-13 17:07
SunnyGaur23-Oct-13 17:07 

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.