Link to home
Start Free TrialLog in
Avatar of a_anis3000
a_anis3000Flag for Egypt

asked on

Setting Owner property of a child window in the owner's constructor causes a XamlParseException

Suppose I have two windows the owner called MainWindow and the child window called PasswordWindow. If I attempt to set the Owner property of the PasswordWindow to MainWindow in the MainWindow's constructor it compiles but throw a XamlParserException exception when run. See and download this code for example about what I mean
Avatar of a_anis3000
a_anis3000
Flag of Egypt image

ASKER

Forgot to mention setting the owner property elsewhere works (For example in the event handler of a button), the exception occurs only if setting the property is attempted in the constructor
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of deekayexpert
deekayexpert

Setting of owner property is sole system They have to knowledge to sell and by and to do any programed  is child program he want to do some program by the inter peter  given information than processed after given information is currency.