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); }
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); } }
public Picker(PickerStyle pickerStyle) : base(pickerStyle) { Initialize(); }
/// <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) { }
public PickerStyle(PickerStyle style) : base(style) { }