Esempio n. 1
0
        public RotarySelector()
        {
            rotarySelectorManager = new RotarySelectorManager(new Size(360, 360));
            this.Add(rotarySelectorManager.GetRotaryPagination());
            this.Add(rotarySelectorManager.GetRotaryLayerView());

            longPressDetector           = new LongPressGestureDetector();
            longPressDetector.Detected += Detector_Detected;
            longPressDetector.Attach(rotarySelectorManager.GetRotaryLayerView().GetMainText());

            panDetector = new PanGestureDetector();
            panDetector.Attach(this);
            panDetector.Detected += PanDetector_Detected;

            this.WheelEvent += RotarySelector_WheelEvent;
        }