Telerik Forums
UI for WPF Forum
1 answer
15 views

Hello, I want to add a custom palette with its own names and colors in WPF. But seems like I can only work with built-in MainPalette, HeaderPalette, AdditionalContent

The image below shows my intention. I want to add not only 2 of them, but as many as I want.

Stenly
Telerik team
 answered on 29 Jul 2025
1 answer
16 views
Is there a way to use RadMaskedDateTimeInput with RadDateTimePicker?  Users want to be able dates in MM/dd/yyyy format (without typing the slashes) or use the calendar picker.  I believe RadDateTimePicker uses RadWatermarkTextBox which does not have tight input control.
Martin Ivanov
Telerik team
 answered on 29 Jul 2025
0 answers
17 views
When adding a graphic to the diagram, adjust its width and height, and set the border to 2(or other value)

After exporting the PDF, the thickness of each border is inconsistent.At the same time, the thickness of the border is also different from the set value,I feel like the border has been stretched and enlarged as a whole,You can test Microsoft Visio, it doesn't have this issue.

      Test code use the sample sdk project:ExportToPDF_WPF

Please refer to the image

wu
Top achievements
Rank 1
Veteran
 updated question on 25 Jul 2025
0 answers
17 views

Product: Telerik UI for WPF

Control: RadDatePicker (custom inherited as NewDatePicker)

Target Framework: .NET Framework 4.7

 

Issue Summary:

W're facing an inconsistency in behavior with the RadDatePicker control between development and test environments.

  • We have a custom control NewDatePicker that inherits from RadDatePicker.
  • At runtime, we bind a SelectedDate value (e.g., Jan 23, 2025) to the control.
  • When the user clicks to open the calendar popup:
    •   In development, the calendar popup correctly opens to SelectedDate.
    •   In test, the calendar popup opens to today's date (July 2025) instead of the bound SelectedDate.

 

Steps to Reproduce:

  1. Use a RadDatePicker or inherited control.

        2. Set SelectedDate = DateTime.Now.AddMonths(-6) (e.g., Jan 23, 2025).

        3. Run the application and open the DatePicker calendar.

        4. Observe the calendar view:

  •  Dev: shows January 2025 (as expected).
  •  Test: jumps to current date (July 2025), even though SelectedDate is Jan 23.

What We Tried:

  • Manually calling this.DisplayDate = this.SelectedDate.Value; inside OnPreviewMouseDown.
  • Using Dispatcher.BeginInvoke(..., DispatcherPriority.Loaded) to defer the update.
  • Accessing and setting PART_Calendar.DisplayDate explicitly.
  • Ensured that SelectedDate has a valid value.
  • Tried handling Loaded, OnApplyTemplate, and custom SyncDisplayDate() method.
  • Everything works well in development — but not in the test environment.


    Questions:
    1. Is there a recommended approach to ensure the calendar opens to the correct month consistently in all environments?

Note: In Test environment First time click that time its show the current Date secound time I click that time it show the expected output. 

 

  • the below the calendar need to show the 23 jan 2025 but its show current date.

Parthiban
Top achievements
Rank 1
 updated question on 24 Jul 2025
2 answers
10 views
Is there anyway to disable this functionality in the pdf viewer so that I can handle zooming manually?
Rob
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 22 Jul 2025
0 answers
25 views

I am using Telerik UI for WPF 2024 Q4\Binaries.NoXaml\WPF80\Telerik.Windows.Documents.Flow.FormatProviders.Doc.dll (version 2024.4.1106.60) on Windows 11 Pro (24H2). The program is developed using VS 2022.

It simply tries to load and display the attached DOCX file and the component crashes during layout with a null reference exception.

         using var instream = File.OpenRead(path);

         var openXmlRadDocProvider =
            new Telerik.Windows.Documents.FormatProviders.OpenXml.Docx.DocxFormatProvider();

         var raddoc = openXmlRadDocProvider.Import(instream);
         RadRtb.Document = raddoc;

Word displays this perfectly. Trying to determine if this is a Telerik bug or a "me" problem.

Stenly replied and said he was unable to reproduce using 2025.2.707. I am able to reproduce the crash with that version. I have attached my project in case I'm doing something wrong in code.

Thanks.

-John Reilly.

Reilly
Top achievements
Rank 1
Veteran
 updated question on 16 Jul 2025
1 answer
32 views

I am using the Material Theme, here's my app.xaml code


<Application x:Class="Desktop_Application.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Application.Resources>
        
        <ResourceDictionary>
            <!-- Global default font size -->
            <Style TargetType="{x:Type Control}">
                <Setter Property="FontSize" Value="8"/>
            </Style>
            
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.ImageEditor.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
However, the application does not reflect the new font size, is there a way to do it?
Martin Ivanov
Telerik team
 answered on 16 Jul 2025
0 answers
23 views

I'm using central package management, where my Directory.Build.props has folliwing entries:

 

<ItemGroup>
    <PackageVersion Include="Telerik.UI.for.Wpf.NetCore.Xaml" Version="2024.1.423" />
    <PackageVersion Include="Telerik.Windows.Controls.Data.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.DataVisualization.for.Wpf.Xaml" Version="2024.3.924" />
    <PackageVersion Include="Telerik.Windows.Controls.Diagrams.Extensions.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.Diagrams.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.Diagrams.Ribbon.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.GridView.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.Input.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.Navigation.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Controls.RibbonView.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Data.for.Wpf.Xaml" Version="2025.2.707" />
    <PackageVersion Include="Telerik.Windows.Diagrams.Core.for.Wpf.Xaml" Version="2025.2.707" />
</ItemGroup>

As you can maybe see, 

Telerik.UI.for.Wpf.NetCore.Xaml has 2024.1.423
Telerik.Windows.Controls.DataVisualization.for.Wpf has 2024.3.924

when using the manage nuget packages dialog from within visual studio it does not report that any updates are necessary, but the build tells me that (of course) there is a version mismatch,

The dialog even tells me that there is a newer version:

What could be the problem that it doesn't get updated or is not found to require an update?

 

Martin
Top achievements
Rank 1
 updated question on 15 Jul 2025
1 answer
22 views

I using the <telerik:RadDatePicker> 

 DisplayFormat = (Long or short) only there I need a customer format how we archive.

 

Example : 1 July 2025, 1 JUL 2025

Stenly
Telerik team
 answered on 14 Jul 2025
0 answers
25 views

I have a RadMaskedNumericInput as follows:

 


<telerik:RadMaskedNumericInput Grid.Row="0" Grid.Column="1" Width="55"
                       Mask=""
                       FormatString="n2"
                       Value="{Binding TotalFeedVolume}"
                       IsClearButtonVisible="False"
/>

When I click on the left of the initial zero, it moves my cursor right in front of the decimal point. This is a bit frustrating, as I couldn't, for example, just easily make it "10" with one keystroke. Any way to fix this?

Zack
Top achievements
Rank 1
 asked on 09 Jul 2025
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?