Click here to Skip to main content
15,902,938 members
Home / Discussions / WPF
   

WPF

 
QuestionDeploying a Silverlight application Pin
Jerry Evans23-Oct-08 12:28
Jerry Evans23-Oct-08 12:28 
AnswerRe: Deploying a Silverlight application Pin
DaveX8623-Oct-08 16:10
DaveX8623-Oct-08 16:10 
GeneralRe: Deploying a Silverlight application Pin
Jerry Evans23-Oct-08 23:48
Jerry Evans23-Oct-08 23:48 
GeneralRe: Deploying a Silverlight application Pin
DaveX8624-Oct-08 4:15
DaveX8624-Oct-08 4:15 
GeneralRe: Deploying a Silverlight application Pin
Paul Conrad24-Oct-08 5:44
professionalPaul Conrad24-Oct-08 5:44 
AnswerRe: Deploying a Silverlight application Pin
DaveX8625-Oct-08 18:33
DaveX8625-Oct-08 18:33 
QuestionDynamically Hinding Controls Pin
Jonso23-Oct-08 10:45
Jonso23-Oct-08 10:45 
AnswerRe: Dynamically Hinding Controls Pin
User 27100923-Oct-08 17:19
User 27100923-Oct-08 17:19 
There are several ways to do this.

The best way, is to DataBind the Visiblity property on the control, to a Boolean field on the data that has the value.

You can expose your Application Hidden Field Table as a property on the Window or UserControl, and have the controls in the UI Bind to that property.

You will need to use the BooleanToVisibilityConverter in your binding expression.

By data binding to the Visibility property of the control, you can change the data and the control will collapse, hide or display itself without any additional code.

Just ensure that your data class implements the System.ComponentModel.INotifyPropertyChanged interface.


Another way, not necessarily the best is to walk the VisualTree and set your controls. But I would not recommend this.

If you are knew to WPF data binding, search here on Code Project and the Internet for great tutorials and articles. My blog link below also has a good deal of data binding and links to other great blogs.

Cheers, Karl

» CodeProject 2008 MVP

My Blog | Mole's Home Page |
XAML Power Toys Home Page

Just a grain of sand on the worlds beaches.



modified 27-Feb-21 21:01pm.

GeneralRe: Dynamically Hinding Controls Pin
Mark Salsbery23-Oct-08 20:17
Mark Salsbery23-Oct-08 20:17 
GeneralRe: Dynamically Hinding Controls Pin
User 27100925-Oct-08 9:38
User 27100925-Oct-08 9:38 
GeneralRe: Dynamically Hinding Controls Pin
Mark Salsbery25-Oct-08 10:44
Mark Salsbery25-Oct-08 10:44 
QuestionAre there any anti-alias effects in WPF ? Pin
Mohammad Dayyan23-Oct-08 9:19
Mohammad Dayyan23-Oct-08 9:19 
AnswerRe: Are there any anti-alias effects in WPF ? Pin
elektrowolf25-Oct-08 23:30
elektrowolf25-Oct-08 23:30 
GeneralRe: Are there any anti-alias effects in WPF ? Pin
Mohammad Dayyan25-Oct-08 23:39
Mohammad Dayyan25-Oct-08 23:39 
QuestionChart Component Pin
Johan Lombaard23-Oct-08 3:09
Johan Lombaard23-Oct-08 3:09 
AnswerRe: Chart Component Pin
Pete O'Hanlon23-Oct-08 4:35
mvePete O'Hanlon23-Oct-08 4:35 
AnswerRe: Chart Component Pin
Jammer23-Oct-08 5:03
Jammer23-Oct-08 5:03 
QuestionHow to get the coordinate of the Shape which moving on the PathGeometry while using DoubleAnimationUsingPath? Pin
suyeshk22-Oct-08 23:11
suyeshk22-Oct-08 23:11 
QuestionWPF & Silverlight LOB Form Layout - Searching for a Better Solution Pin
User 27100922-Oct-08 22:46
User 27100922-Oct-08 22:46 
AnswerRe: WPF & Silverlight LOB Form Layout - Searching for a Better Solution Pin
Pete O'Hanlon22-Oct-08 23:02
mvePete O'Hanlon22-Oct-08 23:02 
QuestionDerive from UserControl Pin
ezazazel22-Oct-08 11:35
ezazazel22-Oct-08 11:35 
AnswerRe: Derive from UserControl Pin
Pete O'Hanlon22-Oct-08 11:43
mvePete O'Hanlon22-Oct-08 11:43 
GeneralRe: Derive from UserControl Pin
ezazazel22-Oct-08 12:10
ezazazel22-Oct-08 12:10 
QuestionDisplaying 2D text in WPF Pin
crazygirl22-Oct-08 3:38
crazygirl22-Oct-08 3:38 
AnswerRe: Displaying 2D text in WPF Pin
Pete O'Hanlon22-Oct-08 5:27
mvePete O'Hanlon22-Oct-08 5:27 

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.