Пример #1
0
		public SelectorView ()
		{
			Title = "";
			BezelStyle = NSBezelStyle.TexturedRounded;
			var pathSelectorView = new PathSelectorView (new CGRect (6, 0, 1, 1));
			pathSelectorView.UnregisterDraggedTypes ();
			AddSubview (pathSelectorView);
		}
Пример #2
0
        public SelectorView()
        {
            Title      = "";
            BezelStyle = NSBezelStyle.TexturedRounded;
            var pathSelectorView = new PathSelectorView(new CGRect(6, 0, 1, 1));

            pathSelectorView.UnregisterDraggedTypes();
            AddSubview(pathSelectorView);
        }
Пример #3
0
		public SelectorView ()
		{
			Cell = new ColoredButtonCell ();
			BezelStyle = NSBezelStyle.TexturedRounded;
			Title = "";

			RealSelectorView = new PathSelectorView (new CGRect (6, 0, 1, 1));
			RealSelectorView.UnregisterDraggedTypes ();
			AddSubview (RealSelectorView);
		}
Пример #4
0
        public SelectorView()
        {
            Cell       = new ColoredButtonCell();
            BezelStyle = NSBezelStyle.TexturedRounded;
            Title      = "";

            RealSelectorView = new PathSelectorView(new CGRect(6, 0, 1, 1));
            RealSelectorView.UnregisterDraggedTypes();
            AddSubview(RealSelectorView);
        }
Пример #5
0
        public SelectorView()
        {
            Cell       = new ColoredButtonCell();
            BezelStyle = NSBezelStyle.TexturedRounded;
            Title      = "";

            var nsa = (INSAccessibility)this;

            nsa.AccessibilityElement = false;

            RealSelectorView = new PathSelectorView(new CGRect(6, 0, 1, 1));
            RealSelectorView.UnregisterDraggedTypes();
            AddSubview(RealSelectorView);

            // Disguise this NSButton as a group
            AccessibilityRole = NSAccessibilityRoles.GroupRole;

            // For some reason AddSubview hasn't added RealSelectorView as an accessibility child of SelectorView
            nsa.AccessibilityChildren = new NSObject [] { RealSelectorView };
        }