Our application uses Telerik.Windows.Controls.RadDiagram to arrange RadDiagramItem instances on the screen. Our view model uses a higher resolution than 96x96. When I set RadDiagramItem.Width, for example, to 94.464, I can see in the debugger the framework accepts that value. However, when I execute the undo operation, I see RadDiagramItem.OnSizeChanged(Size newSize, Size oldSize) called, with oldSize = {94, ... }. This results in a rounding error in our view model.
Is there any way to put RadDiagram into a fractional pixel mode?
Dear Team,
I wanted to try the Radbarcodereader in WPF. I opened a new project with .Framework 4.7
and i just pulled out a Radbarcodereader to an empty WPF window.
Simply started the app, and browsed some random images with barcodes, but every time i push the "decode image" i get IndexOutOfRangeException from the control.
All propertises of the control are on default, what do i have to set up to make it work?
I have tried without control, only by code:
Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
Dim imageSource = img_Camera.Source
Dim decoder As New BarcodeDecoder()
decoder.ImageSource = imageSource
AddHandler decoder.DecodingComplete, AddressOf OnDecodingComplete
decoder.StartDecoding()
End Sub
Private Sub OnDecodingComplete(ByVal sender As Object, ByVal e As DecodingEventArgs)
Dim decodeResult As String
If String.IsNullOrEmpty(e.ErrorMessage) Then
decodeResult = String.Format("Code Type: {0}" & ControlChars.Lf & "Result: {1}", e.CodeType, e.Result)
Else
decodeResult = e.ErrorMessage
End If
txt_RESULT.Text = decodeResult
End Sub
At this line: decoder.StartDecoding()
i also get the IndexOutOfRangeException
Please help :)
thanks
Peter B.
I have one parent type “Aa” inherit from “Telerik.Windows.Controls.ScheduleView.Appointment”, with two inherited types “Bb” and “Cc”. while each one has different properties implementation.
I have a RadScheduleView which it’s AppointmentsSource bounded to my ViewModel collection of parent type “Aa” (ObservableCollection<Aa>)
I also have two baskets, first one is a list of “Bb” items while the second one is a list of “Cc” items.
I can drag any item from each basket (“Aa” or “Bb”) and drop them on the ScheduleView so a new Appointment is created.
My problem is that the newly created appointment is always created from parent type “Aa” no matter which basket I selected to drag.
I want it to work according to the origin dragged item type so the new appointment will match the type “Bb” or “Cc”.
I Prepared a Sample code you can see here:
https://gist.github.com/EfiNadell/bcc10a8f93b210b7eaf626e67cf459a2
In the process of debugging an issue with the size of Diagram's ManipulationAdorner, I'm wondering how the size is set, please?
This is in WPF, and I'm currently on v. 2021.1.325.40.
In Visual Studio, in the Live Property Explorer, I see the Height and Width listed as being set via "Animation and Visual States" (see attached image), and the values are not what I want. I'm kind of assuming the properties are being set and held via animation, but I'd be glad for the confirmation.
The issue is that the size of the ManipulationAdorner is incorrect. The discrepancy happens as the size of the business object represented as selected in the Diagram is changing for business reasons.
In a particular situation, for simplicity, a single NodeViewModelBase is selected. I see the NodeViewModelBase's Width and Height being set to the correct values as the size of the business object changes. However, the process of updating the business object has some intermediate, incorrect values for Width/Height in quick succession. These intermediate values are just as a result of property-change notification order, and one of these intermediate values "sticks" or is the incorrect value that shows. The correct value is the final value set, however.
Deselecting and reselecting the object results in a correctly sized ManipulationAdorner.
I don't have a simple example at hand, unfortunately. However, is there enough information here to enable any guidance for further debugging, please? Could the quick and repeated setting of Width & Height be interacting with the timing of WPF's animation system or with the starting/stopping of animations, if these values are indeed being controlled by animation?
I don't think I see any questions of this sort here or elsewhere on other forums.
Thanks for any info and advice!
-David
Hi,
I need to react to arrows keys in document host, but I discovered that arrows key, in docking, moves the focus on the various parts of docking areas: can I disable this interaction?
Thank you
Luigi
Suppose I have an Abstract Class C that inherits from Appointment and Classes A and B that inherit from C.
Class C is only inherited from Appointment but has nothing in it.
public abstract class C : Appointment { }
And classes A and B have overrides for Copy and CopyFrom
The AppointmentSource list is actually a C list.
I am currently having a problem with Drop when I drag an object of type A or B on the board and reach the
if (state.Appointment is A)
{
base.Drop(state);
}
I get an Exception.
From what I see it probably comes from CreateNew, CopyFrom, etc.
If C is not abstract, it creates an object of type C, That is C which is neither A nor B
I verify it in AppointmentCreated
I would appreciate help on how to do this correctly

Hi all,
I'm a beginner in wpf and i have a question. My checkbox inside my GridViewCheckBoxColumn looks strange. it looks like a square filled or not instead of a check. How can i change this ?
to look like this
Here is the xaml code of my column
<telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding SelectedProgram}"
Header="Selection" Background="White"
MinWidth="150" Tag="{windows:NameOf SelectedProgram, Type={x:Type local:AxisToCondition}}" IsReadOnly="False"
AutoSelectOnEdit="True" EditTriggers="CellClick">
</telerik:GridViewCheckBoxColumn>
Is this simple to do ?
Thanks in advance and have a good day !
Hi team. I'm using EnableSmallAppointmentRendering in
<telerik:RadScheduleView.ViewDefinitions>
to display short duration (0 minute), the problem is it will overlap the others appointment. below is my example.
As per highlighted, AMM Murobbi should appear at 13.15. not it overlap with 13.00 slot. how can I counter this issue so the appointment not display the overlap
Thank you