Page 1 of 1

[SOLVED] X: FieldModifier = "Public" It does not work

Posted: Sun Nov 27, 2016 7:03 pm
by tomny
Dear JS-Support,

I hope in the MainPage and ChildWindow, their child controls can be controlled, so I used the X: FieldModifier = "Public", but it seems to have no effect. The code is shown in the following screenshot:
Image001.png
Image001.png (20.66 KiB) Viewed 30880 times

Image002.png
Image002.png (9.9 KiB) Viewed 30880 times


Thanks,
Tomny

Re: X: FieldModifier = "Public" It does not work

Posted: Mon Dec 05, 2016 2:23 am
by JS-Support @Userware
Hi Tomny,

Thanks for your message. We are going to add this feature asap.

In the meantime, controls are "protected", so if you want to expose them publicly, you need to create a public property such as:

Code: Select all

public FrameworkElement TextBox1
{
  get
  {
    return this.textBox1;
  }
}


Thanks.

Regards,
JS-Support

Re: X: FieldModifier = "Public" It does not work

Posted: Wed Dec 07, 2016 3:46 pm
by tomny
Hi JS-Support,

thank you for your reply. Your code works fine.

Regards,
Tomny

Re: [SOLVED] X: FieldModifier = "Public" It does not work

Posted: Fri Feb 01, 2019 8:29 am
by JS-Support @Userware
Hi,

The "x:FieldModifier" feature is now available in v1.2 beta 11 and newer.

You can download it from:
http://forums.cshtml5.com/viewforum.php?f=6

Thanks
Regards