value = Activator.CreateInstance(type);
if (value is BindableObject)
{
- ((BindableObject)value).isCreateByXaml = true;
+ ((BindableObject)value).IsCreateByXaml = true;
}
}
}
object ret = Activator.CreateInstance(nodeType, arguments);
if (ret is BindableObject)
{
- ((BindableObject)ret).isCreateByXaml = true;
+ ((BindableObject)ret).IsCreateByXaml = true;
}
return ret;
}
value = Activator.CreateInstance(nodeType);
if (value is BindableObject)
{
- ((BindableObject)value).isCreateByXaml = true;
+ ((BindableObject)value).IsCreateByXaml = true;
}
}
public TextEditor() : this(NDalicPINVOKE.TextEditor_New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- this.TextChanged += (obj, e) =>
+ }
+
+ internal override bool IsCreateByXaml
+ {
+ get
{
- this.Text = this.Text;
- };
+ return base.IsCreateByXaml;
+ }
+ set
+ {
+ base.IsCreateByXaml = value;
+
+ if (value == true)
+ {
+ this.TextChanged += (obj, e) =>
+ {
+ this.Text = this.Text;
+ };
+ }
+ }
}
internal TextEditor(TextEditor handle) : this(NDalicPINVOKE.new_TextEditor__SWIG_1(TextEditor.getCPtr(handle)), true)
public TextField() : this(NDalicPINVOKE.TextField_New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- this.TextChanged += (obj, e) => {
- this.Text = this.Text;
- };
+ }
+
+ internal override bool IsCreateByXaml
+ {
+ get
+ {
+ return base.IsCreateByXaml;
+ }
+ set
+ {
+ base.IsCreateByXaml = value;
+
+ if (value == true)
+ {
+ this.TextChanged += (obj, e) =>
+ {
+ this.Text = this.Text;
+ };
+ }
+ }
}
internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
public PushButton() : this(NDalicPINVOKE.PushButton_New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- this.Clicked += (sender, e) =>
+ }
+
+ internal override bool IsCreateByXaml
+ {
+ get
{
- ICommand command = this.Command;
- if (command != null)
+ return base.IsCreateByXaml;
+ }
+ set
+ {
+ base.IsCreateByXaml = value;
+
+ if (value == true)
{
- command.Execute(this.CommandParameter);
+ this.Clicked += (sender, e) =>
+ {
+ ICommand command = this.Command;
+ if (command != null)
+ {
+ command.Execute(this.CommandParameter);
+ }
+ return true;
+ };
}
- return true;
- };
+ }
}
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
public Slider() : this(NDalicPINVOKE.Slider_New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
- this.ValueChanged += (obj, e) => {
- this.Value = e.SlideValue;
- return true;
- };
+ internal override bool IsCreateByXaml
+ {
+ get
+ {
+ return base.IsCreateByXaml;
+ }
+ set
+ {
+ base.IsCreateByXaml = value;
+
+ if (value == true)
+ {
+ this.ValueChanged += (obj, e) => {
+ this.Value = e.SlideValue;
+ return true;
+ };
+ }
+ }
}
internal Slider(Slider handle) : this(NDalicPINVOKE.new_Slider__SWIG_1(Slider.getCPtr(handle)), true)
SetBinding(targetProperty, binding, false);
}
- internal bool isCreateByXaml = false;
+ private bool isCreateByXaml = false;
+ internal virtual bool IsCreateByXaml
+ {
+ get
+ {
+ return isCreateByXaml;
+ }
+ set
+ {
+ isCreateByXaml = value;
+ }
+ }
/// <summary>
/// Sets the value of the specified property.
[EditorBrowsable(EditorBrowsableState.Never)]
public ContentPage(Window win)
{
- isCreateByXaml = true;
+ IsCreateByXaml = true;
Root = new View();
Root.WidthResizePolicy = ResizePolicyType.FillToParent;