Hi,
I use a standard Wpf Checkbox inside a RadPanelBarItem. I bind the background to a dynamic color and this works well, but when the mouse is over the box the background back to white, I would like that still remains of the assigned color.
Thank you in advance
Luigi
P.S:
Here the useful part of xaml (nothing in code behind)
<DataTemplate x:Key="PanelBarSorgentiTemplate">
<StackPanel Orientation="Horizontal" >
<CheckBox Margin="10 5 5 5" VerticalAlignment="Center"
IsChecked="{Binding IsChecked}"
Background="{Binding Color, Converter={StaticResource ColorToBrush}}"
/>
<TextBlock Text="{Binding Name}"
VerticalAlignment="Center" />
</StackPanel>
</DataTemplate>
<t:RadPanelBarItem Header="{DynamicResource ResourceKey={x:Static l:ResourcesKeys.StatisticheVisualizzate}}"
ItemsSource="{Binding TabRisultati.StatisticheVisualizzate}"
ItemTemplate="{StaticResource PanelBarSorgentiTemplate}"
Visibility="{Binding IsTabStatisticaSelected, Converter={StaticResource BoolToVis}}"
IsExpanded="True"/>
Hello.
I am using RadImageEditor.
I'm done with the setup. It actually works too.
But when I shift + wheel, not only horizontal movement but also vertical scrolling.
I want to move only horizontal scrolling when shift is pressed.
Which part should I control?
<telerik:RadImageEditor x:Name="xImageEditor" Image="{Binding RadImage}" behaviour:HorizontalScrollViewerHelper.IsShiftWheelProperty="True" IsPanningEnabled="True"/>
<imageEditor:ZoomController ImageEditor="{Binding ElementName=xImageEditor}" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
public static class HorizontalScrollViewerHelper
{
public static bool GetIsShiftWheelProperty(DependencyObject obj) => (bool)obj.GetValue(IsShiftWheelProperty);
public static void SetIsShiftWheelProperty(DependencyObject obj, bool value) => obj.SetValue(IsShiftWheelProperty, value);
public static readonly DependencyProperty IsShiftWheelProperty
= DependencyProperty.RegisterAttached("IsShiftWheel",
typeof(bool),
typeof(HorizontalScrollViewerHelper),
new PropertyMetadata(false, HorizontalScrollCallback));
private static void HorizontalScrollCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var imageEditor = d as RadImageEditor;
imageEditor.PreviewMouseWheel += ImageEditor_PreviewMouseWheel;
}
private static void ImageEditor_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
{
if (((RadImageEditor)sender).ChildrenOfType<ScrollViewer>().FirstOrDefault() is ScrollViewer scrollViewer)
{
if(Keyboard.Modifiers.Equals(ModifierKeys.Shift))
{
if (e.Delta < 0)
{
scrollViewer.LineRight();
}
else
{
scrollViewer.LineLeft();
}
//scrollViewer.ScrollToHorizontalOffset(scrollViewer.HorizontalOffset + (-e.Delta / 300));
}
}
}
}
Thanks.
I am looking for a way to implement an endless / infinite scroll in my RadGridView.
I have only found this very outdated blog post
I also found some endless paging approach but I do not want to page, but instead to load more and more data when users scrolls to the end of the RadGridView.
For example,
I am calling a WebService and getting items from range 0 to 10, I populate my RadGridView with those items, when the user scrolls to the end, I want to hit my WebService again and fetch items from range 10 to 20 and load those into my RadGridView (now currently holding 20 items in total), than again user scroll to end, I once again hit WebServce fetch items from range 20 to 30, load those into my RadGridView...
This cycle can be repeated till the point my WebService delivers no data from a range.
Looking at other technologies, this seems to be what I am looking for
https://demos.telerik.com/kendo-ui/grid/endless-scrolling-local
https://demos.telerik.com/kendo-ui/grid/endless-scrolling-remote
Though, I would prefer a solution where the total count can be unknown, and grid just tries to get new data everytime, untill it reaches the point where no data can be delivered, instead of knowing before hand how many items there may be
Hi
I'm trying to put together a diagram sample. I based it on this: https://www.telerik.com/forums/issue-in-copy-and-paste-diagram-items as the report was about a stack trace similar to the one I'm experiencing and trying to track down:
System.ArgumentNullException HResult=0x80004003 Message=Value cannot be null. Parameter name: dataObject Source=Telerik.Windows.Controls.Diagrams StackTrace: at Telerik.Windows.Controls.Diagrams.DataTransferService.HandleDiagramElementDrop(DataObject dataObject)
It builds fine but when I run it, I get an empty window, even if I click on the launch button. I can see no errors at runtime. I've attached a ZIP file of the project.
Hi,
I'm developing an application that will support scripting in it, so SyntaxEditor seems to be the perfect control to allow users to write there own script. But...
I tried to populate intelliprompts using this article (WPF SyntaxEditor | IntelliPrompts | Telerik UI for WPF) but with no success.
Do you have a full example not only an extract? In which event I populate the overlad list?
Thank's for any help.
I am using RadCartesianChart(c#, wpf) for stack bar chart.
I want to implement Subcategories(and legend by subcateroy) and Categories.
Is it possible?
Plz show me the way.
- Sample Datas
- and... I want to like below..
We are currently working on an app that uses a RadGridView. It's rather large and we're finding that there's a lot of performance issues.
There is a very high CPU consumption when moving the mouse over, loading more columns into the gridview, and when scrolling up/down or side-to-side. We have tried virtualization settings, removing converters that were being used on the gridview cells, changing the scroll mode, have the widths set to a fixed value.
We've tried the recommended Tips and Tricks (https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks) but haven't had great luck.
Are there any additional recommendations for improving the gridview performance? Any feedback is appreciated!
Hello.
I tried binding using Rad Image Editor. However, only white images are visible.
1. My provided source compares the normal BitmapSource binding and the RadBitmap binding, and you can see that the normal BitmapSource is bound and the RadBitmap is not.
What's my problem?
2. I've heard that it's not good to put RadBusyIndicator in the Loaded Event when using it. (In general, when using BusyIndicator, not telerik)
So, after Show(modeless), I used async Task to process the initial setting data.
Is this method okay for modeless limitation?
I Using Telerik Version 2021.2.719.45 XAML [No theme specified (default)]
Thanks.