Hello thereWhen I click on checkbox, I want the textbox to appear and enter the value.
Or when I remove the checkbox, I want the department checkboxes to come as a list at the bottom. But the textbox always comes with the checkbox.
For example:
AllDepartment is checked --->Textbox show.
AllDepartment is not checked ----> Show Open other checkbox list(Healthy checkbox,Banking checkbox, ...vs) and textbox show.
What I have tried:
xmal
<GroupBox x:Name="groupBox" Header="Page" HorizontalAlignment="Left" Height="300" VerticalAlignment="Top" Width="782" Margin="-9,0,0,0">
<StackPanel Orientation="Vertical" VerticalAlignment="Top">
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="Department" Content="All Department" IsChecked="{Binding AllDepartmentCheck}"></CheckBox>
<TextBox Text="{Binding AllDeparmentCount}" Visibility="{Binding allDepartmentVisibility}"/>
</StackPanel>
<Button x:Name="button" Content="Button" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75"/>
</StackPanel>
</GroupBox>
CS.
public bool AllDepartmentCheck
{
get { return allDepartmentCheck; }
set
{
allDepartmentCheck = value;
allDepartmentCheck = ( allDepartmentCheck != null );
OnPropertyChanged("allDepartmentCheck");
}
}
public void Add()
{
//this adding function code.
}