This file contains 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
public async Task Loading() | |
{ | |
// Loading settings | |
Configurations.LoadingConfig = new LoadingConfig | |
{ | |
IndicatorColor = Color.White, | |
OverlayColor = Color.Black, | |
Opacity = 0.4, | |
DefaultMessage = "Carregando (Uma hora acaba)...", | |
}; |
This file contains 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" | |
Padding="0,60,0,0" | |
x:Class="XamarinFormsAiFormsDialogs.MainPage"> | |
<StackLayout> | |
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0"> | |
<Label Text="Vamos utilizar o AiForms.Dialogs" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/> | |
</Frame> |
This file contains 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 Android.App; | |
using Android.Content.PM; | |
using Android.Runtime; | |
using Android.OS; | |
namespace XamarinFormsAiFormsDialogs.Droid | |
{ | |
[Activity(Label = "XamarinFormsAiFormsDialogs", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )] |
This file contains 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 System.Collections.Generic; | |
using System.Linq; | |
using Foundation; | |
using UIKit; | |
namespace XamarinFormsAiFormsDialogs.iOS | |
{ | |
[Register("AppDelegate")] |
This file contains 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 System.Threading.Tasks; | |
using MvvmHelpers; | |
using Xamarin.Forms.EventAggregator; | |
using XamarinFormsEventAggregatorSample.Events; | |
namespace XamarinFormsEventAggregatorSample.ViewModels | |
{ | |
public class MessageViewModel : BaseViewModel | |
{ |
This file contains 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" | |
x:Class="XamarinFormsEventAggregatorSample.MessagePage"> | |
<ContentPage.Content> | |
<StackLayout> | |
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0"> | |
<Label Text="EventAggregator" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/> | |
</Frame> |
This file contains 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 System.Threading.Tasks; | |
using MvvmHelpers; | |
using Xamarin.Forms.EventAggregator; | |
using XamarinFormsEventAggregatorSample.Events; | |
namespace XamarinFormsEventAggregatorSample.ViewModels | |
{ | |
public class MainViewModel : BaseViewModel | |
{ |
This file contains 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" | |
x:Class="XamarinFormsEventAggregatorSample.MainPage"> | |
<StackLayout> | |
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0"> | |
<Label Text="EventAggregator" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/> | |
</Frame> | |
<Label Text="Write a message on the other screen and go back" FontSize="Title" Padding="{StaticResource SamplePadding}"/> |
This file contains 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; | |
namespace XamarinFormsEventAggregatorSample.Events | |
{ | |
public class TextMessage | |
{ | |
public string Text { get; set; } | |
} | |
} |
This file contains 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:over="clr-namespace:OverFlower;assembly=OverFlower" | |
Padding="0,60,0,0" | |
x:Class="OverFlowerExemplo.MainPage"> | |
<StackLayout Margin="0,32,0,0" | |
HorizontalOptions="Center" |