如何在Tabs上方的TabbedPage中添加按钮

时间:2017-07-04 09:52:05

标签: xamarin.forms

这可以创造吗?我需要在标签上方添加2个按钮,如下所示:

<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"          
    xmlns:local ="clr-namespace:SembIWIS.View"  
       x:Class="myApp.MainPage">

  <local:ProductPage>
  </local:ProductPage>

  <local:ServicePage>
  </local:ServicePage>

</TabbedPage>

How to add two buttons in the TabbedPage, so It will look like :

 |----------------------|
 | TabbedPage           |
 |----------------------|
 |                      |
 |  btn1        btn2    |
 |                      |
 |----------------------|
 | Tab1 | tab2 | tab3 ..|
 |----------------------|
 |                      |
 |                      |
 |                      | 
 ------------------------

1 个答案:

答案 0 :(得分:0)

是的,这可以做到。您可以使用简单的b -> c结构,也可以使用positionals :: (Enum a, Eq a, Num a) => [a] -> [a] positionals = map fst . filter (\(x, y) -> x == y) . zip [1..] 使用Grid。这是StackLayouts版本:

VerticalOptions = EndAndExpand
相关问题