Hide/Display Control in LightSwitch
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;
}