예제 #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 };
        }