Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question : (Produce new GUI components & handling events) Add a custom UserControl for calculating the BMI of user. The window name of the Main

Question : (Produce new GUI components & handling events) Add a custom UserControl for calculating the BMI of user. The window name of the Main Menu is MainMenu. Use C# WPF.

image text in transcribed

image text in transcribed

image text in transcribed

Main Window O There are three buttons and a label on the main window. Welcome to B-HEALTY APP BMI & Activities Window: Title is Menu, height is 400 and width is 300. BeHealthy Web Page Buttons: Font size is 16, font weight is bold. Change the background color as "Azure" Exit UserControl1.xaml + x Enter Height in m Enter Weight in kg There are three labels, three textboxes and a button. When "Calculate" button is clicked: BMI is calculated using the formula: BMI= weight (in kg)/ height (in m. Result will be written in the third textbox. Based on the result, change the background color of textbox. If BMI is in the range of 18.5-25 background should be green, otherwise red. Calculate Your BME Hint: After completing design, build your solution. Window 1: Create the following Ul. The first component of the GUI (on the left side) is the UserControl created in the previous step. Then in the physical activities part a list box and 3 buttons are placed. Using listbox a user can select the daily activities that they perform. Hint: A user can select more than one item. In XAML part you should add a new property: SelectionMode="Multiple" to enable multiple selection. BMI - Activities Calculate BMI: Select Physical Activities: Result Enter Height in 1.75 Jogging Running Swimming Play Tennis Play Basketball Enter Weight in kg 50-2 Visit Be Healhy Web Button Events: "Result" Button: Displays if the user is healthy or not by checking the number of activities. If the user selects at least two activities, it will give a message as shown in MessageBox. Otherwise, display "Not Enough Activity!" "Visit Be Healthy Web Button: Show Window 2. Hide the current. a Calculate Your BMI 19.66 Back to Menu 2 activities Healthy Window 2: In this window, there are two buttons and a frame to display a web page by using navigation. Use the Uri: https://www.who.int/ O Hot Reload Show Wege Back To Menu Button Events: World Health Organization "Show Web Page" Button: Navigate to the given Uri. EMERGENCY COVID-19 quick links "Back to Menu" Button: Advice for the public Coronavirus disease + Country & Technical Guidance Show MainWindow. Hide the current. Main Window O There are three buttons and a label on the main window. Welcome to B-HEALTY APP BMI & Activities Window: Title is Menu, height is 400 and width is 300. BeHealthy Web Page Buttons: Font size is 16, font weight is bold. Change the background color as "Azure" Exit UserControl1.xaml + x Enter Height in m Enter Weight in kg There are three labels, three textboxes and a button. When "Calculate" button is clicked: BMI is calculated using the formula: BMI= weight (in kg)/ height (in m. Result will be written in the third textbox. Based on the result, change the background color of textbox. If BMI is in the range of 18.5-25 background should be green, otherwise red. Calculate Your BME Hint: After completing design, build your solution. Window 1: Create the following Ul. The first component of the GUI (on the left side) is the UserControl created in the previous step. Then in the physical activities part a list box and 3 buttons are placed. Using listbox a user can select the daily activities that they perform. Hint: A user can select more than one item. In XAML part you should add a new property: SelectionMode="Multiple" to enable multiple selection. BMI - Activities Calculate BMI: Select Physical Activities: Result Enter Height in 1.75 Jogging Running Swimming Play Tennis Play Basketball Enter Weight in kg 50-2 Visit Be Healhy Web Button Events: "Result" Button: Displays if the user is healthy or not by checking the number of activities. If the user selects at least two activities, it will give a message as shown in MessageBox. Otherwise, display "Not Enough Activity!" "Visit Be Healthy Web Button: Show Window 2. Hide the current. a Calculate Your BMI 19.66 Back to Menu 2 activities Healthy Window 2: In this window, there are two buttons and a frame to display a web page by using navigation. Use the Uri: https://www.who.int/ O Hot Reload Show Wege Back To Menu Button Events: World Health Organization "Show Web Page" Button: Navigate to the given Uri. EMERGENCY COVID-19 quick links "Back to Menu" Button: Advice for the public Coronavirus disease + Country & Technical Guidance Show MainWindow. Hide the current

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions