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.
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?
FluentPalette.Palette.FontSizeS = 10;
FluentPalette.Palette.FontSize = 12;
FluentPalette.Palette.FontSizeL = 13;
FluentPalette.Palette.FontSizeXL = 14;
FluentPalette.Palette.FontFamily = new FontFamily("Segoe UI");
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
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.
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 ?
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:
Thanks
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
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()
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);
}
}
}