示例#1
0
 public static void SetMinWidth(Object obj, Length width)
 {
     if (_attachedMinWidths == null)
     {
         _attachedMinWidths = new Dictionary <Object, Length>();
     }
     AttachedHelpers.SetAttached(_attachedMinWidths, obj, width);
 }
示例#2
0
 public static void SetVAlign(Object obj, AlignItem vAlign)
 {
     if (_attachedVAlign == null)
     {
         _attachedVAlign = new Dictionary <Object, AlignItem>();
     }
     AttachedHelpers.SetAttached(_attachedVAlign, obj, vAlign);
 }
示例#3
0
 public static void SetSkip(Object obj, Boolean skip)
 {
     if (_attachedSkip == null)
     {
         _attachedSkip = new Dictionary <Object, Boolean>();
     }
     AttachedHelpers.SetAttached(_attachedSkip, obj, skip);
 }
示例#4
0
 public static void SetRowSpan(Object obj, Int32 span)
 {
     if (_attachedRowSpan == null)
     {
         _attachedRowSpan = new Dictionary <Object, Int32>();
     }
     AttachedHelpers.SetAttached(_attachedRowSpan, obj, span);
 }
示例#5
0
 public static void SetRow(Object obj, Int32 row)
 {
     if (_attachedRow == null)
     {
         _attachedRow = new Dictionary <Object, Int32>();
     }
     AttachedHelpers.SetAttached(_attachedRow, obj, row);
 }
示例#6
0
 public static void SetCol(Object obj, Int32 col)
 {
     if (_attachedColumn == null)
     {
         _attachedColumn = new Dictionary <Object, Int32>();
     }
     AttachedHelpers.SetAttached(_attachedColumn, obj, col);
 }
示例#7
0
 public static void SetAlign(Object obj, ToolbarAlign aln)
 {
     if (_attachedPart == null)
     {
         _attachedPart = new Dictionary <Object, ToolbarAlign>();
     }
     AttachedHelpers.SetAttached(_attachedPart, obj, aln);
 }
示例#8
0
 public static void SetFill(Object obj, Boolean fill)
 {
     if (_attachedFill == null)
     {
         _attachedFill = new Dictionary <Object, Boolean>();
     }
     AttachedHelpers.SetAttached(_attachedFill, obj, fill);
 }
示例#9
0
 public static Length GetMinWidth(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedMinWidths, obj));
 }
示例#10
0
 public static GridLength GetWidth(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedWidths, obj));
 }
示例#11
0
 public static Boolean?GetSkip(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedSkip, obj));
 }
示例#12
0
 public static Boolean?GetFill(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedFill, obj));
 }
示例#13
0
 public static AlignItem?GetVAlign(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedVAlign, obj));
 }
示例#14
0
 public static Int32?GetRowSpan(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedRowSpan, obj));
 }
示例#15
0
 public static Int32?GetCol(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedColumn, obj));
 }
示例#16
0
 public static ToolbarAlign GetAlgin(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedPart, obj));
 }
示例#17
0
 public static VerticalAlign?GetVAlign(Object obj)
 {
     return(AttachedHelpers.GetAttached(_attachedVAlign, obj));
 }