Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Application views structure

$
0
0

Hi,

I need to design an application containing 3 main parts:
1. Top menu - which is available on most screens of the app
2. Bottom menu - which is available on most screens of the app
3. Middle part - based on selection from 1. and 2. something is displayed.

Ad1.: The top menu will have 4 buttons, I want those buttons horizontal on full width of the screen
Ad2: The bottom menu will have 3 buttons, I want those buttons horizontal on full width of the screen

The app will be written in Xamarin.Forms for UWP at first place, but in near future also maybe for iOS and Android.

Questions:
1. How can I create those menus so when changing the middle part of the view, I will have the menu as well?
2. What should be the XAML code for the menu so its width is as big as screen and there is no gap between each of 4 buttons?

This code gives me a similar results but there are gaps between buttons:
<StackLayout Padding="0,0,0,30" Orientation="Horizontal"> <Button x:Name="Button1" Text="Click first" Margin="0,0,0,0" Clicked="button1_Clicked"/> <Button x:Name="Button2" Text="Click second" Margin="0,0,0,0" Clicked="button2_Clicked"/> <Button x:Name="Button3" Text="Click third" Margin="0,0,0,0" Clicked="button3_Clicked"/> <Button x:Name="Button4" Text="Click fourth" Margin="0,0,0,0" Clicked="button4_Clicked"/> </StackLayout>


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>