TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
bhuven
NA
47
0
Hide/Display Control in LightSwitch
Aug 18 2011 5:57 AM
I have a Customer Entity with field CustMov which stores "Inbound" and "Outbound" in Choice List. I have 4 addiitional fields. In the screen designer, I have two group boxes each hold 2 of the 4 additional fileds. The IsVisible property for the group boxes are unticked (off) but the fiels are ticked
When I run the program, both boxes are not displayed but when I select "Inbound" or "Outbound", the boxes donot display.
I would sincerely apprecaite some help. Thnaking you in advance
private void CreateNewCustomers_Created()
{
Dispatchers.Main.BeginInvoke(() =>
((INotifyPropertyChanged)this.CustMov).PropertyChanged += PropertyChanged);
}
private void PropertyChanged(object sender, PropertyChangedEventArgs e)
{
switch (CustomerProperty.CustMov)
{
case "Inbound":
this.FindControl("Group1").IsVisible = true;
break;
case "Outbound":
this.FindControl("Group1").IsVisible = true;
}
Reply
Answers (
14
)
Where can
and
be downloaded?
How to save text box user input to a database