示例#1
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ModalShow(), () => IsOpen);

            base.RegisterStyles();
        }
示例#2
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ProgressBarValue(Value ?? 0), () => Value != null);

            base.RegisterStyles();
        }
示例#3
0
        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();
        }
示例#4
0
        protected override void RegisterStyles()
        {
            StyleMapper
            .If(() => StyleProvider.ModalBodyMaxHeight(MaxHeight ?? 0), () => MaxHeight != null);

            base.RegisterStyles();
        }
示例#5
0
 protected virtual void RegisterStyles()
 {
     StyleMapper
     .If(() => Style, () => Style != null)
     .Add(() => StyleProvider.Visibility(Visibility));
 }