2
Good staff.
<GroupBox Header="Tipo de operação" HorizontalAlignment="Left" Height="55" Margin="10,70,0,0" VerticalAlignment="Top" Width="296">
<Grid x:Name="gridOperationType">
<RadioButton x:Name="radioButtonPlus" Content="Acumulação" HorizontalAlignment="Left" Margin="0,10,0,0" VerticalAlignment="Top"/>
<RadioButton x:Name="radioButtonChange" Content="Alteração" HorizontalAlignment="Left" Margin="120,10,0,0" VerticalAlignment="Top"/>
</Grid>
</GroupBox>
Now what was predentia was to make a Binding for both, whether the bool was true to mark the top or whether it was false to mark the bottom
To TextBox
and the like is easy but now for this situation I am not able to find any information on this.
Thanks
A tip, you could use a
converter
to reverse the value ofboolean
in thebinding
according to what you want. From a look here. You would use it and you could also pass a parameter to differentiate each element, and being the radioButtonChange, you would reverse the value of theboolean
. To know how to use theConverterParameter
, at a glance here.– Vinicius Lourenço