using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace HStation.WinFrmUI
|
{
|
public static class TileViewExpand
|
{
|
public static void InitView(this DevExpress.XtraGrid.Views.Layout.LayoutView view)
|
{
|
view.Appearance.Card.BackColor = Color.Transparent;
|
view.Appearance.Card.Options.UseBackColor = true;
|
view.Appearance.FieldCaption.BackColor = Color.Transparent;
|
view.Appearance.FieldCaption.Options.UseBackColor = true;
|
view.Appearance.FieldValue.BackColor = Color.Transparent;
|
view.Appearance.FieldValue.Options.UseBackColor = true;
|
view.BorderStyle = BorderStyles.NoBorder;
|
view.OptionsBehavior.ScrollVisibility = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Auto;
|
view.OptionsCustomization.AllowFilter = false;
|
view.OptionsCustomization.AllowSort = false;
|
view.OptionsItemText.TextToControlDistance = 3;
|
view.OptionsView.AllowHotTrackFields = false;
|
view.OptionsView.CardArrangeRule = DevExpress.XtraGrid.Views.Layout.LayoutCardArrangeRule.AllowPartialCards;
|
view.OptionsView.FocusRectStyle = DevExpress.XtraGrid.Views.Layout.FocusRectStyle.None;
|
view.OptionsView.ShowCardCaption = false;
|
view.OptionsView.ShowCardExpandButton = false;
|
view.OptionsView.ShowCardLines = false;
|
view.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
|
view.OptionsView.ShowHeaderPanel = false;
|
view.OptionsView.ViewMode = DevExpress.XtraGrid.Views.Layout.LayoutViewMode.MultiRow;
|
}
|
|
}
|
}
|