예제 #1
0
 public PickerScroller(PickerStyle pickerStyle) : base()
 {
     //Default rate is 0.998. this is for reduce scroll animation length.
     decelerationRate       = 0.991f;
     startScrollOffset      = (int)pickerStyle.StartScrollOffset.Height;
     itemHeight             = (int)pickerStyle.ItemTextLabel.Size.Height;
     logValueOfDeceleration = (float)Math.Log(decelerationRate);
 }
예제 #2
0
            public void SetPickerStyle(PickerStyle pickerStyle)
            {
                if (pickerStyle.StartScrollOffset != null)
                {
                    startScrollOffset = (int)pickerStyle.StartScrollOffset.Height;
                }

                if (pickerStyle.ItemTextLabel?.Size != null)
                {
                    itemHeight = (int)pickerStyle.ItemTextLabel.Size.Height;
                }

                if (pickerStyle.Size != null)
                {
                    Size = new Size(-1, pickerStyle.Size.Height);
                }
            }
예제 #3
0
 public Picker(PickerStyle pickerStyle) : base(pickerStyle)
 {
     Initialize();
 }
예제 #4
0
 /// <summary>
 /// Creates a new instance of Picker.
 /// </summary>
 /// <param name="pickerStyle">Creates Picker by style customized by user.</param>
 /// <since_tizen> 9 </since_tizen>
 public Picker(PickerStyle pickerStyle) : base(pickerStyle)
 {
 }
예제 #5
0
 public PickerStyle(PickerStyle style) : base(style)
 {
 }