4

Closed

[SL5] Add MultiWindow Support to WindowManager

description

Add MultiWindow Support to SL5 WindowManager
Closed Sep 16, 2013 at 1:10 AM by EisenbergEffect
Silverlight is dead.

comments

tibel wrote Jun 6, 2013 at 5:30 PM

Some hints can be found at Silverlight 5: Multiple Windows.

Sample implementation for setting the window title in an out-of-browser application:
private static void SetWindowTitle(Window window, IHaveDisplayName haveDisplayName) {
    window.Title = haveDisplayName.DisplayName;
    
    var propertyChanged = haveDisplayName as INotifyPropertyChanged;
    if (propertyChanged != null) {
        propertyChanged.PropertyChanged += (sender, args) => {
                if (args.PropertyName == "DisplayName") {
                    window.Title = haveDisplayName.DisplayName;
                }
            };
    }
}
REMARKS: check if (Application.IsRunningOutOfBrowser && Application.HasElevatedPermissions)