private Image ConfigureOptionButton(ChallengeType challengeType, Size?size = null) { Image imageButton = FormsHelper.ConfigureImageButton($"{ challengeType.ToString().ToLower() }.png", (s, e) => { var t = OnChallengeTypeSelected(challengeType); }, size); //imageButton.WidthRequest = 100; imageButton.HorizontalOptions = LayoutOptions.Center; imageButton.VerticalOptions = LayoutOptions.FillAndExpand; imageButton.Aspect = Aspect.AspectFit; return(imageButton); }
/// <summary> /// Defines file properties /// </summary> protected void _SetProperties() { Property.ComputeValueDelegate wpCountDelegate = () => CheckpointCount.ToString(); Property.ComputeValueDelegate modeDelegate = () => ChallengeMode.ToString(); Property.ComputeValueDelegate typeDelegate = () => ChallengeType.ToString(); Property.ComputeValueDelegate nameDelegate = () => TrackName; Properties.Add(new Property("Track name", "DFE/IGE", nameDelegate)); Properties.Add(new Property("Challenge mode", "DFE/IGE", modeDelegate)); Properties.Add(new Property("Challenge type", "DFE/IGE", typeDelegate)); Properties.Add(new Property("Waypoint count", "DFE/IGE", wpCountDelegate)); }