예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
        }