Answer the question
In order to leave comments, you need to log in
Why does space appear at the top of the xamarin form, even though I did not write it?
<?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="WindyBox1.InputPage">
<ContentPage.Content>
<StackLayout BackgroundColor="#2051fb">
<Label Text="WindyBox"
FontSize="15"/>
<CollectionView ItemsSource="{Binding Coolers}"
SelectionMode="Single"
BackgroundColor="#4fa1fb"
SelectionChanged="SelectChanged">
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid Padding="10"
RowDefinitions="Auto, *"
ColumnDefinitions="Auto, *">
<Image Source="Cooler.png"
WidthRequest="80"
HeightRequest="80"
Grid.RowSpan="2"
Grid.Row="0"
Grid.Column="0"/>
<Label Text="{Binding Name}"
Grid.Row="0"
Grid.Column="1"/>
<Label Text="{Binding Condition}"
Grid.Row="1"
Grid.Column="1"/>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
<Button Text="Подключиться к устройству"
x:Name="ConnectDeviceButton"
IsEnabled="False"
Clicked="ConnectDeviceButton_Clicked"/>
</StackLayout>
</ContentPage.Content>
Answer the question
In order to leave comments, you need to log in
In general, I found a solution, all due to the fact that there we placed the page in the navigation page.
It is necessary to write in the page:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="WindyBox1.InputPage"
NavigationPage.HasNavigationBar="false">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question