[SOLVED] Error on ChildWindow

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.
Nick
Posts: 55
Joined: Tue May 30, 2017 9:44 am
Contact:

[SOLVED] Error on ChildWindow

Postby Nick » Sat Nov 24, 2018 11:23 am

see sample attached,

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace Application16
{
public partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
this.GotFocus += MainPage_GotFocus; // :!: dosent work!
// Enter construction logic here...
Login(); // :!: dosent work!
// Login(); work only from button click { private void Button_Click(object sender, RoutedEventArgs e)}
}

private void MainPage_GotFocus(object sender, RoutedEventArgs e)
{
Login();
}

private void Login()
{
ChildWindow cw = new ChildWindow();
cw.Content = "login form !!";
cw.ShowAndWait();
}

private void Button_Click(object sender, RoutedEventArgs e)
{
Login();
}
}
}
Attachments
Application16.zip
(4.21 KiB) Downloaded 3 times

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

Re: Error on ChildWindow

Postby JS-Support @Userware » Tue Nov 27, 2018 12:39 am

Thanks. We are going to fix this issue asap. In the meantime, a workaround is to register the "Loaded" event of the Page and put the code there.

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

Re: Error on ChildWindow

Postby JS-Support @Userware » Fri Dec 07, 2018 8:37 am

The issue has been fixed. This fix will be included in the next build. Thanks.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 3 guests

 

 

cron