My CustomControls UI element Visibility
is bound through a BoolToVisibilityConverter, see code below :
<cc:CustomFFU LabelText="FFUZoneF_2-1" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="2" Grid.Column="1" Width="55" Height="35"
InstanceAddress="MCS1.Cleanroom.ProcessCell.UN_ZonesF.EM_FFU.CM_FFU2_1"
Visibility="{Binding VisibilityFFUView, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource BoolToVisibilityConverter}}" />
The code works as it should, however during design-time the visibility
is Collapsed
. So every CustomControl on my window is not visible during development. Quite annyoning..
How is the visibility during design-time
fixed to Visibility
?
Ps. when I delete the BoolToVisibilityConverter, the status changes from Collapsed to Visible? Perhaps, because when designing the value represent false. Just a guess.
View
xaml and itsDataContext
yet stackoverflow.com/help/minimal-reproducible-exampleUpdateSourceTrigger=PropertyChanged
on the Visibilty Binding is pointless. UpdateSourceTrigger only has an effect on TwoWay or OneWayToSource Bindings.