Question: MasterDetailPage Create a new Xamarin Forms project named Inclass5. Add a ResourceDictionary to your App XAML page for heading labels. Style it the same as

MasterDetailPage

Create a new Xamarin Forms project named Inclass5.

Add a ResourceDictionary to your App XAML page for heading labels. Style it the same as previous heading labels.

Add a Xaml ContentPage to your project named MasterDetailDemo.

In MasterDetailDemo.xaml change the ContentPage element to a MasterDetailPage element. Do not forget to change the .cs file also. Now set the Master property of the MasterDetailPage () to a ContentPage that contains a StackLayout that contains one Label and four Buttons.

The Label should say Master Page.

The text for the first button should be Label.

The text for the second button should be BoxView.

The text for the third button should be Frame.

The text for the third button should be ScrollView.

Copy your LabelDemo, BoxViewDemo, FrameDemo, and ScrollViewDemo from previous inclass assignments to this project.

Set the Detail property of the MasterDetailPage to an instance of your LabelDemo class.

Connect the first button in MasterDetailDemo.xaml to a method that loads an instance of LabelDemo. Do the same for button two (BoxView), three (FrameDemo) and four (ScrollViewDemo). Dont forget to set the IsPresented property to false.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!