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

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

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

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

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

Loading…
Cancel
Save