Current filter:
                                You should refresh the page.
                                Support Center
                                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

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners