Skip to content

Instantly share code, notes, and snippets.

View luismts's full-sized avatar
🚀
Kaizen

Luis Matos luismts

🚀
Kaizen
View GitHub Profile
<ImageButton Aspect="AspectFill" BorderColor="Purple" BorderWidth="3"
Source="xamarin_logo.png" AutomationProperties.HelpText="Xamarin Logo" />
WebView myWebView = new WebView();
myWebView.Reload();
<Shell xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TailwindTraders"
x:Class=" TailwindTraders.Shell"
Title="TailwindTraders">
<ShellItem Title="Home">
<ShellSection>
<ShellContent>
<local:HomePage />
</ShellContent>
<CollectionView ItemsSource="{Binding Blogs}">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
public class RestService : IRestService
{
HttpClient client;
...
public RestService ()
{
client = new HttpClient (); // Creating the HTTPClient Object
}
/// XF Project
namespace UsingDependencyService
{
public interface IToDo {
void ToDo (); //note that interface members are public by default
}
}
namespace UsingDependencyService.Service
{
...
Forms.SetFlags("Visual_Experimental");
...
<ContentPage ...
Visual="Material">
...
</ContentPage>
...
new Entry { Placeholder = "Sigueme en las redes @luismatosluna", Keyboard = Keyboard.Numeric }
.Grid.Row(2) .Grid.ColumnSpan(2) .Margin(myMargin) .Height(20)
.Bind(nameof(vm.RegistrationCode), BindingMode.TwoWay),
...
@luismts
luismts / Entry.xaml
Last active December 10, 2019 14:54
...
<Entry Placeholder="Sigueme en las redes @luismatosluna" Keyboard="Numeric"
Margin="{StaticResource myMargin}" HeightRequest="20"
Grid.Row="2" Grid.ColumnSpan="2"
Text="{Binding RegistrationCode, Mode=TwoWay}" />
...