本文整理汇总了C#中SectionViewModel.Property方法的典型用法代码示例。如果您正苦于以下问题:C# SectionViewModel.Property方法的具体用法?C# SectionViewModel.Property怎么用?C# SectionViewModel.Property使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SectionViewModel
的用法示例。
在下文中一共展示了SectionViewModel.Property方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Arrange
protected override void Arrange()
{
base.Arrange();
var sourceModel = Container.Resolve<ConfigurationSourceModel>();
LoggingViewModel = sourceModel.AddSection(LoggingSettings.SectionName, LoggingSection);
elementReferencesChanged = false;
LoggingViewModel.ElementReferencesChanged += (sender, args) => elementReferencesChanged = true;
defaultCacheManagerProperty = (ElementReferenceProperty)LoggingViewModel.Property("DefaultCategory");
defaultCacheManagerProperty.Initialize(null);
}
示例2: Arrange
protected override void Arrange()
{
base.Arrange();
var sourceModel = Container.Resolve<ConfigurationSourceModel>();
LoggingViewModel = sourceModel.AddSection(LoggingSettings.SectionName, LoggingSection);
defaultCategoryProperty = (ElementReferenceProperty)LoggingViewModel.Property("DefaultCategory");
defaultCategoryProperty.Initialize(null);
traceSource = LoggingViewModel.GetDescendentsOfType<TraceSourceData>().First();
defaultCacheManagerPropertyChangedListener = new PropertyChangedListener(defaultCategoryProperty);
}
开发者ID:HondaBey,项目名称:EnterpriseLibrary6,代码行数:14,代码来源:when_updating_provider_name_in_reference_picker_list.cs
示例3: Arrange
protected override void Arrange()
{
base.Arrange();
testreferencingSection = new TestReferencingSection();
var locator = new Mock<ConfigurationSectionLocator>();
locator.Setup(x => x.ConfigurationSectionNames).Returns(new string[] {"testReferencingSection"});
Container.RegisterInstance(locator.Object);
DesignDictionaryConfigurationSource source = new DesignDictionaryConfigurationSource();
source.Add("testReferencingSection", testreferencingSection);
configSource = Container.Resolve<ConfigurationSourceModel>();
configSource.Load(source);
section = configSource.Sections.Where(x => x.SectionName == "testReferencingSection").Single();
section.Property("ReferencingProperty").Value = "ReferringTo";
}
开发者ID:jmeckley,项目名称:Enterprise-Library-5.0,代码行数:18,代码来源:when_reference_scope_is_not_currently_available.cs