~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/SelectionFrame.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using System.ComponentModel;
 
6
using System.Diagnostics;
 
7
using System.Windows;
 
8
using System.Windows.Controls;
 
9
using System.Windows.Input;
 
10
using System.Windows.Media;
 
11
 
 
12
using ICSharpCode.WpfDesign.Extensions;
 
13
 
 
14
namespace ICSharpCode.WpfDesign.Designer.Controls
 
15
{
 
16
        /// <summary>
 
17
        /// The rectangle shown during a rubber-band selecting operation.
 
18
        /// </summary>
 
19
        public class SelectionFrame : Control
 
20
        {
 
21
                static SelectionFrame()
 
22
                {
 
23
                        //This OverrideMetadata call tells the system that this element wants to provide a style that is different than its base class.
 
24
                        //This style is defined in themes\generic.xaml
 
25
                        DefaultStyleKeyProperty.OverrideMetadata(typeof(SelectionFrame), new FrameworkPropertyMetadata(typeof(SelectionFrame)));
 
26
                }
 
27
        }
 
28
}