c# - Sometimes custom loading popup doesn't show -
in application loading popup shown every time when call it. times doesn't show , same situation. popup custom usercontrol object made wpf.
popup in mainwindow.xaml:
<viewbox stretch="fill"> <grid> <grid x:name="body" height="768" width="1024" background="{staticresource scbpassivecolor}" /> <src:infopane x:name="infopanemaster" visibility="collapsed" verticalalignment="top" horizontalalignment="center" /> </grid> </viewbox>
in body of main window application loads selected layout/view. before new layout loaded program calls :
layoutcommands.displayinfopane(msgloginsuccess, ropinfo.info, null);
implementation:
public void displayinfopane(string infotext, ropinfo infotype, int? displaytime) { stoptimer(); settimer(displaytime ?? defaultdisplaytime); prepareinfopane(infotext, infotype); colcloseicon.width = new gridlength(0); this.visibility = visibility.visible; }
the popup automatically closes (sets visibility collapsed) after default time.
why popup doesn't show? associated rendering?
Comments
Post a Comment