public PropertyContainer(Models.CertificateReference protocolObject) : base(BindingState.Bound) { this.StoreLocationProperty = this.CreatePropertyAccessor( UtilitiesInternal.MapNullableEnum <Models.CertificateStoreLocation, Common.CertStoreLocation>(protocolObject.StoreLocation), nameof(StoreLocation), BindingAccess.Read | BindingAccess.Write); this.StoreNameProperty = this.CreatePropertyAccessor( protocolObject.StoreName, nameof(StoreName), BindingAccess.Read | BindingAccess.Write); this.ThumbprintProperty = this.CreatePropertyAccessor( protocolObject.Thumbprint, nameof(Thumbprint), BindingAccess.Read | BindingAccess.Write); this.ThumbprintAlgorithmProperty = this.CreatePropertyAccessor( protocolObject.ThumbprintAlgorithm, nameof(ThumbprintAlgorithm), BindingAccess.Read | BindingAccess.Write); this.VisibilityProperty = this.CreatePropertyAccessor( UtilitiesInternal.ParseCertificateVisibility(protocolObject.Visibility), nameof(Visibility), BindingAccess.Read | BindingAccess.Write); }