This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Xamarin.Forms; | |
| using Xamarin.Forms.Xaml; | |
| namespace CarouselViewSample | |
| { | |
| public partial class App : Application | |
| { | |
| public App() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:d="http://xamarin.com/schemas/2014/forms/design" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="CarouselViewSample.MainPage"> | |
| <StackLayout HorizontalOptions="Center" VerticalOptions="Center" HeightRequest="100"> | |
| <CarouselView x:Name="TheCarousel"> | |
| <CarouselView.ItemsSource> | |
| <x:Array Type="{x:Type x:String}"> | |
| <x:String>Hey...</x:String> | |
| <x:String>Psssst...!</x:String> | |
| <x:String>Did you check out...</x:String> | |
| <x:String>The awesome new CarouselView</x:String> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Label> | |
| <Label.Text> | |
| <x:String> | |
| <![CDATA[ | |
| <h1>Hello world!</h1><br/>SecondLine | |
| ]]> | |
| </x:String> | |
| </Label.Text> | |
| </Label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Label TextType="Html"> | |
| <Label.Text> | |
| <h1>Hello World!</h1><br/>SecondLine | |
| </Label.Text> | |
| </Label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zxing.Options.DelayBetweenAnalyzingFrames = 5; | |
| zxing.Options.DelayBetweenContinuousScans = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void UpdateSelectedTabColors() | |
| { | |
| // Retrieve all tab header textblocks | |
| var allTabHeaderTextBlocks = Control.GetDescendantsByName<WTextBlock>(TabBarHeaderTextBlockName).ToArray(); | |
| // Loop through all pages in the Pivot control | |
| foreach (Page page in Control.Items) | |
| { | |
| // Fetch just the textblock for the current page | |
| var tabBarTextBlock = allTabHeaderTextBlocks[Control.Items.IndexOf(page)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void UpdateSelectedTabColors() | |
| { | |
| if (Tabbed == null || TabBar == null || TabBar.Items == null) | |
| return; | |
| if (Tabbed.IsSet(TabbedPage.SelectedTabColorProperty) && Tabbed.SelectedTabColor != Color.Default) | |
| TabBar.SelectedImageTintColor = Tabbed.SelectedTabColor.ToUIColor(); | |
| else | |
| TabBar.SelectedImageTintColor = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Xamarin.Forms.Controls | |
| { | |
| public class RootTabbedContentPage : TabbedPage | |
| { | |
| public RootTabbedContentPage () | |
| { | |
| var tabOne = new ContentPage { | |
| Title = "Testing 123", | |
| Content = new AwesomeContent() | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Color TabbedPage.UnselectedTabColor { get; set; } //Bindable Property | |
| Color TabbedPage.SelectedTabColor { get; set; } //Bindable Property |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| On<Android>().SetBarItemColor(Color.Red); // Unselected image+text color | |
| On<Android>().SetBarSelectedItemColor(Color.White); // Selected image+text color |