Example #1
0
        internal ButtonDock CreateButtonDock(object data, ToolbarBuildContext buildContext)
        {
            ButtonDockProperties properties =
                DataNodeWrapper.GetNodeAttributes(data).To <ButtonDockProperties>();
            ButtonDock dock = new ButtonDock(Root, properties.Id, properties);

            return(dock);
        }
Example #2
0
 /// <summary>
 /// Creates a new Strip.
 /// </summary>
 /// <param name="ribbon">The Toolbar that this ButtonDock was created by and is a part of.</param>
 /// <param name="id">The Component id of this ButtonDock.</param>
 internal ButtonDock(Root root, string id, ButtonDockProperties properties)
     : base(root, id, "", "")
 {
     _alignment = CUIUtility.SafeString(properties.Alignment);
 }
Example #3
0
 /// <summary>
 /// Creates a new Strip.
 /// </summary>
 /// <param name="ribbon">The Toolbar that this ButtonDock was created by and is a part of.</param>
 /// <param name="id">The Component id of this ButtonDock.</param>
 internal ButtonDock(Root root, string id, ButtonDockProperties properties)
     : base(root, id, "", "")
 {
     _alignment = CUIUtility.SafeString(properties.Alignment);
 }