コード例 #1
0
 public ManifestDialog()
 {
     _traceListener = new TextTraceListener {
         TraceOutputOptions = TraceOptions.DateTime
     };
     InitializeComponent();
     DataContext = this;
     this.SetVisualStudioThemeStyles();
 }
コード例 #2
0
        public TraceWindow(TextTraceListener traceListener)
        {
            TraceListener = traceListener;
            WeakEventManager <INotifyPropertyChanged, PropertyChangedEventArgs> .AddHandler(TraceListener, "PropertyChanged", TraceListenerOnPropertyChanged);

            Trace.Listeners.Add(TraceListener);
            InitializeComponent();
            this.SetVisualStudioThemeStyles();
            SetTraceText(TraceListener.Trace);
        }
コード例 #3
0
 public ManifestDialog()
 {
     _traceListener = new TextTraceListener {
         TraceOutputOptions = TraceOptions.DateTime
     };
     InitializeComponent();
     DataContext = this;
     this.SetVisualStudioThemeStyles();
     TokenSectionTabs.Background       = Background;
     TokenSectionTabs.BorderThickness  = new Thickness(1, 0, 0, 0);
     TokenSectionTabs.BorderBrush      = (Brush)FindResource(VsBrushes.PanelHyperlinkKey);
     TokenSectionTabs.Margin           = new Thickness(0, 5, 15, 5);
     TokenSectionTabs.Style            = Style;
     HeadlineText.MouseLeftButtonDown += (sender, args) => { DragMove(); };
 }