Current filter:
                                You should refresh the page.
                                We apologize for the inconvenience. Our ordering system and the support center may be offline for a few hours on Sunday, May 19 due to maintenance tasks.
                                0
                                  • Hey,

                                    In a DetailView, in the OnControlCreated, I used this code to set the FocusedBackColor property :

                                    LayoutControl layoutControl = (LayoutControl)(detailView.Control);
                                    layoutControl.OptionsView.HighlightFocusedItem = true;
                                    layoutControl.Appearance.ControlFocused.BackColor = colorFocus;

                                    This used to work before, but since a previous release (9.2 ?), it doesn't anymore.

                                    Greetings
                                    Xavier

                                0

                                Hello Xavier,

                                Thank you for your report. I've reproduced the problem, and, unfortunately, couldn't find its cause. Our developers will investigate it ASAP.

                                Thanks,
                                Anatol

                                0

                                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

                                You must  log in  or  register  to leave an answer

                                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.