Example #1
0
        protected async void PathChangedHandler(UIChangeEventArgs e)
        {
            if (IsMultiple)
            {
                var files = await JSRunner.GetFilePaths(ElementRef);

                PathChanged?.Invoke(files);
            }
            else
            {
                PathChanged?.Invoke(new string[] { e?.Value?.ToString() });
            }
        }
Example #2
0
        protected async void PathChangedHandler(UIChangeEventArgs e)
        {
            if (IsMultiple)
            {
                InternalValue = await JSRunner.GetFilePaths(ElementRef);
            }
            else
            {
                InternalValue = new string[] { e?.Value?.ToString() }
            };

            PathChanged?.Invoke(InternalValue);
        }