The default behaviour for the StepLineSeries is that the centre of the step is over the point, is there a way to change the position of the step up/down so it corresponds with change in the horizontal axis
e.g. Imagine I have a StepLineSeries displaying the amount of money in my piggy bank on the vertical axis, and the date on a DateTimeContinuous horizontal axis, with the following amounts on dates:
1st Jan = £0
2nd Jan = £10
5th Jan = £3
Currently the first step up happens in between the horizontal axis markers for 1st and 2nd Jan, instead of on the axis marker for 2nd Jan, which is when I actually changed the value. Is there a way to adjust this behaviour?

I am using RadTreeView with IsTriStateMode="True" and IsOptionElementsEnabled="True" options. i am having an issue on aligning the selection of TreeViewItem and the checkbox state. i tried binding IsChecked and IsSelected properties, but did not work as expected.
I prefer doing in XAML. Any suggestions?

Hi,
Is it possible to change the AccentColor in XAML?
I want to do something like this, but in a global style.xaml:
FluentPalette.Palette.AccentColor = (Color)ColorConverter.ConvertFromString("#FF0078D7");FluentPalette.Palette.AccentFocusedColor = (Color)ColorConverter.ConvertFromString("#FF4CB0FF");FluentPalette.Palette.AccentMouseOverColor = (Color)ColorConverter.ConvertFromString("#FF008EFF");FluentPalette.Palette.AccentPressedColor = (Color)ColorConverter.ConvertFromString("#FF0063B1");Best regards,
Moritz

I'm building an app where the user can switch the appearance of the UI controls a runtime.
I do this in codebehind like so:
StyleManager.ApplicationTheme = new MaterialTheme();MaterialPalette.Palette.FontSize = 12;MaterialPalette.Palette.MainColor = (Color)ColorConverter.ConvertFromString("#FFFC0EF1");MaterialPalette.Palette.FontFamily = new FontFamily("Calibri");But besides the radcontrols, there are a lot of MS controls (mostly Label), who's color, font and size i also have to switch.
And (to my surprise) there is no "RadLabel" or "RadTextBlock".
So how can I accomplish this with the regular controls? Can I make them "listen" to the StyleManager.ApplicationTheme ?
I have the following (simplified) xaml:
<telerik:RadCartesianChart x:Name="chart">
<telerik:RadCartesianChart.HorizontalAxis >
<telerik:CategoricalAxis />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Series>
<telerik:LineSeries Stroke="Blue" ItemsSource="<Binding to a double array>"
</telerik:LineSeries>
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
By default the x axis starts from "1" (See picture). How to have the x axis starting at "0" ?
Thanks

