Answer the question
In order to leave comments, you need to log in
How to change a property of a parent element with a trigger?
Hello.
There is an Expander element with a nested PopUp (to be on top of other elements), inside the PopUp there is a StackPanel with three RadioButtons united by one GroupName.
I will omit some properties in the code so that it is closer to the point:
<Expander Name="MyExpander" ... IsExpanded="False" >
<PopUp ... StaysOpen="False" IsOpen="{Binding ElementName=MyExpander, Path=IsExpanded}" >
<StackPanel>
<RadioButton GroupName="Group" Name="First"/>
<RadioButton GroupName="Group" Name="Second"/>
<RadioButton GroupName="Group" Name="Third"/>
</StackPanel>
</PopUp>
</Expander>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question