protected override void OnInitialized() { base.OnInitialized(); { base.OnInitialized(); var male = new DropdownItem <GenderTypeEnum> { ItemObject = GenderTypeEnum.Male, DisplayText = "Male" }; var female = new DropdownItem <GenderTypeEnum> { ItemObject = GenderTypeEnum.Female, DisplayText = "Female" }; var neutral = new DropdownItem <GenderTypeEnum> { ItemObject = GenderTypeEnum.Neutral, DisplayText = "Others" }; GenderTypeDropdownItems.Add(male); GenderTypeDropdownItems.Add(female); GenderTypeDropdownItems.Add(neutral); SelectedGenderTypedropdownItem = female; } }
protected override void OnInitialized() { base.OnInitialized(); var male = new DropdownItem <GenderTypeEnum> { ItemObject = GenderTypeEnum.Male, DisplayText = "Male" }; var female = new DropdownItem <GenderTypeEnum> { ItemObject = GenderTypeEnum.Female, DisplayText = "Female" }; var neutral = new DropdownItem <GenderTypeEnum> { ItemObject = GenderTypeEnum.Neutral, DisplayText = "Other" }; GenderTypeDropdownItems.Add(male); GenderTypeDropdownItems.Add(female); GenderTypeDropdownItems.Add(neutral); SelectedGenderTypeDropdownItem = female; // Using query parameters TryGetUsernameFromUri(); // Using route parameters //User.Username = Username; }