xamarin/Xamarin.Forms

[Feedback] BindingError (Type Binding not found in xmlns)

オープン

#4,553 opened on 2018/11/27

 (3 件のコメント) (0 件のリアクション) (1 人の担当者)C# (1,926 件のフォーク)batch import
a/Xaml </>e/4 :clock4:feedback-tickethelp wantedinactiveup-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

Binding Error when it is compiled

(I am using Xamarin 3.4.0 but see the same issue in 3.3.0)

If the <Grid.ColumnDefinitions /> is replaced with

 <Grid.ColumnDefinitions >
 </Grid.ColumnDefinitions>

Then the error goes away!!!!!

How to Reproduce.

  1. Create a xamarin app (any environment, I used UWP).
  2. Replace MainPage.xaml with the code provided below.
  3. Build. (it should fail)
  4. Replace the single-line ColumnDefinitions with a double line definition.
  5. Build again.

This is what is in my MainPage.xaml.

<?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:BindingError"
             x:Class="BindingError.MainPage">

    <Grid IsVisible="{Binding}">
        <Grid.ColumnDefinitions />
    </Grid>
</ContentPage>

View on Developer Community To find diagnostic information, see the original linked feedback ticket.

Source

736025

コントリビューターガイド