Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7762ef8
commit c4ae67d
Showing
5 changed files
with
41 additions
and
23 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,27 +1,25 @@ | ||
<?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:local="clr-namespace:DemoBluetooth" | ||
x:Class="DemoBluetooth.MainPage"> | ||
<ContentPage.Content> | ||
<StackLayout> | ||
<Button Text="Search" Clicked="searchDevice"/> | ||
<ListView x:Name="DevicesList" | ||
IsPullToRefreshEnabled="true" | ||
CachingStrategy="RecycleElement"> | ||
CachingStrategy="RecycleElement" | ||
ItemSelected="DevicesList_OnItemSelected"> | ||
<ListView.ItemTemplate> | ||
<DataTemplate> | ||
<ViewCell> | ||
<StackLayout> | ||
<Label Text="{Binding NativeDevice.Name}" ></Label> | ||
<Label Text="{Binding NativeDevice.Name}"></Label> | ||
<Label Text="{Binding NativeDevice.Address}" ></Label> | ||
<Label Text="{Binding NativeDevice.BondState}" ></Label> | ||
</StackLayout> | ||
</ViewCell> | ||
</DataTemplate> | ||
</ListView.ItemTemplate> | ||
</ListView> | ||
|
||
</StackLayout> | ||
</ContentPage.Content> | ||
</ContentPage> |
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