Thanks!
Brad.
I'm using a DefaultVisualStyle Property to set the style in order to control the Fill color of ScatterPointSeries via the DataItem.PointColor property (as seen below)
This works fine, but when I try to use a ChartDataSourceStyle to reduce the number of datapoints using Index-based sampling, something breaks and I no longer see ANY points displayed in the graph, due to this binding failure:
Path Tag.DataItem.PointColor Path.Fill Brush PointColor property not found on object of type DataPointSamplingInfo.
** How can I redirect the DataPointSamplingInfo points to use the PointColor of its DataItems (they'll all have the same value) **
<Style x:Key="ScatterPointStyle" TargetType="Path" >
<Setter Property="Fill" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Tag.DataItem.PointColor}"/>
</Style>
<telerik:ChartSeriesProvider Source="{Binding ChartData}" >
<telerik:ChartSeriesProvider.SeriesDescriptors >
Hi
I've been using the Microsoft WebView2 control lately and find it quite horrible to work with...
I was wondering if you guys at Telerik would be able to make a wrapper for it that improve the functionality of the control ?
Problems that i encountered :
- Initialization is pretty messed up and require that you setup a Rube Goldberg machine to make it work.
- Overflow issues : the Webbrowser may overflow any / all other WPF controls unless you do a lot of scorcery ...
- Having the WebView inside a scrollbar is pretty messed up with overflow issues all over.
Hi,
Is there a way to change the icon for the rad expander from the circle with a '<' or '>' to an icon and shape that I define?
Thanks
Tony
I'm sure this is trivial, but I've been unable to find the answer. I have a RadGridView defined as follows:
<telerik:RadGridView
ItemsSource="{Binding Products}"
SelectedItem="{Binding SelectedProduct, Mode=TwoWay}">
...
</telerik:RadGridView>
However, when I change the "SelectedProduct" programmatically, the RadGridView doesn't show that highlighting. What am I doing wrong?
<telerik:RadRibbonView ApplicationButtonVisibility="Collapsed"TitleBarVisibility="Collapsed" HelpButtonVisibility="Collapsed"> <telerik:RadRibbonTab Header="Home" HeaderVisibility="Collapsed"> <telerik:RadRibbonGroup Header="Actions"> <telerik:RadRibbonButton LargeImage="{StaticResource Back}" Text="Close" Size="Large" Command="{Binding CloseViewCommand}" /> <telerik:RadRibbonButton LargeImage="{StaticResource Edit}" Text="Edit" Size="Large" Command="{Binding EditItemCommand}" /> <telerik:RadRibbonButton LargeImage="{StaticResource Save}" Text="Save" Size="Large" Command="{Binding SaveItemCommand}" /> <telerik:RadRibbonButton SmallImage="{StaticResource Cancel}" Text="Cancel" Size="Large" Command="{Binding CancelItemCommand}" /> </telerik:RadRibbonGroup> <telerik:RadRibbonGroup Header="Print"> <telerik:RadRibbonButton SmallImage="{StaticResource Print}" Text="xxx" Size="Large" Command="{Binding PrintItemCommand}"/> </telerik:RadRibbonGroup> <telerik:RadRibbonGroup Header="Extras"> <telerik:RadRibbonButton SmallImage="{StaticResource UpdatePortrait}" Text="xxxxx" Size="Large" Command="{Binding UpdatePictureCommand}"/> </telerik:RadRibbonGroup> </telerik:RadRibbonTab> </telerik:RadRibbonView>Hey,
I am using a DragDropManager to drag images from a itemscontrol onto a table.
Now I want to rotate the image, if the user presses the Key "R" during Dragging.
But I dont get it to work.
All Input Bindings on the Window and DataTemplate did not fire.
Does anyone have an idea to achieve what I want?
DragDropManager.AddDragInitializeHandler(icImages, OnDragInitialize);
private void OnDragInitialize(object sender, DragInitializeEventArgs e)
{
clsImage imageData = (clsImage)((FrameworkElement)e.OriginalSource).DataContext;
DragDropData dragData = new DragDropData
{
ImageData = imageData ,
Column = Column
};
e.Data = dragData;
e.DragVisual = new ContentControl { ContentTemplate = LayoutRoot.Resources["ImageTemplate"] as DataTemplate, Content = imageData };
e.AllowedEffects = DragDropEffects.All;
e.Handled = true;
} <DataTemplate x:Key="ImageTemplate">
<Grid>
<telerik:RadSvgImage
UriSource="{Binding file}"
HorizontalAlignment="Left"
SizeType="ContentToSizeStretch"
OverrideColor="{Binding ImageColor}"
/>
</Grid>
</DataTemplate>I ran into this problem when experimenting with VirtualGrid, but trying to work with Multiple selection mode seems completely broken. I have even created a new project from scratch and only imported the following packages:
telerik.windows.controls.for.wpf.xaml (2024.3.924)
telerik.windows.controls.virtualgrid.for.wpf.xaml (2024.3.924)
My MainWindow.xaml looks like:
<Window x:Class="TestVirtGrid.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TestVirtGrid"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<telerik:RadVirtualGrid x:Name="VirtGrid" CanUserEdit="False" Grid.Row="0" SelectionMode="Multiple" SelectionUnit="Row" />
<Button Grid.Row ="1" Content="amon"/>
</Grid>
</Window>
The code-behind looks like:
using System.Collections.ObjectModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls.VirtualGrid;
namespace TestVirtGrid
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
ObservableCollection<Test> list = [];
for (int i = 0; i < 20; i++)
list.Add(new Test() { a = i, b = i });
VirtGrid.DataProvider = new DataProvider(list);
}
}
public class Test
{
public int a { get; set; }
public int b { get; set; }
}
}When running the application, I'm able to select rows, but deselecting is clearly not working as intended. When I try to deselect, it often just completely fails to do so. Sometimes (like, 1 in 5 tries?) it does end up deselecting the row.
If there's something I've done wrong here, please let me know, otherwise I'd like to get some confirmation that this module doesn't work.
