Exemple #1
0
        public static void Apply(XtraTreeList.TreeList treeList)
        {
            treeList.BackColor = System.Drawing.Color.Transparent;
            treeList.Appearance.Empty.BackColor            = System.Drawing.Color.Transparent;
            treeList.Appearance.Empty.Options.UseBackColor = true;
            treeList.Appearance.Row.BackColor            = System.Drawing.Color.Transparent;
            treeList.Appearance.Row.Options.UseBackColor = true;
            treeList.LookAndFeel.StyleChanged           += LookAndFeel_StyleChanged;
            //
            var font = FontResources.GetSegoeUIFont(System.Drawing.FontStyle.Bold);

            treeList.Appearance.FocusedRow.Font                  = font;
            treeList.Appearance.FocusedRow.Options.UseFont       = true;
            treeList.Appearance.HideSelectionRow.Font            = font;
            treeList.Appearance.HideSelectionRow.Options.UseFont = true;
            treeList.Appearance.SelectedRow.Font                 = font;
            treeList.Appearance.SelectedRow.Options.UseFont      = true;
        }
Exemple #2
0
        public static void Apply(XtraTreeList.TreeList treeList)
        {
            treeList.BackColor = System.Drawing.Color.Transparent;
            treeList.Appearance.Empty.BackColor            = System.Drawing.Color.Transparent;
            treeList.Appearance.Empty.Options.UseBackColor = true;
            treeList.Appearance.Row.BackColor            = System.Drawing.Color.Transparent;
            treeList.Appearance.Row.Options.UseBackColor = true;
            //
            float fontSize = AppHelper.GetDefaultSize();

            treeList.Appearance.FocusedRow.Font                  = new System.Drawing.Font("Segoe UI", fontSize, System.Drawing.FontStyle.Bold);
            treeList.Appearance.FocusedRow.Options.UseFont       = true;
            treeList.Appearance.HideSelectionRow.Font            = new System.Drawing.Font("Segoe UI", fontSize, System.Drawing.FontStyle.Bold);
            treeList.Appearance.HideSelectionRow.Options.UseFont = true;
            treeList.Appearance.Row.BackColor               = System.Drawing.Color.Transparent;
            treeList.Appearance.Row.Options.UseBackColor    = true;
            treeList.Appearance.SelectedRow.Font            = new System.Drawing.Font("Segoe UI", fontSize, System.Drawing.FontStyle.Bold);
            treeList.Appearance.SelectedRow.Options.UseFont = true;
        }
 public FilterTreeListHelper(XtraTreeList.TreeList treeList)
 {
     this.treeList = treeList;
 }