Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Dialog全屏弹窗扩展 #88

Description

@jianzhichu

在DialogOption 中增加了一个 bool 类型的属性 FullScreen 默认 false

另外在DialogService中增加了一个扩展方法,如下:


 public async Task<DialogResult> ShowFullScreenDialogAsync<TComponent>(string title, IDictionary<string, object> parameters)
            where TComponent : ComponentBase
        {
            var taskCompletionSource = new TaskCompletionSource<DialogResult>();
            var option = new DialogOption()
            {
                Content = typeof(TComponent),
                IsDialog = true,
                Title = title,
                Width = 0,
                FullScreen = true,
                Parameters = parameters,
                TaskCompletionSource = taskCompletionSource,

            };
            ShowDialog(option);
            return await taskCompletionSource.Task;
        }
 

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions