Telerik Forums
UI for WinForms Forum
1 answer
26 views

I'm trying to use the Windows11Compact theme as default for an entire application, using the config below. 


This is a WinForms project in C#, I have the Windows11 theme dll added to the project, and I'm trying to automaticaly apply the Windows11Compact theme for all controls and all forms that will be added in the project. I don't want to set the theme in runtime because I need to see the theme during the design of the application.

With the config shown above the theme is not applied. It only uses the default Telerik theme.

However, if I change to the Windows11 theme the form updates automaticaly as well as any control I add. It also work's with the Fluent Theme for exemple.

The version of telerik I'm using is Telerik for WinForms 2024.1.312.40.

 

Thank you in advance for any answer.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Apr 2024
1 answer
43 views

Hi, 

I have a control that is opened as a floating HostWindow. This control is composed of a RadPageView and a RadPanel and all these elements have the margins and paddings set to 0. Also, BorderStyle properties are set to None but I still see the borders there (see image attached).

There is any way to remove these borders?

 

Nadya | Tech Support Engineer
Telerik team
 answered on 05 Feb 2024
1 answer
92 views
i want to change the fontsize of the whole application by customer setting,  just like palette function, how can i do this in winform, thanks
FluentPalette.Palette.FontSizeS = 10; 
FluentPalette.Palette.FontSize = 12; 
FluentPalette.Palette.FontSizeL = 13; 
FluentPalette.Palette.FontSizeXL = 14; 
FluentPalette.Palette.FontFamily = new FontFamily("Segoe UI"); 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Mar 2023
1 answer
53 views

Hello!

I am currently using RadGridView for a project my company has me working on. We want to be able to prevent users from setting CellForeColor and CellBackColor to the same values (as seen in the image below). I've tried implementing a check on a variety of different elements to try and catch this case if it happens, but so far I've not had much luck. I guess more than anything I'm wondering which element I should be focusing on in order to catch this when it happens? I've scoured these forums and the rest of the internet and I haven't seen anything similar being asked. Any help is greatly appreciated, even if it's just a point in the right direction!

Best,

Rich

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Mar 2023
1 answer
95 views

Where can I find the foreground and background colors for the items displayed in a raddropdownlist ?

Example:

These are the items that appear when you click the arrow for the dropdown list.  I don't want to set this programmatically (unless there is no other way), but I can't seem to find the correct place to edit these in the Visual Style Builder.

Again, this is when you click the arrow and see the items in the list to choose from.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jul 2022
2 answers
681 views

Hello,

The feature is to Change the part of rows background-color based on a cell

I want to set the BackColor of a row to a specific color based on information from a field.

The structure is different from classic Winform.

Can you help me please ?

Jana
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 08 Apr 2022
2 answers
147 views

Hi.

Is there any way to put the custom themes (.tssp) in the project resources (Resources.resx) and load from there?

I'm actually looking for a way to include the .tssp files in the program itself (not as a separate files in project output)

Note: Currently my theme files are in the project folder and I'm using this method:

https://docs.telerik.com/devtools/winforms/styling-and-appearance/advanced-topics/adding-custom-redistributable-themes-to-your-application/creating-a-theme-component

 

Thanks

Pin
Top achievements
Rank 1
Iron
 answered on 20 Dec 2021
1 answer
203 views

Hai EveryOne,

i have a problem from my grafik chart line series..
i want to set no blur if the grafik vertical, but if the line horizontal. the line not blur when zoom..

how this solustionn,,,

tihis is source code section

 

 LineSeries series = new LineSeries();
            series.CategoryMember = "MonthName";
            series.ValueMember = "TotalAsset";
            series.DataSource = m_LineChartList;
            series.PointSize = new SizeF(7, 7);
            series.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;

            //test
            //series.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            //series.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
            //series.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
            //series.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            series.Padding = new Padding(20);
            series.IsVisible = true;
            series.LinesToLabelsColor = Color.FromArgb(0, 0, 0);

            series.BackColor = Color.FromArgb(0, 50, 0);
            series.BorderColor = Color.FromArgb(0, 50, 0);

 

 

 

thanks every one

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Aug 2021
1 answer
86 views

Please how to Load Microsoft word content including boarder around header text and style into a radrichtextbox. I tried loading from a folder to radrichtextbox. It loads but removes the boarder around header text and does not maintain line spacing. I want it to maintain exactly what I have in the word document. Below is my attempt which loaded but did not adapt header text border style and linespace. After loading the attached file to RadRichTextBox it does not display the double boarder around the text in the header.

 Dim provider2 As DocxFormatProvider = New DocxFormatProvider()
            Using inputStream As FileStream = File.OpenRead(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\duk\Dictionary" & txtDirCount.Text & ".docx")
                Me.RadRichTextEditor1.Document = provider2.Import(inputStream)
            End Using
            Dim provider As TxtFormatProvider = New TxtFormatProvider()

            RadRichTextEditor1.LayoutMode = DocumentLayoutMode.Paged
            'Dim sectionColumnCollection As SectionColumnCollection = New SectionColumnCollection(2, 30, False) 'Without line in the middle
            Dim sectionColumnCollection As New Telerik.WinForms.Documents.Model.SectionColumnCollection(2, 75, True) ' With line in the middle
            Dim editor As RadDocumentEditor = New RadDocumentEditor(RadRichTextEditor1.Document)
            editor.ChangeSectionColumns(sectionColumnCollection)
            Dim header As New Header()

Peshito
Telerik team
 answered on 05 Jul 2021
1 answer
557 views

I have a panel class ExRadPanel, that inherits from RadPanel. I try to apply to it a copy of the style that is used for PropertyGridHelpElement in RadPropertyGrid. Below is my test code, but it doesn't work properly. Some style is attached to FillPrimitive inside ExRadPanel, but the visual effect is not like I expect.

 Is that possible to make modify a theme in runtime to make a copy of the required style setting with proper settings? 

private static void FixTheme(Theme theme)
{
    // try to add registration
    var sg = theme.FindStyleGroup(typeof(RadPropertyGrid).FullName);
    sg.Registrations.Add(new MyStyleRegistration
    {
        RegistrationType = "ElementTypeControlType",
        ElementType      = "Telerik.WinControls.RootRadElement",
        ControlType      = typeof(ExRadPanel).FullName
    });
    sg.Registrations.Add(new MyStyleRegistration
    {
        RegistrationType = "ElementTypeControlType",
        ElementType      = typeof(RadPanelElement).FullName,
        ControlType      = typeof(ExRadPanel).FullName
    });

    var copy = sg.PropertySettingGroups.ToArray();
    foreach (var settingGroup in copy)
    {
        if (settingGroup.Selector is null)
            continue;
        if (settingGroup.Selector.Value != nameof(PropertyGridHelpElement))
            continue;
        {
            // trying this ... 
            var newSg = new PropertySettingGroup
            {
                Selector = new ElementSelector(settingGroup.Selector.Type, nameof(RadPanelElement)),
                BasedOn  = settingGroup.BasedOn
            };
            newSg.Repositories.AddRange(settingGroup.Repositories);
            newSg.PropertySettings.AddRange(settingGroup.PropertySettings);
            sg.PropertySettingGroups.Add(newSg);
        }
        {
            // ... and this    
            var newIi = new PropertySettingGroup
            {
                Selector = new ElementSelector(ElementSelectorTypes.TypeSelector, typeof(FillPrimitive).FullName),
                BasedOn  = settingGroup.BasedOn
            };
            newIi.Repositories.AddRange(settingGroup.Repositories);
            newIi.PropertySettings.AddRange(settingGroup.PropertySettings);
            sg.PropertySettingGroups.Add(newIi);
        }
    }
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Jun 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
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
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
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
ColorBox
Callout
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
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
AIPrompt
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?