static BoolToVisibilityConverter() { Instance = new BoolToVisibilityConverter(); // Need to set this in static ctor, otherwise property setter fails (dp is null) InverseInstance = new BoolToVisibilityConverter(); InverseInstance.TrueVisibility = Visibility.Collapsed; InverseInstance.FalseVisibility = Visibility.Visible; }
public void SetUp() { this.converter = new BoolToVisibilityConverter(); }