I have a RadGridView that is bound to VQCV.
internal class TestContext : DbContext{ public DbSet<City> Cities { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { base.OnConfiguring(optionsBuilder); optionsBuilder.UseSqlite("Data Source=Test.db"); }}internal class City{ public int Id { get; set; }}/// <summary>/// Interaction logic for MainWindow.xaml/// </summary>public partial class MainWindow : Window{ private VirtualQueryableCollectionView view; public MainWindow() { InitializeComponent(); Load(); } private void Load() { var context = new TestContext(); if (File.Exists("Test.db")) { File.Delete("Test.db"); } File.Copy(@"..\..\Test.db", "Test.db"); view = new VirtualQueryableCollectionView(context.Cities); view.FilterDescriptors.Add(new FilterDescriptor("Id", FilterOperator.IsEqualTo, 123)); GV.ItemsSource = view; File.Delete("Test.db"); }
The view loads data from Entity Framework context. Sometimes it may throw DB exceptions, they go to the global level (dispatcher).
I don't know how to handle such exceptions.
private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e){ e.Handled = true;}See my test project: https://github.com/dermeister0/telerik-test
Run the app. Click on column sort icon. Resize window. Result - infinite loop of exceptions. RadGridView tries to measure itself, it gets count of records from VQCV, but the view throws exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Data.Sqlite.SqliteException: SQLite Error 1: 'no such table: Cities'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteCommand.<PrepareAndEnumerateStatements>d__62.MoveNext() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues) at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteReader(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues) at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.BufferlessMoveNext(DbContext _, Boolean buffer) at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.Enumerator.MoveNext() at Microsoft.EntityFrameworkCore.Query.QueryMethodProvider.GetResult[TResult](IEnumerable`1 valueBuffers, Boolean throwOnNullResult) at lambda_method(Closure ) at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ResultEnumerable`1.GetEnumerator() at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext() at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass15_1`1.<CompileQueryCore>b__0(QueryContext qc) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute(Expression expression) at Telerik.Windows.Data.QueryableExtensions.Count(IQueryable source) at Telerik.Windows.Data.VirtualQueryableCollectionView.get_ItemCount() at Telerik.Windows.Data.VirtualQueryableCollectionView.get_InternalCount() at Telerik.Windows.Data.QueryableCollectionView.get_IsEmpty() at Telerik.Windows.Data.DataItemCollection.get_IsEmpty() at Telerik.Windows.Controls.GridView.BaseItemsControl.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at Telerik.Windows.Controls.DataControl.OnItemsCollectionChangedDispatch(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.DataItemCollection.OnCollectionViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.Listener`2.ReceiveWeakEvent(Object sender, TArgs args) at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) at Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args) at Telerik.Windows.Data.VirtualQueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args) at Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() at Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() at Telerik.Windows.Data.VirtualQueryableCollectionView.InvalidatePagingAndRefresh() at Telerik.Windows.Data.QueryableCollectionView.OnSortDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.RadObservableCollection`1.RaiseCollectionChangedOnResume() at Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications() at Telerik.Windows.Data.CollectionHelper.Reset(IEnumerable source, IList target, Func`2 itemConverter) at Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args) at Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args) at Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at Telerik.Windows.Data.RadObservableCollection`1.RaiseCollectionChangedOnResume() at Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications() at Telerik.Windows.Controls.GridView.GridViewDataControl.PerformSorting(GridViewSortingEventArgs sortingArgs) at Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClassb7.<Sort>b__b6() at Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action) at Telerik.Windows.Controls.GridView.GridViewDataControl.Sort(GridViewColumn column, Boolean appendToExisting) at Telerik.Windows.Controls.GridView.GridViewHeaderCell.RequestSort(Boolean appendToExisting) at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PerformUserSort() at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
couldn't change the theme by "Configure porject" menu.
although I use theme based on implicit styles, it still cannot go to the second page to select which theme will be applied.
The "Theme button" also didn't show when you select the WPF window
I use visual studio 2017 - version 15.8.9 and windows 10.
Telerik control is 2018.3.1016
-Jacky
I have VerticalLinearScale with properties:
Min= 0
Max = 100
MajorTickStep = 20
MiddleTicks = 4
by click on button I changed the values of the properties to:
Min= 0
Max = 30000
MajorTickStep = 5000
MiddleTicks = 10
the problem is that it takes too much time till the element render again with the new values
I couldn't attach the sample
Xaml is:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<telerik:VerticalLinearScale Min="0" Max="100" x:Name="bar"
IsInteractive="False"
RelativeHeight="0.8"
RangeLocation="Outside"
MajorTickOffset="0.02*"
MiddleTickOffset="0.02*"
MinorTickOffset="0.02*"
RelativeX="0.5" RelativeY="0.08"
Foreground="Gray" Fill="Red"
MajorTickStroke="Red" MiddleTickStroke="Red"
MiddleTicks="4" MinorTicks="1" MajorTickStep="20">
<telerik:VerticalLinearScale.Indicators>
<telerik:BarIndicator x:Name="VerticalIndicator" Value="{Binding Model.Parameters[0].ValueToDisplay}" BorderBrush="Transparent" Background="{Binding Model.FillColor}"
RangeColorMode="Default" telerik:ScaleObject.Location="OverOutside" StartWidth="{Binding Model.BarWidth}" EndWidth="{Binding Model.BarWidth}"
UseRangeColor="True" Margin="3,0,0,0" EmptyFill="{Binding Model.GaugeColor}" />
</telerik:VerticalLinearScale.Indicators>
</telerik:VerticalLinearScale>
<Button Content="click" Click="Button_Click" Grid.Row="1"/>
</Grid>
click event is:
private void Button_Click(object sender, RoutedEventArgs e)
{
bar.Min = 0;
bar.Max = 30000;
bar.MajorTickStep = 5000;
bar.MiddleTicks = 10;
}
Thanks,
Shoshana