Hello Xavier,
This problem will be fixed in our next update. Currently, as a workaround, use the following ViewController:
[C#]public class ViewController1 : ViewController { public ViewController1() { TargetViewType = ViewType.DetailView; } private void View_ControlsCreated(object sender, EventArgs e) { DetailView detailView = (DetailView)sender; XafLayoutControl layoutControl = (XafLayoutControl)detailView.Control; layoutControl.OptionsView.HighlightFocusedItem = true; layoutControl.OptionsView.AllowItemSkinning = true; layoutControl.Appearance.ControlFocused.BackColor = Color.Red; foreach(Control control in layoutControl.Controls) { if(control is BaseEdit) { ((BaseEdit)control).StyleController = layoutControl; } } } protected override void OnActivated() { base.OnActivated(); View.ControlsCreated += new EventHandler(View_ControlsCreated); } protected override void OnDeactivating() { base.OnDeactivating(); View.ControlsCreated -= new EventHandler(View_ControlsCreated); } }
Thanks,
Anatol
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+