Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

Commented Feature: Add MultiWindow Support to SL5 WindowManager [199]

$
0
0
Add MultiWindow Support to SL5 WindowManager
Comments: Some hints can be found at [Silverlight 5: Multiple Windows](http://trelford.com/blog/post/sl5multiwindow.aspx). Sample implementation for setting the window title in an out-of-browser application: ``` C# 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)

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>