Browse Source

Trying to fix the build (why is the XAML compiler so fragile?)

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4920 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 16 years ago
parent
commit
43fe9dd08a
  1. 20
      src/AddIns/Misc/UsageDataCollector/AnalyticsMonitor.cs
  2. 2
      src/AddIns/Misc/UsageDataCollector/CollectedDataView.xaml
  3. 2
      src/Main/ICSharpCode.Core.Presentation/CollapsiblePanel.cs

20
src/AddIns/Misc/UsageDataCollector/AnalyticsMonitor.cs

@ -33,12 +33,20 @@ namespace ICSharpCode.UsageDataCollector @@ -33,12 +33,20 @@ namespace ICSharpCode.UsageDataCollector
}
set {
PropertyService.Set("ICSharpCode.UsageDataCollector.Enabled", value.ToString());
if (value) {
Instance.OpenSession();
} else {
Instance.CloseSession();
Instance.TryDeleteDatabase();
}
// Initially opening the session takes some time; which is bad for the startpage
// because the animation would start with a delay. We solve this by calling Open/CloseSession
// on a background thread.
ThreadPool.QueueUserWorkItem(delegate { AsyncEnableDisable(); } );
}
}
static void AsyncEnableDisable()
{
if (Enabled) {
Instance.OpenSession();
} else {
Instance.CloseSession();
Instance.TryDeleteDatabase();
}
}

2
src/AddIns/Misc/UsageDataCollector/CollectedDataView.xaml

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
Margin="16,8,16,8"
Click="Button_Click" />
<avalonEdit:TextEditor
Name="textEditor"
x:Name="textEditor"
IsReadOnly="True" />
</DockPanel>
</Window>

2
src/Main/ICSharpCode.Core.Presentation/CollapsiblePanel.cs

@ -35,7 +35,7 @@ namespace ICSharpCode.Core.Presentation @@ -35,7 +35,7 @@ namespace ICSharpCode.Core.Presentation
public static readonly DependencyProperty DurationProperty = DependencyProperty.Register(
"Duration", typeof(TimeSpan), typeof(CollapsiblePanel),
new UIPropertyMetadata(TimeSpan.FromMilliseconds(500)));
new UIPropertyMetadata(TimeSpan.FromMilliseconds(250)));
/// <summary>
/// The duration in milliseconds of the animation.

Loading…
Cancel
Save