{
public LayOutViewController()
{
InitializeComponent();
RegisterActions(components);
TargetViewType = ViewType.DetailView;
}
protected override void OnActivated()
{
base.OnActivated();
((WinLayoutManager)((View as DetailView).LayoutManager)).ItemCreated += new EventHandler
}
void LayOutViewController_ItemCreated(object sender, ItemCreatedEventArgs e)
{
DetailView lDet = View as DetailView;
((LayoutControl)(((WinLayoutManager)(lDet.LayoutManager)).Container)).OptionsView.HighlightFocusedItem = true;
((LayoutControl)(((WinLayoutManager)(lDet.LayoutManager)).Container)).Appearance.ControlFocused.BackColor = Color.FromArgb(255, 201, 84);
if (e.Item is LayoutControlGroup)
{
LayoutControlGroup IG = (LayoutControlGroup)e.Item;
if (((IG.TextLocation == Locations.Default) ||
IG.TextLocation == DevExpress.Utils.Locations.Top)
&& !(IG.Parent != null))
IG.ExpandButtonVisible = true;
}
}
}
No comments:
Post a Comment