55using System . ComponentModel ;
66using System . Xml . Serialization ;
77using Myra . MML ;
8+ using Myra . Attributes ;
9+
810
911#if MONOGAME || FNA
1012using Microsoft . Xna . Framework ;
@@ -28,13 +30,21 @@ public enum GridSelectionMode
2830 public class Grid : Container
2931 {
3032 public static readonly AttachedPropertyInfo < int > ColumnProperty =
31- AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "Column" , 0 , AttachedPropertyOption . AffectsArrange ) ;
33+ AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "Column" , 0 ,
34+ AttachedPropertyOption . AffectsArrange ,
35+ new Attribute [ ] { new RangeAttribute ( 0 ) } ) ;
3236 public static readonly AttachedPropertyInfo < int > RowProperty =
33- AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "Row" , 0 , AttachedPropertyOption . AffectsArrange ) ;
37+ AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "Row" , 0 ,
38+ AttachedPropertyOption . AffectsArrange ,
39+ new Attribute [ ] { new RangeAttribute ( 0 ) } ) ;
3440 public static readonly AttachedPropertyInfo < int > ColumnSpanProperty =
35- AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "ColumnSpan" , 1 , AttachedPropertyOption . AffectsArrange ) ;
41+ AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "ColumnSpan" , 1 ,
42+ AttachedPropertyOption . AffectsArrange ,
43+ new Attribute [ ] { new RangeAttribute ( 1 ) } ) ;
3644 public static readonly AttachedPropertyInfo < int > RowSpanProperty =
37- AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "RowSpan" , 1 , AttachedPropertyOption . AffectsArrange ) ;
45+ AttachedPropertiesRegistry . Create ( typeof ( Grid ) , "RowSpan" , 1 ,
46+ AttachedPropertyOption . AffectsArrange ,
47+ new Attribute [ ] { new RangeAttribute ( 1 ) } ) ;
3848
3949 private readonly GridLayout _layout = new GridLayout ( ) ;
4050
0 commit comments