Telerik Forums
UI for WPF Forum
0 answers
4 views
-
Telerik
Top achievements
Rank 1
Iron
 asked on 27 Oct 2025
0 answers
190 views
The RadWebCam for WPF control currently relies on the SharpDX library to render the video feed. With 2024 Q4 we will replace SharpDX with the SkiaSharp library. This decision was taken because the SharpDX library is no longer maintained since March 2019.


Martin Ivanov
Top achievements
Rank 1
 asked on 10 Sep 2024
0 answers
280 views

As of 2024 Q4 (November), we will deprecate the .NET 7 distribution. This decision is rooted in our dedication to align with Microsoft’s recommended framework versions so that our products leverage the latest advancements in technology, security, and performance.  

We are aligning our product with Microsoft’s lowest-supported framework versions for .NET Framework and .NET, respectively. Please refer to the following blog post: Product Update for Enhanced Performance and Security

For more information about how to upgrade your project when a new version of the Telerik UI for WPF suite is released, you can check here: Project Migration to .NET 4.6.2 and .NET 6

Martin Ivanov
Top achievements
Rank 1
 asked on 28 May 2024
0 answers
359 views

As of 2024 Q2, we will deprecate .NET Framework 4.0, .NET Framework 4.5, and .NET Core 3.1 distributions. This decision is rooted in our dedication to align with Microsoft’s recommended framework versions so that our products leverage the latest advancements in technology, security, and performance.

We are aligning our product with Microsoft’s lowest-supported framework versions for .NET Framework and .NET, respectively. Please refer to the following blog post:

Product Update for Enhanced Performance and Security (telerik.com)

For more information about how to upgrade your project's .NET Framework version, you can check the following MSDN article:

Migration Guide to .NET Framework 4.8, 4.7, and 4.6.2 - .NET Framework | Microsoft Learn


Stenly
Top achievements
Rank 1
 asked on 30 Jan 2024
0 answers
6 views

Hi,

is it possible to set the search field below the columns in the WPF grid like it was in the WinForm grid? Without clicking the filter button?

Tanks

fabrizio
Top achievements
Rank 1
Iron
Veteran
 asked on 24 Oct 2025
1 answer
8 views

Had migrated from .Net Framework to .Net8 and of course updated Telerik references, and I'm facing this problem rendering the chart.

using Telerik.Windows.Controls.ChartView;
using Telerik.Windows.Controls.Legend;

namespace Manager
{
    public partial class CustomChartControl : UserControl, INotifyPropertyChanged
    {
        private const int YAXIS_STEP_NUMBER = 8;
        private ChartSerieCollectionVM _viewModel;
        private string _title;

        public LinearAxis LeftAxis { get { return chart.Resources["leftAxis"] as LinearAxis; } }
        public LinearAxis LeftCAxis { get { return chart.Resources["leftAxisC"] as LinearAxis; } }
        public LinearAxis RightAxis { get { return chart.Resources["rightAxis"] as LinearAxis; } }
        public LinearAxis RightCAxis { get { return chart.Resources["rightAxisC"] as LinearAxis; } }

        public string Title
        {
            get { return _title; }
            set
            {
                _title = value;
                OnPropertyChanged("Title");
            }
        }

        public DateTime ActualMaxDateTime { get; private set; }
        public DateTime ActualMinDateTime { get; private set; }

        public CustomChartControl()
        {
            InitializeComponent();
        }

        public void SetDataContext(ChartSerieCollectionVM series)
        {
            foreach (var serie in series.Series)
            {
                AsignSerieAxis(serie);
            }

            _viewModel = series;
            DataContext = _viewModel;
        }

        private void AsignSerieAxis(ChartSerieVM serie)
        {
            if (serie.HorizontalAlignment == Telerik.Charting.AxisHorizontalLocation.Left)
            {
                if (serie.IsC)
                {
                    serie.Axis = this.LeftCAxis;
                }
                else
                {
                    serie.Axis = this.LeftAxis;
                }
            }
            else
            {
                if (serie.IsC)
                {
                    serie.Axis = this.RightCAxis;
                }
                else
                {
                    serie.Axis = this.RightAxis;
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}

 

     

<telerik:RadCartesianChart x:Name="chart" Grid.Row="2">
            <telerik:RadCartesianChart.Resources>
                <telerik:LinearAxis
                    x:Key="leftAxisC"
                    Margin="0,0,0,0"
                    HorizontalLocation="Left"
                    IsInverse="True"
                    LineStroke="{DynamicResource Gray4}"
                    Maximum="1.1"
                    Minimum="0.9"
                    RangeExtendDirection="Both"
                    TickThickness="0">
                    <telerik:LinearAxis.LabelTemplate>
                        <DataTemplate>
                            <TextBlock
                                x:Name="AxisLabel"
                                HorizontalAlignment="Right"
                                FontFamily="Segoe UI"
                                FontSize="12"
                                Foreground="{DynamicResource Gray4}"
                                Text="{Binding ., Converter={StaticResource CValueConverter}}" />
                        </DataTemplate>
                    </telerik:LinearAxis.LabelTemplate>
                </telerik:LinearAxis>
                <telerik:LinearAxis
                    x:Key="leftAxis"
                    Margin="0,0,0,0"
                    HorizontalLocation="Left"
                    LineStroke="{DynamicResource Gray4}"
                    RangeExtendDirection="Both"
                    TickThickness="0">
                    <telerik:LinearAxis.LabelTemplate>
                        <DataTemplate>
                            <TextBlock
                                x:Name="AxisLabel"
                                HorizontalAlignment="Right"
                                FontFamily="Segoe UI"
                                FontSize="12"
                                Foreground="{DynamicResource Gray4}"
                                Text="{Binding .}" />
                        </DataTemplate>
                    </telerik:LinearAxis.LabelTemplate>
                </telerik:LinearAxis>
                <telerik:LinearAxis
                    x:Key="rightAxisC"
                    Margin="0,0,0,0"
                    HorizontalLocation="Right"
                    IsInverse="True"
                    LineStroke="{DynamicResource Gray4}"
                    Maximum="1.1"
                    Minimum="0.9"
                    TickThickness="0">
                    <telerik:LinearAxis.LabelTemplate>
                        <DataTemplate>
                            <TextBlock
                                x:Name="AxisLabel"
                                HorizontalAlignment="Right"
                                FontFamily="Segoe UI"
                                FontSize="12"
                                Foreground="{DynamicResource Gray4}"
                                Text="{Binding ., Converter={StaticResource CValueConverter}}" />
                        </DataTemplate>
                    </telerik:LinearAxis.LabelTemplate>
                </telerik:LinearAxis>
                <telerik:LinearAxis
                    x:Key="rightAxis"
                    Margin="0,0,0,0"
                    HorizontalLocation="Right"
                    LineStroke="{DynamicResource Gray4}"
                    RangeExtendDirection="Both"
                    TickThickness="0">
                    <telerik:LinearAxis.LabelTemplate>
                        <DataTemplate>
                            <TextBlock
                                x:Name="AxisLabel"
                                HorizontalAlignment="Right"
                                FontFamily="Segoe UI"
                                FontSize="12"
                                Foreground="{DynamicResource Gray4}"
                                Text="{Binding ., Converter={StaticResource RightAxisValueConverter}}" />
                        </DataTemplate>
                    </telerik:LinearAxis.LabelTemplate>
                </telerik:LinearAxis>
            </telerik:RadCartesianChart.Resources>

            <!--  HORIZONTAL AXIS  -->
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis
                    ActualRangeChanged="DateTimeContinuousAxis_ActualRangeChanged"
                    Name="BottomAxis"
                    LabelFitMode="Rotate"
                    LabelFormat="HH:mm:ss"
                    LineThickness="1"
                    Maximum="{Binding MaxVisible, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                    Minimum="{Binding MinVisible, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                    PlotMode="OnTicks" />
            </telerik:RadCartesianChart.HorizontalAxis>

            <!--  SERIES PROVIDER  -->
            <telerik:RadCartesianChart.SeriesProvider>
                <telerik:ChartSeriesProvider Source="{Binding VisibleSeries}">
                    <telerik:ChartSeriesProvider.SeriesDescriptors>
                        <telerik:CategoricalSeriesDescriptor
                            CategoryPath="Date"
                            ItemsSourcePath="ItemsInView"
                            ValuePath="YVal">
                            <!--  Fill="{Binding Series.Stroke}"  -->
                            <telerik:CategoricalSeriesDescriptor.Style>
                                <Style TargetType="telerik:LineSeries">
                                    <Setter Property="Stroke" Value="{Binding SerieColor}" />
                                    <Setter Property="StrokeThickness" Value="1" />
                                    <Setter Property="LegendSettings">
                                        <Setter.Value>
                                            <telerik:SeriesLegendSettings Title="{Binding Title}" />
                                        </Setter.Value>
                                    </Setter>
                                    <Setter Property="VerticalAxis" Value="{Binding Axis}" />
                                    <Setter Property="TrackBallTemplate">
                                        <Setter.Value>
                                            <DataTemplate>
                                                <Rectangle
                                                    Width="7"
                                                    Height="7"
                                                    Fill="{Binding Series.Stroke}"
                                                    RenderTransformOrigin="0.5,0.5">
                                                    <Rectangle.ToolTip>
                                                        <ToolTip>
                                                            <StackPanel Orientation="Vertical">
                                                                <TextBlock x:Name="lbPointValue" Text="{Binding Path=DataPoint.Value}" />
                                                                <TextBlock Text="{Binding Path=DataPoint.Category, StringFormat=HH:mm:ss}" />
                                                            </StackPanel>
                                                        </ToolTip>
                                                    </Rectangle.ToolTip>
                                                </Rectangle>
                                                <DataTemplate.Triggers>
                                                    <DataTrigger Binding="{Binding Series, Converter={StaticResource DataPointSerieIsCConverter}}" Value="True">                                                  
                                                    </DataTrigger>
                                                </DataTemplate.Triggers>
                                            </DataTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </telerik:CategoricalSeriesDescriptor.Style>
                        </telerik:CategoricalSeriesDescriptor>
                    </telerik:ChartSeriesProvider.SeriesDescriptors>
                </telerik:ChartSeriesProvider>
            </telerik:RadCartesianChart.SeriesProvider>

            <!--  GRID  -->
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="Y" />
            </telerik:RadCartesianChart.Grid>

            <telerik:RadCartesianChart.SmartLabelsStrategy>
                <telerik:ChartSmartLabelsStrategy />
            </telerik:RadCartesianChart.SmartLabelsStrategy>

        </telerik:RadCartesianChart>



This CustomChart is declared from other view as:

<TabItem x:Name="TabTotal" Header="Total">
     <this:CustomChartControl x:Name="TelerikPowerChart" />
</TabItem>

TelerikPowerChart.Title = "Total Active Power";
TelerikPowerChart.SetDataContext(_viewModel.ActiveModel.PowerSerieCollection

Stenly
Telerik team
 answered on 23 Oct 2025
3 answers
379 views
Hello all
I have difficulty with RadContextMenu and particulary DataContext property.
I have a RadWindow ("mainWindow") who contain a RadTreeView. RadTreeView expose Items by HierarchicalDataTemplate, that this items who contains RadContextMenu.
My problem : DataContext of RadContextMenu is always DataContext of Item and I want the DataContext of the RadWindow.
I show you my XAML :
<telerik:RadWindow x:Class="Vue.MainWindow" x:Name="mainWindow"              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"                        
                   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<Grid x:Name="mainGrid">
   <telerik:RadTreeView x:Name="radTreeView" Grid.Row="1" ItemsSource="{Binding TypeDatabases}"
      <telerik:RadTreeView.Resources>
                  <HierarchicalDataTemplate DataType="{x:Type Modele:EntiteDatabase}" ItemsSource="{Binding Tables}">
                            <StackPanel Orientation="Horizontal" Height="25">
                                <Image Source="{Binding SourceIcone}" Stretch="Fill" Height="16"/>
                                <TextBlock Text="{Binding Description}" TextAlignment="Left" VerticalAlignment="Center" />
                                <telerik:RadContextMenu.ContextMenu>
                                    <telerik:RadContextMenu InheritDataContext="False" DataContext="{Binding DataContext, ElementName=mainWindow}">
                                        <telerik:RadMenuItem Header="Connexion" Command="{Binding OpenDatabase}" />
                                        <telerik:RadMenuItem Header="Déconnexion" Command="{Binding CloseDatabase}" />
                                    </telerik:RadContextMenu>
                                </telerik:RadContextMenu.ContextMenu>
                            </StackPanel>
                        </HierarchicalDataTemplate>
      </telerik:RadTreeView.Resources>
   </telerik:RadTreeView>
</Grid>
</telerik:RadWindow>
In this solution, I have an error : "cannot find ElementName=mainWindow" and I don't understand
I tried others methods to retrieve the DataContext (Tag in my StackPanel, ....)
Thank to you for help

PS : I am sorry for my english
Johnathan
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 22 Oct 2025
0 answers
9 views

We have an application that modifies Word documents using a template system. In our Word template, we use placeholders like #NOTES# to mark where dynamic content should be inserted.

In our app, we define the content for #NOTES# using a RichTextBox, which allows formatting such as bold, italic, and underline. When we replace the placeholder using:

editor.ReplaceText("#NOTES#", importedSections);

…the basic formatting is preserved correctly in the final Word document.

However, when we apply a style like Heading1 to the text in the RichTextBox, that style is not carried over to the final Word output. We are using the following code to handle the import:


var importer = new DocumentElementImporter(document, flowDocument, ConflictingStylesResolutionMode.UseTargetStyle);

Despite this, the style (e.g., Heading1) is not applied in the resulting document. Is there something we’re missing to ensure that styles like Heading1 are preserved during the import?

Any help or guidance would be greatly appreciated!

Thanks in advance.

Yan
Top achievements
Rank 1
 asked on 16 Oct 2025
1 answer
18 views

I recently found that you cant follow shortcuts to folders in the RadSaveFileDialog. We have several end users that have created shortcuts to folders and when they try to open those folders the dialog just selects the shortcut file instead and returns.

There is an option called DereferenceLinks in the OpenFileDialog which seems to do the job but this is not available on any other dialogs.

Is there a work around for this or can that option be made available on the other dialogs too?

Stenly
Telerik team
 answered on 16 Oct 2025
1 answer
9 views
Can one change the position of the RadNavigationView's Menu section to display on the right side of the screen rather than the left?
Stenly
Telerik team
 answered on 14 Oct 2025
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?