コード例 #1
0
        protected override void AddBuilderStrategies(Microsoft.Practices.ObjectBuilder.Builder builder)
        {
            base.AddBuilderStrategies(builder);

            builder.Strategies.AddNew <WindowsServiceStrategy>(BuilderStage.Initialization);
            builder.Strategies.AddNew <FrameworkElementStrategy>(BuilderStage.Initialization);
        }
コード例 #2
0
 /// <summary>
 /// Adds the <see cref="WPFControlSmartPartStrategy"/> Builder Strategy.
 /// </summary>
 protected override void AddBuilderStrategies(Microsoft.Practices.ObjectBuilder.Builder builder)
 {
     base.AddBuilderStrategies(builder);
     builder.Strategies.AddNew<WPFControlSmartPartStrategy>(BuilderStage.Initialization);
 }