Пример #1
0
        public DefaultFileSelectorBackend()
        {
            filters = new FileDialogFilterCollection(null);

            var box = new HBox();

            entry          = new TextEntry();
            entry.Changed += (sender, e) => NotifyFileChange();
            box.PackStart(entry, true);

            var btn = new Button("...");

            box.PackStart(btn);
            btn.Clicked += BtnClicked;
            Content      = box;
        }
Пример #2
0
        public DefaultFileSelectorBackend()
        {
            filters = new FileDialogFilterCollection(null);

            var box = new HBox();

            box.Accessible.IsAccessible = true;
            box.Accessible.Role         = Accessibility.Role.Group;
            box.Accessible.Title        = Application.TranslationCatalog.GetString("File Selector");

            entry = new TextEntry();
            entry.Accessible.Label = Application.TranslationCatalog.GetString("Path");
            entry.Changed         += (sender, e) => NotifyFileChange();
            box.PackStart(entry, true);

            var btn = new Button("...");

            btn.Accessible.Label = Application.TranslationCatalog.GetString("Browse");
            box.PackStart(btn);
            btn.Clicked += BtnClicked;
            Content      = box;
        }
Пример #3
0
        public DefaultFileSelectorBackend()
        {
            filters = new FileDialogFilterCollection(null);

            var box = new HBox();

            box.Accessible.IsAccessible = true;
            box.Accessible.Role         = Accessibility.Role.Group;
            box.Accessible.Title        = Application.TranslationCatalog.GetString("File Selector");

            entry = new TextEntry();
            entry.Accessible.Title = Application.TranslationCatalog.GetString("Path");
            entry.Visible          = true;
            entry.Changed         += (sender, e) => NotifyFileChange();
            box.PackStart(entry, true, vpos: WidgetPlacement.Center);

            button = new Button("...");
            button.Accessible.Title = Application.TranslationCatalog.GetString("Browse");
            box.PackStart(button, false, vpos: WidgetPlacement.Center);
            button.Clicked += BtnClicked;
            Content         = box;

            Accessible.PropertyChanged += HandleAccessiblePropertyChanged;
        }
Пример #4
0
 internal FileDialog()
 {
     filters = new FileDialogFilterCollection(AddRemoveItem);
 }
Пример #5
0
 internal FileDialog()
 {
     filters            = new FileDialogFilterCollection(AddRemoveItem);
     backendHost        = new BackendHost <FileDialog, IFileDialogBackend> ();
     backendHost.Parent = this;
 }