protected override void RegisterStyles() { StyleMapper .If(() => StyleProvider.ModalShow(), () => IsOpen); base.RegisterStyles(); }
protected override void RegisterStyles() { StyleMapper .If(() => StyleProvider.ProgressBarValue(Value ?? 0), () => Value != null); base.RegisterStyles(); }
private void HandleOpenState(bool isOpen) { if (modalBackdrop != null) { modalBackdrop.IsOpen = isOpen; } // TODO: find a way to remove javascript if (isOpen) { ExecuteAfterRender(async() => { await JSRunner.AddClassToBody("modal-open"); }); } else { ExecuteAfterRender(async() => { await JSRunner.RemoveClassFromBody("modal-open"); }); } ClassMapper.Dirty(); StyleMapper.Dirty(); }
protected override void RegisterStyles() { StyleMapper .If(() => StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0), () => MaxHeight != null); base.RegisterStyles(); }
protected virtual void RegisterStyles() { StyleMapper .If(() => Style, () => Style != null) .Add(() => StyleProvider.Visibility(Visibility)); }