I WANT TO If the product check box is checked, I want the textbox value to be added automatically from the contents.
If not, let the checkbox open and select one of the products (trousers, shoes, shirt, tshirt, etc.).
For example
SELECT PRODUCT COUNTS IS CHECKED: trousers, shoes, shirt, tshirt ----> textbox count:2
SELECT PRODUCT COUNTS IS NOT CHECKED:open the checkbox list of desired products.
check the desired product.
I WANT TO ıf checkbox checks, textbox look. If not textbox not look
What I have tried:
<Grid>
<CheckBox x:Name="checkBox" Unchecked="CheckBox_Checked_1" Checked="CheckBox_Checked_1" Content="SELECT PRODUCTS COUNT" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="117,62,0,0"/>
<TextBox x:Name="textBox" Visibility="Visible" HorizontalAlignment="Left" Height="15" TextWrapping="Wrap" Text="2" VerticalAlignment="Top" Width="31" Margin="301,62,0,0"/>
</Grid>