Code Snippet clicking the 'Show Popup' button, the popup window appears showing the hide button with aquamarine color as in the. This topic introduces the Popup control and provides information about its use. Sim = new SimpleCircleAdorner(mainPane) //create itĪdornerLayer parentAdorner = AdornerLayer.GetAdornerLayer(mainPane) The following window appears on running the application showing the popup button: 2. The Popup control provides a way to display content in a separate window that floats over the current application window relative to a designated element or screen coordinate. This code will not work because you are removing a UMAdorner which does not exisit in the window.It has been created jusu now.To fix this ,you should declare a field in you class and create a UMAdorner instance before you use it like this: > parentAdorner.Remove( new UMAdorner(mainPane)) You have posted 2 methods to us ,but it seems that there are some errors. > When I click Cancel or Submit on the popup, how do I return to my normal screen. SolidColorBrush sr= new SolidColorBrush() ÄrawingContext.DrawRectangle(sr, null, new Rect( new Point(0, 0), DesiredSize)) Protected override void OnRender( DrawingContext drawingContext) ![]() You can change the opacity when you are creating the Adorner.
0 Comments
Leave a Reply. |