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

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
tomny
Posts: 38
Joined: Sat Nov 19, 2016 7:23 pm

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

Postby tomny » Sun Nov 27, 2016 7:03 pm

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 30892 times

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


Thanks,
Tomny
Attachments
SLEditon2.zip
(19.27 KiB) Downloaded 587 times

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Mon Dec 05, 2016 2:23 am

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

tomny
Posts: 38
Joined: Sat Nov 19, 2016 7:23 pm

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

Postby tomny » Wed Dec 07, 2016 3:46 pm

Hi JS-Support,

thank you for your reply. Your code works fine.

Regards,
Tomny

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

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

Postby JS-Support @Userware » Fri Feb 01, 2019 8:29 am

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 26 guests

 

 

cron