Browse Source

Apply WPF_Designer_2008.07.09.patch by Ivan Shumilin.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3210 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
d2214c97ef
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/TypeEditors/BrushEditor/ColorHelper.cs
  2. 8
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/WindowClone.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/TypeEditors/BrushEditor/ColorHelper.cs

@ -40,7 +40,7 @@ namespace ICSharpCode.WpfDesign.Designer.Controls.TypeEditors.BrushEditor @@ -40,7 +40,7 @@ namespace ICSharpCode.WpfDesign.Designer.Controls.TypeEditors.BrushEditor
public static void HsvFromColor(Color c, out double h, out double s, out double v)
{
HsvFromRgb(c.R / 255, c.G / 255, c.B / 255, out h, out s, out v);
HsvFromRgb(c.R / 255.0, c.G / 255.0, c.B / 255.0, out h, out s, out v);
}
// http://en.wikipedia.org/wiki/HSV_color_space

8
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/WindowClone.cs

@ -88,6 +88,14 @@ namespace ICSharpCode.WpfDesign.Designer.Controls @@ -88,6 +88,14 @@ namespace ICSharpCode.WpfDesign.Designer.Controls
get { return (ResizeMode)GetValue(Window.ResizeModeProperty); }
set { SetValue(Window.ResizeModeProperty, value); }
}
public static readonly DependencyProperty ShowActivatedProperty =
DependencyProperty.Register("ShowActivated", typeof(bool), typeof(WindowClone));
public bool ShowActivated {
get { return (bool)GetValue(ShowActivatedProperty); }
set { SetValue(ShowActivatedProperty, value); }
}
/// <summary>
/// This property has no effect. (for compatibility with <see cref="Window"/> only).

Loading…
Cancel
Save