wpf - Prevent windows from opening -


hi ask strange question. testing wpf application.

my current object under test wf application spontaneously opens informational dialogs. dialogs modal , can open every time. pretty disturbing automated test running on application. whenever tester accesses visual tree , try access gui (like invoking buttons etc.) can happen such dialog window opens, blocking gui modality , making test fail.

one idea solve prevent dialogs opening. can not change behaviour of application under test directly can subscribe window events (like initialized, loaded, rendered, etc.). use 1 of events prevent windows opening , modally blocking gui.

i tried using loaded event since last event before window displayed calling close() on corresponding window causes crashes. tried hide()... prevents window getting visible gui still blocked invisible dialog.

does have idea how prevent wpf window/dialog opening or @ least modally blocking gui?

if use dialogservice dialogs can mock testing


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -