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
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
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
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
<telerik:RadWindow x:Class="Vue.MainWindow" x:Name="mainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 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>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.
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?