示例#1
0
 public static void SetAlign(Object obj, ToolbarAlign aln)
 {
     if (_attachedPart == null)
     {
         _attachedPart = new Dictionary <Object, ToolbarAlign>();
     }
     AttachedHelpers.SetAttached(_attachedPart, obj, aln);
 }
示例#2
0
        public static string GetName(ToolbarAlign type)
        {
            string result = String.Empty;

            switch (type)
            {
                case ToolbarAlign.Left:
                    result = "start";
                    break;
                case ToolbarAlign.Right:
                    result = "end";
                    break;
                case ToolbarAlign.Center:
                    result = "center";
                    break;
            }

            return result;
        }
示例#3
0
        public static string GetName(ToolbarAlign type)
        {
            string result = String.Empty;

            switch (type)
            {
            case ToolbarAlign.Left:
                result = "start";
                break;

            case ToolbarAlign.Right:
                result = "end";
                break;

            case ToolbarAlign.Center:
                result = "center";
                break;
            }

            return(result);
        }