~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to class/Microsoft.SilverlightControls/Controls/Data/src/DataGrid/DataGridEnumerations.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
Import upstream version 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright © Microsoft Corporation. 
 
2
// This source is subject to the Microsoft Source License for Silverlight Controls (March 2008 Release).
 
3
// Please see http://go.microsoft.com/fwlink/?LinkID=111693 for details.
 
4
// All other rights reserved. 
 
5
 
 
6
namespace System.Windows.Controlsb1
 
7
 
8
    // Determines the location and visibility of the editing row. 
 
9
    internal enum DataGridEditingRowLocation
 
10
    { 
 
11
        Bottom, // The editing row is collapsed below the displayed rows
 
12
        Inline, // The editing row is visible and displayed
 
13
        Top     // The editing row is collapsed above the displayed rows 
 
14
    }
 
15
 
 
16
    /// <summary> 
 
17
    /// Determines whether the inner cells' vertical/horizontal gridlines are shown or not. 
 
18
    /// </summary>
 
19
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1717:OnlyFlagsEnumsShouldHavePluralNames")] 
 
20
    public enum DataGridGridlines
 
21
    {
 
22
        All, 
 
23
        Horizontal,
 
24
        Vertical,
 
25
        None 
 
26
    } 
 
27
 
 
28
    [Flags] 
 
29
    /// <summary>
 
30
    /// Determines whether the row/column headers are shown or not.
 
31
    /// </summary> 
 
32
    public enum DataGridHeaders
 
33
    {
 
34
        /// <summary> 
 
35
        /// Show Row, Column, and Corner Headers 
 
36
        /// </summary>
 
37
        All = Row | Column, 
 
38
 
 
39
        /// <summary>
 
40
        /// Show only Column Headers with top-right corner Header 
 
41
        /// </summary>
 
42
        Column = 0x01,
 
43
 
 
44
        /// <summary> 
 
45
        /// Show only Row Headers with bottom-left corner
 
46
        /// </summary> 
 
47
        Row = 0x02,
 
48
 
 
49
        /// <summary> 
 
50
        /// Don’t show any Headers
 
51
        /// </summary>
 
52
        None = 0x00 
 
53
    } 
 
54
 
 
55
    // Determines the location of the new input row in regards to the scrolling rows. 
 
56
    //
 
57
    enum DataGridNewRowLocation
 
58
    { 
 
59
        Bottom, // The new row is frozen at the bottom of the grid, on top of the potential horizontal scrollbar
 
60
        Inline, // The new row is placed below the last scrolling row, and scrolls with the rows
 
61
        Top     // The new row is frozen at the top of the grid between the column headers and scrolling rows 
 
62
    } 
 
63
 
 
64
    public enum DataGridRowDetailsVisibility 
 
65
    {
 
66
        Collapsed = 0,          // Show no details by default.  Developer is in charge of toggling visibility
 
67
        Visible = 1,            // Show the details section for all rows 
 
68
        VisibleWhenSelected = 2 // Show the details section only for the selected row(s)
 
69
    }
 
70
 
 
71
    /// <summary> 
 
72
    /// Determines the selection model
 
73
    /// </summary> 
 
74
    public enum DataGridSelectionMode
 
75
    {
 
76
        SingleFullRow, 
 
77
        ExtendedFullRow
 
78
    }
 
79