The ImageList property is visible in the Properties section of VisualStudio for RadTextBox, RadTextBoxControl etc.
How to reproduce: set the MinimumSize property of a RadButton in a DPI-aware app Workaround: Public Class RadForm1 Dim minMaxStack = New Stack(Of Dictionary(Of Control, Tuple(Of Size, Size)))() Sub New() InitializeComponent() End Sub Protected Overrides Sub HandleDpiChanged() Dim scaleFactor As Single = 1.0F Dim oldDpi = GetType(RadFormControlBase).GetField("oldDpi", BindingFlags.Instance Or BindingFlags.NonPublic).GetValue(Me) Dim currentDpi = GetType(RadFormControlBase).GetField("currentDpi", BindingFlags.Instance Or BindingFlags.NonPublic).GetValue(Me) If oldDpi <> 0 Then scaleFactor = CSng(currentDpi) / oldDpi ElseIf oldDpi = 0 Then scaleFactor = CSng(currentDpi) / 96.0F End If If scaleFactor = 1.0F Then Return End If Me.SaveMinMaxStates() MyBase.HandleDpiChanged() Me.RestoreMinMaxStates() End Sub Private Sub SaveMinMaxStates() If Me.minMaxStack Is Nothing Then Me.minMaxStack = New Stack(Of Dictionary(Of Control, Tuple(Of Size, Size)))() End If Dim minMax As New Dictionary(Of Control, Tuple(Of Size, Size))() Dim queue As New Queue(Of Control)() For Each ctrl As Control In Me.Controls queue.Enqueue(ctrl) Next While queue.Count > 0 Dim ctrl As Control = queue.Dequeue() If TypeOf ctrl Is RadControl Then minMax.Add(ctrl, New Tuple(Of Size, Size)(ctrl.MinimumSize, ctrl.MaximumSize)) ctrl.MinimumSize = Size.Empty ctrl.MaximumSize = Size.Empty End If For Each childControl As Control In ctrl.Controls queue.Enqueue(childControl) Next End While Me.minMaxStack.Push(minMax) End Sub Private Sub RestoreMinMaxStates() Dim minMax As Dictionary(Of Control, Tuple(Of Size, Size)) = Me.minMaxStack.Pop() Dim queue As New Queue(Of Control)() For Each ctrl As Control In Me.Controls queue.Enqueue(ctrl) Next While queue.Count > 0 Dim ctrl As Control = queue.Dequeue() If minMax.ContainsKey(ctrl) Then ctrl.MinimumSize = minMax(ctrl).Item1 ctrl.MaximumSize = minMax(ctrl).Item2 minMax.Remove(ctrl) End If For Each childControl As Control In ctrl.Controls queue.Enqueue(childControl) Next End While minMax.Clear() End Sub End Class
The restore button of RadForm has the following inconsistent styles: Office2010Silver - The image is identical for the maximize and restore states Office2010Black - The back color of the button is wrong when the form is started maximized.
Steps to reproduce: 1. Add a separator to a form 2. Set Orientation to Vertical 3. Set the theme to TelerikMetro or TelerikMetroBlue You will see that the separator is not drawn correctly.
How to reproduce: check the attached screenshot Workaround create a custom RadPrintPreviewDialog public class MyRadPrintPreviewDialog : RadPrintPreviewDialog { protected override WatermarkPreviewDialog CreateWatermarkDialog() { WatermarkPreviewDialog dialog = new WatermarkPreviewDialog(this.Document); RadPageViewPage pageText = (RadPageViewPage)dialog.Controls["radPageView1"].Controls["pageText"]; ((PlusMinusEditor)pageText.Controls["plusMinusEditorTextHOffset"]).TextBox.Width = 43; ((PlusMinusEditor)pageText.Controls["plusMinusEditorTextVOffset"]).TextBox.Width = 43; ((PlusMinusEditor)pageText.Controls["plusMinusEditorTextAngle"]).TextBox.Width = 43; ((PlusMinusEditor)pageText.Controls["plusMinusEditorTextOpacity"]).TextBox.Width = 43; RadPageViewPage pagePicture = (RadPageViewPage)dialog.Controls["radPageView1"].Controls["pagePicture"]; ((PlusMinusEditor)pagePicture.Controls["plusMinusEditorImageHOffset"]).TextBox.Width = 43; ((PlusMinusEditor)pagePicture.Controls["plusMinusEditorImageVOffset"]).TextBox.Width = 43; ((PlusMinusEditor)pagePicture.Controls["plusMinusEditorImageOpacity"]).TextBox.Width = 43; return dialog; } }
WindowForms - the source code(RadControlsVS2010) does not build in Debug40 configuration.
When maximizing child form in MDI container form with Windows8theme applied, the theming of the MDI buttons would be missing.
To reproduce: - Create a treeview with the Visual Studio 2012 Light theme. - Add multiple nodes to the tree - Select the first node - While hovering the selected first node with the mouse press the down arrow to select the next node - The text of the first node will stay white while the hover background will also be white making the text seem like it vanishes. Workaround: - Open the theme in Visual Style Builder - Expand the tree view in the Controls Structure window - In the ElementState window select MouseOver state - Add Normal Fore Color font style to the mouse over state
To reproduce: Dock a window under another with these themes( blue black silver): instead of docking under, it docks overs as if over the tab icon instead of the down arrow. Workaround: -Extract the predefined themes -Open the Office2010blue theme with Visual Style Builder -In the control structure window select RadDock - Docking Guides -Expand DockingGuidesElement and select BottomImage -In the Elements window expand DockingGuidesElement and set filter to changed properties -Change LocationOnCenterGuide property to 45;90 -Save the theme and use it in your application
How to reproduce: check the attached incorrect-text-position.gif video Workaround: change the SolidDisabledBorder repository according to the attached custom-metro-blue-theme.gif video and theme
To reproduce: - Apply the Office2013Light theme to a RadDock with document windows. - Set ShowDocumentCloseButton to true. - You will notice that the close button does not appear.
Steps to reproduce: 1. Open Demo Application 2. Navigate to GridView >> Custom painting example 3. Open themes and choose Office2013Light and a message box is shown.
Change the gestures logic so it can be enabled/disabled per-control. see Control1.SupportsGestures property
Expose the SupportsGesture property in the GestureInfoHelper class to enable users to enable/disable gesture support manually. Workaround: set the field with Reflection private void DisableGestures() { Type gestureHelperType = typeof(GestureInfoHelper); FieldInfo field = gestureHelperType.GetField("supportsGestures", BindingFlags.NonPublic | BindingFlags.Static); field.SetValue(null,false); }
1. Create a new project and setup a splash screen. 2. While the splash screen loads create a screen tip. 3. Run the project
To reproduce: Add a RadSpinEditor with one of the following themes: Breeze Desert Office2010Black/Silver/Blue Office2013Light/Dark VisualStudio2012Light Windows8 Put your mouse over the RadSpinEditor and quickly move it out. You will notice that the border is not being reset. Workaround: From VisualStyleBuilder remove the border of RadSpinEditorElement on ContainsMouse
One should not be able to trigger a shortcut if the element that has the shortcut assigned is disabled.
The design of RadButton in ControlDefault Default state should be implemented through setting the BorderBoxStyle to OuterInnerBorder. When the default drawing is used, however, the inner border introduces visual glitches in the control's corners.
When a child form is opened in a new thread, and tooltips are used in the child form, cross thread exception is thrown, due to the fact that RadToolTip internally uses a static control instance. public class ManagedThread { private Thread _thread; public ManagedThread() { _thread = new Thread(new ThreadStart(OpenNew)); } private void OpenNew() { Child form = new Child(); form.Text = "my text"; form.ShowDialog(); } } The second time the child form is opened, when you try to show tooltips of a control e.g. RadDropDownList with ToolTipTextNeeded, the exception is thrown. Workaround: use screentips instead of tooltips: http://docs.telerik.com/devtools/winforms/treeview/how-to/assign-radscreentip-to-nodes
To reproduce: The result of the following line is always null: var test = ThemeResolutionService.GetTheme(ThemeResolutionService.ApplicationThemeName).FindStyleGroup("Telerik.WinControls.UI.RadLabel"); Workaround: var test1 = ThemeResolutionService.GetTheme(ThemeResolutionService.ApplicationThemeName).FindStyleGroup(new RadLabel());