Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ContentPage.ToolbarItems>
- <ToolbarItem Icon="logo.png" Activated="RefButtonClicked"></ToolbarItem>
- </ContentPage.ToolbarItems>
- var cancelItem = new ToolbarItem
- {
- Text = "Cancel",
- Icon = "tabalilogo.png",
- Order = ToolbarItemOrder.Secondary
- };
- NavigationPage.SetHasNavigationBar(this, false);
- <AbsoluteLayout x:Name="slToolbar" Grid.Row="0" >
- <Button x:Name="Cancel" BackgroundColor="#ADD8E6" Image="cancel.png" Command="{Binding CancelClick}" AbsoluteLayout.LayoutFlags="PositionProportional">
- <AbsoluteLayout.LayoutBounds>
- <OnPlatform x:TypeArguments="Rectangle" iOS="0, .5, 36, 36" Android="0, .5, 36, 36" WinPhone="0, .5, 50, 50" />
- </AbsoluteLayout.LayoutBounds>
- </Button>
- <StackLayout Orientation="Horizontal" AbsoluteLayout.LayoutFlags="PositionProportional">
- <AbsoluteLayout.LayoutBounds>
- <OnPlatform x:TypeArguments="Rectangle" iOS="1,.5,110,50" Android="1,.5,50,36" WinPhone="1,.5,110,50" />
- </AbsoluteLayout.LayoutBounds>
- <ContentView >
- <OnPlatform x:TypeArguments="View">
- <OnPlatform.iOS>
- <Button x:Name="NewIOS" BackgroundColor="#ADD8E6" Image="ic_add.png" Command="{Binding AddNew}" ></Button>
- </OnPlatform.iOS>
- <OnPlatform.WinPhone>
- <Button x:Name="NewWP" BackgroundColor="#ADD8E6" Command="{Binding AddNew}" Image="ic_add.png"/>
- </OnPlatform.WinPhone>
- </OnPlatform>
- </ContentView>
- <Button x:Name="btnSave" BackgroundColor="#ADD8E6" Image="check.png" Command="{Binding SaveClick}" HorizontalOptions="End" ></Button>
- </StackLayout>
- </AbsoluteLayout>
- <ContentPage>
- <NavigationPage.TitleView>
- <StackLayout Orientation="Horizontal" VerticalOptions="Center" Spacing="10">
- <Image Source="iconXamagon.png">
- <Image.GestureRecognizers>
- <Image.TapGestureRecognizer
- Tapped="HandleTapped" />
- </Image.GestureRecognizers>
- </Image>
- <Label Text="3.2.0" FontSize="16" TextColor="Black" VerticalTextAlignment="Center" />
- </StackLayout>
- </NavigationPage.TitleView>
- ....
Add Comment
Please, Sign In to add comment