Ticket Q518027
Visible to All Users
Duplicate

Please update Layout Manager to reveal via tooltip or augmented treelist to show us what field is selected

created 12 years ago

By only showing us captions, you effectively nullify our ability to manage expanded properties. Look at every major UI tool, like Crystal Reports for example: select a UI element that is linked to a data field and you can visually see what data field is hooked. Please ;)

Comments (2)
Dennis Garavsky (DevExpress) 12 years ago

    Hello Drew,
    I remember that you already logged a similar request in the past: Please augment the field chooser in the layout tool. While your suggestion looks useful, I am afraid we do not have any news on it for now.
    The items corresponding to data fields within the layout control's customization form have no any knowledge of XAF features, e.g. a full property path. So, it would be necessary to provide this additional information into the control from XAF. You can see how the customization form can be accessed in XAF by checking the source code of the WinLayoutManagerController class and probably implement required adjustments yourself.

    M M
    Martin Praxmarer - DevExpress MVP 12 years ago

      Ist not really hard in the meantime to implement this in Win.UI (only runtime, not ME).
      hope this helps…
      Implement your own LayoutManager, eg. public class MyLayoutManager : WinLayoutManager
          {
      In the ctor Register your control item wrapper -> this.layoutControl.RegisterCustomPropertyGridWrapper(typeof(XafLayoutControlItem), typeof(MyLayoutControlItemWrapper)); now in your wrapper you can implement whatever properties you want, i did this (and more):
      public class MyLayoutControlItemWrapper : LayoutControlItemWrapper
              [Category("XAF")]
              public string PropertyName
              {
                  get
                  {
                      var xafLayoutItem = this.Item as XafLayoutControlItem;
                      if (xafLayoutItem != null)
                      {
                          var editor = xafLayoutItem.ViewItem as PropertyEditor;
                          if (editor != null)
                              return editor.MemberInfo.Name;
                      }
                      return null;
                  }
              }
              /// <summary>
              /// Gets the name of the class.
              /// </summary>
              /// <value>
              /// The name of the class.
              /// </value>
              [Category("XAF")]
              public string ClassName
              {
                  get
                  {
                      var xafLayoutItem = this.Item as XafLayoutControlItem;
                      if (xafLayoutItem != null)
                      {
                          var editor = xafLayoutItem.ViewItem as PropertyEditor;
                          if (editor != null)
                              return editor.MemberInfo.Owner.FullName;
                      }
                      return null;
                  }
              }

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.