Hello,
My question is in regards to customizing IWS with C#.
In the past while customizing IWS I found found the occasional need to maximize an interaction window within code. When I have needed to do this, I have always had a custom control (derived from UserControl) that is placed in a view. I would typically attach a method to fire after the control is loaded:
this.Loaded += new RoutedEventHandler(MainView_Loaded);
In my MainView_Loaded method:
Window parentWindow = Window.GetWindow(this);
parentWindow.WindowState = WindowState.Maximized;
This has worked nicely for me in the past.
However I am wondering how I might be able to maximize an interaction window in a scenario that I am not placing a custom control on this screen. Is this possible? I have thought of placing a dummy hidden control, which is a solution, it just seems like a strange one. I am not sure how to obtain a reference to the actual interaction window, or something that is derived from a Dependency Object.
My second question is, is it possible to programmatically re-size regions? I am interested in re-sizing InteractionWorksheetRegion when an interaction loads. Haven't seen anything in the API yet about this.
Regards,
Andrew