How do i bind a static value to a view property?

tadeurahiantadeurahian BRMember
edited June 2016 in Xamarin.Forms

Hi!

I'm trying to do a component on Xamarin Forms, this component should receive some static values.

View code behind:

public partial class CustomEntry : ContentView { public string TextColor { get; set; } public string FocusedTextColor { get; set; } /*...*/ }

I don't think this should be bindable properties, because they static, one time only bind, so i just tried to do this:

<components:CustomEntry x:Name="NewPassword" TextColor="#A39E9C" FocusedTextColor="#CE6827"></components:CustomEntry>

With no success. =( All the values are null.

Can anyone tell me what am i doing wrong?

Thanks in advance, and sorry for my bad english.

Sign In or Register to comment.