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: 37
Joined: Sat Nov 19, 2016 7:23 pm

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

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


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

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

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

Postby JS-Support » 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: 37
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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests

 

 

cron