Permalink
Browse files

SplitView convention

  • Loading branch information...
1 parent f998c59 commit b886f5b3983afb7185dac3db854d028d34caca70 @nigel-sampson nigel-sampson committed Aug 11, 2015
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/Caliburn.Micro.Platform/ConventionManager.cs
@@ -197,6 +197,19 @@ public static class ConventionManager {
};
static ConventionManager() {
+#if WINDOWS_UWP
+ AddElementConvention<SplitView>(SplitView.ContentProperty, "IsPaneOpen", "PaneClosing").GetBindableProperty =
+ delegate (DependencyObject foundControl)
+ {
+ var element = (SplitView)foundControl;
+
+ if (!OverwriteContent)
+ return null;
+
+ Log.Info("ViewModel bound on {0}.", element.Name);
+ return View.ModelProperty;
+ };
+#endif
#if !WINDOWS_PHONE && !WinRT
AddElementConvention<DatePicker>(DatePicker.SelectedDateProperty, "SelectedDate", "SelectedDateChanged");
#endif

0 comments on commit b886f5b

Please sign in to comment.