This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1380 from xamarin/ios-memory-scope
iOS Keep things in scope
- Loading branch information
Showing
10 changed files
with
76 additions
and
184 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<view:BasePage | ||
x:Class="Samples.View.ContactsPage" | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:view="clr-namespace:Samples.View" | ||
xmlns:viewmodel="clr-namespace:Samples.ViewModel" | ||
Title="Contact Page"> | ||
<view:BasePage x:Class="Samples.View.ContactsPage" | ||
xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:view="clr-namespace:Samples.View" | ||
xmlns:viewmodel="clr-namespace:Samples.ViewModel" | ||
Title="Contacts"> | ||
|
||
<view:BasePage.BindingContext> | ||
<viewmodel:ContactsViewModel /> | ||
</view:BasePage.BindingContext> | ||
|
||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="1" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<StackLayout> | ||
<Label Text="Get and add contacts in your device." FontAttributes="Bold" Margin="12" /> | ||
|
||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
<ScrollView> | ||
<StackLayout Padding="12,0,12,12" Spacing="6"> | ||
|
||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="Auto" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Label FontAttributes="Bold" Text="Name:" /> | ||
<Label Text="{Binding Name}" /> | ||
|
||
<Label FontAttributes="Bold" Text="Name:" /> | ||
<Label FontAttributes="Bold" Text="Numbers:" /> | ||
<Label Text="{Binding Phones}" /> | ||
|
||
<Label | ||
Grid.Column="1" | ||
HorizontalTextAlignment="Start" | ||
Text="{Binding Name}" /> | ||
<Label FontAttributes="Bold" Text="Emails:" /> | ||
<Label Text="{Binding Emails}" /> | ||
|
||
<Label | ||
Grid.Row="2" | ||
FontAttributes="Bold" | ||
Text="Numbers:" /> | ||
<Label FontAttributes="Bold" Text="Contact Type:" /> | ||
|
||
<Label | ||
Grid.Row="2" | ||
Grid.Column="1" | ||
HorizontalTextAlignment="Start" | ||
Text="{Binding Phones}" /> | ||
<Label Text="{Binding ContactType}" /> | ||
|
||
<Label | ||
Grid.Row="3" | ||
FontAttributes="Bold" | ||
Text="Emails:" /> | ||
<Button Command="{Binding GetContactCommand}" Text="Get Contact" /> | ||
|
||
<Label | ||
Grid.Row="3" | ||
Grid.Column="1" | ||
HorizontalTextAlignment="Start" | ||
Text="{Binding Emails}" /> | ||
</StackLayout> | ||
</ScrollView> | ||
</StackLayout> | ||
|
||
<Label | ||
Grid.Row="4" | ||
FontAttributes="Bold" | ||
Text="Contact Type:" /> | ||
|
||
<Label | ||
Grid.Row="4" | ||
Grid.Column="1" | ||
HorizontalTextAlignment="Start" | ||
Text="{Binding ContactType}" /> | ||
|
||
<Button | ||
Grid.Row="5" | ||
Grid.ColumnSpan="2" | ||
Command="{Binding GetContactCommand}" | ||
Text="Get Contact" /> | ||
</Grid> | ||
</Grid> | ||
</view:BasePage> |
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
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
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
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
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
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
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