Skip to content

Commit

Permalink
SplitView convention
Browse files Browse the repository at this point in the history
  • Loading branch information
nigel-sampson committed Aug 11, 2015
1 parent f998c59 commit b886f5b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Caliburn.Micro.Platform/ConventionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b886f5b

Please sign in to comment.