private void BorderSpecification_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (ControlSpecification == null) { ControlSpecification = new UserControlSpecification(); } ContentControlManageData.Content = ControlSpecification; }
static partial void AddPlatformSpecificConventions( ConventionBuilder builder ) { var assembly = new PublicKeyTokenSpecification( typeof( Host ) ); var page = new PageSpecification(); var userControl = new UserControlSpecification(); builder.ForTypesMatching( page.IsSatisfiedBy ).Export().Export<Page>().ExportInterfaces( assembly.IsSatisfiedBy ).ImportProperties( p => p != null && p.Name == "Model" ); builder.ForTypesMatching( userControl.IsSatisfiedBy ).Export().ExportInterfaces( assembly.IsSatisfiedBy ).ImportProperties( p => p != null && p.Name == "Model" ); AddWinRTSpecificConventions( builder ); }