Telerik Forums
UI for WinForms Forum
2 answers
36 views

Hello!

I have two questions:

1) I'm trying (without success) to change the background color of my Application Menu (button?) Button on the left side of the Ribbon that opens (in my case) to the Backstage from inside Visual Style Builder.  Can you point me to the correct element please?

2) This one is a little more difficult to explain - I'll be attaching before/after images in case I'm not as clear as I'd like to be.

using RadRibbonForm there are Tabs.  Under the Tabs are Groups.  These groups contain buttons, lists, etc that live on the Ribbon.

I'm trying to set the background color for these groups and while I was successful in doing that, there's an unpleasant space/gap/padding? that surrounds the "group"

How do i remove that gap?  Also, how do i make this fill rectangular?  There should be no 'gradient' going from the background color - to white.

I can make the mods in-code if needed, the best choice would be to learn where to update these properties in Visual Style Builder.

 

Kindest regards,

Curtis.

 

nely
Top achievements
Rank 1
Iron
 answered on 08 Oct 2023
1 answer
37 views

Hi,

I have a grid within a panel and I want to adjust the panel height based on the total height of the grid.

Using this code:


Me.Panel1.Height = Me.grid.TableElement.RowHeight * Me.grid.RowCount + grid.TableElement.TableHeaderHeight + 5

 

It seems to work ok if I use "Fluent" theme but not for "VisualStudio2012Light". I have attached a sample form.

Any explanation for this and how do I fix it?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Oct 2023
1 answer
47 views

HI,

Is it possible to apply Telerik themes to any of the native (i.e. non-Telerik) Microsoft controls, such as System.Windows.Forms.Button?  This is possible with WPF controls (https://docs.telerik.com/devtools/wpf/styling-and-appearance/stylemanager/common-styling-themes-mscontrols), but I have not found any documentation for doing this with WinForms controls.

Is this possible? 

Thanks!

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jul 2023
1 answer
121 views

Hello,

I have a RadPageView control with Windows 8 theme and strip view mode.

When I disable the control, the color of the strip behind the tabs changes to a dark gray. I do not want it to change, but to stay in control color.

If I use the EnabledChange event and change the ItemContainer.BackColor of the StripElement it still shows the dark gray first.

 

I have seen that this is possible for example in Fluent theme, but want to use Windows 8 theme for my application.

I would love to use an easy way (SetThemeValueOverride) if possible. But I also haven't found a fitting property in the theme's style repositories and groups


 

Dinko | Tech Support Engineer
Telerik team
 answered on 10 Jul 2023
1 answer
52 views

I'm using the built-in 'Fluent' Theme, and one bit I don't like is that by default the color of the text in a text box (and same for most other controls) is a mid-grey. This only turns to black when the mouse hovers over it.

Is there a simple way to change this behaviour?  To make it black all the time? It's making it hard to take video of my application being used, because the text is quite pale.

Oh, and PLEASE don't tell me that 'I just need to edit the Theme' - I don't make changes to themes very often, and each time I do, I have to re-discover how powerful - and complicated - it is. :-)

 

Dinko | Tech Support Engineer
Telerik team
 answered on 17 May 2023
1 answer
84 views

I have some controls which get embedded inside another application, so they don't have aparent Form.

But they need to share the same Theme as all the forms.

Setting the Theme for the forms is easy.

But I can't see where to apply the same Theme to a Control? Is this even possible?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2023
1 answer
31 views
I just loaded a completely blank project - nothing in it.  I wanted to start playing around with themes, but nothing seems to make the themes populate in the theme list.  I just have ControlDefault and Reset as options.  I have added multiple themes to the form, and followed the videos, and even tried to create another project.  Am I missing a step I didn't see in the docs/videos?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 14 Apr 2023
2 answers
95 views

My application uses a global application wide theme via ThemeResolutionService.

I can view my form, buttons, grids etc in the application theme when using the visual studio designer because I load the application theme in the form constructor.

I have a button that will use a different theme called "RedButton". I can force the button to use the different theme at run time via RadThemeManager using:

myButton.ElementTree.EnableApplicationThemeName = False

myButton.ThemeName = "RedButton"

At runtime, I can see my red button. However; in the visual studio designer, the 'red button' is still using the application theme.

I don't see the ability to disable the application theme on my button in the designer.

How can I get the visual studio designer to show my 'red button' while the application theme is also loaded?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Apr 2023
1 answer
61 views

Hi,

We currently store our visual theme files separately as xml files (per control) instead of the tssp package file. This allows us to have a more detailed source control over the changes in each control, merging between branches is easier, etc.

Using a manual process, we open the Visual Style Builder, load the complete folder with the given xmls, and save the theme as a package. We then later on, copy the file to our application, and publish it.

We would like to automate the process of generating the tssp package given the xml files either by some tool from Telerik (if it exists), or by using any API available.

Is this possible? if not, can you please suggest an alternative solution?

Thank you.

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Mar 2023
1 answer
72 views

Hi:

I have a Winforms application that I recently update the Telerik controls to 2023.1.117.40.

I am now unable to build as I am getting the following error:

'Could not load file or assembly 'Telerik.WinControls.Themes.Crystal, Version=2023.1.117.40, Culture=neutral, PublicKeyToken=bf4391287131aaeb' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

Am I missing a required Telerik library in my references?

Here are the libraries I am currently referencing:

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Feb 2023
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
Menu
RichTextEditor
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Barcode
Styling
ColorBox
PictureBox
Callout
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?