Bug 29300 - XamlCompilation Not builds user defined BindableProperties
Summary: XamlCompilation Not builds user defined BindableProperties
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Stephane Delcroix
URL:
Depends on:
Blocks:
 
Reported: 2015-04-22 06:24 UTC by ebubekirakgul
Modified: 2015-08-05 14:02 UTC (History)
6 users (show)

Tags: xaml xamlc build ac
Is this bug a regression?: ---
Last known good build:


Attachments
Sample problem that bug occurs (166.43 KB, application/x-zip-compressed)
2015-05-07 02:32 UTC, ebubekirakgul
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description ebubekirakgul 2015-04-22 06:24:24 UTC
if I create a bindable property in my custom View and assign it from xaml without any markup(with constant value), its not building.

Example: 
    public class TelerikLineSeries :ContentView
    {
        public static readonly BindableProperty VerticalIntervalProperty =
                    BindableProperty.Create<TelerikLineSeries, double>((p) => p.VerticalInterval, default(double), BindingMode.TwoWay, null);

        public double VerticalInterval
        {
            get { return (double)GetValue(VerticalIntervalProperty); }
            set { SetValue(VerticalIntervalProperty, value); }
        }
...


and the xaml: <UI:TelerikLineSeries Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2"   BindingContext="{Binding HourAvgTonHistory}" VerticalInterval="1" />


Error Message: 
Error	10	Value cannot be null.
Parameter name: type	W:\FormsProjects\SampleProject.Mobile\SampleProject.Mobile\SampleProject.Monitoring.Dashboard.Views.MaterialMatrixView.xaml	SampleProject.Mobile
Comment 1 ebubekirakgul 2015-04-22 06:31:58 UTC
You can workaround untill bug resolve:

        <UI:TelerikLineSeries Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2"   BindingContext="{Binding HourAvgTonHistory}">
          <UI:TelerikLineSeries.VerticalInterval>
            <x:Double>1</x:Double>
          </UI:TelerikLineSeries.VerticalInterval>
        </UI:TelerikLineSeries>
Comment 2 Parmendra Kumar 2015-05-06 14:17:25 UTC
@ebubekirakgul

I have checked this issue but I am not able to reproduce it.
Here is the screencast for the same: http://www.screencast.com/t/J0afxGa4iMh
Could you please provide us sample project, build output? So that we can reproduce it at our end.

Thanks.
Comment 3 ebubekirakgul 2015-05-07 02:32:13 UTC
Created attachment 11110 [details]
Sample problem that bug occurs

You can find a sample solution which the bug occurs when you're run to project. (Please check MainPage.xaml for further info)
Comment 4 Parmendra Kumar 2015-05-07 06:27:59 UTC
I have checked this issue with attached sample in comment #3.
I am getting same issue mentioned in the bug description.

Screencast: http://www.screencast.com/t/AyECM6SeH09

IDELog: https://gist.github.com/Parmendrak/6a7a2997497c4c60e68c

Environment info:
Xamarin.Forms: 1.4.2.6359, 1..4.3-pre2

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin   3.11.503.0 (07f7cca)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   5.1.0.127 (cbdf025e886eacb95ce7adf53346961156fae990)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense   1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS   8.10.0.0 (7741cc495ab0baf04ff0405d0604bc27f0ecae2e)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 5 Parmendra Kumar 2015-08-05 14:02:53 UTC
I have checked this issue X.F 1.4.4.6392 and I am not still getting error message

Error Message: 
Error    10    Value cannot be null.
Parameter name: type 

Hence closing this issue. 

If you getting same issue please feel free to reopen this issue.