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
On GridViewRow I have a style that sets SelectedBackground but it does not work on the alternate rows.
xaml example
<Setter Property="SelectedBackground"
Value="Yellow" />
Is there another property that I need to set so that it will also use the SelectedBackground color when I select an alternate row
(I guessed SelectedAlternateBackground but this isn't present)
Thanks
Hello,
Is it possible to differentiate whether the user closed the RadPane (click on X in header of RadPaneGroup or ToolWindow) or whether it was closed programmatically (IsHidden=true)?
Best regards
Hello,
I try to adjust the header from "default view.jpg" to "wanted view.jpg".
Where can i set the date format as i want it?
I've tried the approach from this link WPF ScheduleView - Styling the GroupHeaders - Telerik UI for WPF. But it didn't worked at all. Even by coping the exact code from your tutorial i get the error on pic: error custom template.JPG
Also is it possible to highlight the weekends in a certain color?
Is it possible to highlight specific dates like public holiday days also in a certain color?
I haven't really found anything about adding a new row on the timeline view, like i need in my "wanted-view.jpg" picture.
best regards
Hello. I am trying to add a simple Tooltip to the RadNumericUpDown control. On the style, the Tooltip content is set to RelativeSource Self, Path Value.
The problem is that my value is double and the tooltip is 3 decimal points. The RadNumericUpDown can be configured to use 1,2, or 3 decimal points but the Tooltip content is always 3 decimal points.
I tried to bind the content to the Display Text (the TextBlock inside the RadNumericUpDown) but I found that you are not raising property changed for this property.
How can I update the property to show the decimal numbers as the dependency property of the RadNumericUpDown?