Telerik Forums
UI for WPF Forum
2 answers
155 views

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

David
Top achievements
Rank 1
Iron
Iron
 answered on 25 Jan 2023
1 answer
131 views

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

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 24 Jan 2023
1 answer
126 views

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

Martin Ivanov
Telerik team
 answered on 24 Jan 2023
1 answer
118 views

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 !

Stenly
Telerik team
 answered on 20 Jan 2023
1 answer
86 views

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

 

Dilyan Traykov
Telerik team
 answered on 18 Jan 2023
1 answer
132 views

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

Stenly
Telerik team
 answered on 17 Jan 2023
0 answers
147 views

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

Sergej
Top achievements
Rank 1
 updated question on 16 Jan 2023
1 answer
167 views

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

Martin Ivanov
Telerik team
 answered on 16 Jan 2023
1 answer
114 views
Hello,

I'm trying to replicate two old (and glorious) Janus controls.
They are the ExplorerBar and the ButtonBar (I am attaching two images taken from an Office Blue theme).
They are not technically difficult but it is tedious to properly maintain each theme.

The former can be treated as a panel of Expanders, background and margins of this panel should depend on the theme. Something similar can be achieved from RadDocking (but the panels should be collapsible)

The second is trivial yet I can't find any container that automatically applies the selected theme, if not a vertical radToolbar but it doesn't seem like an optimal solution to me...

Ideas? Tips?
Thank you.
Martin Ivanov
Telerik team
 answered on 13 Jan 2023
1 answer
155 views

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?

alex
Top achievements
Rank 2
Bronze
Iron
Iron
 updated answer on 13 Jan 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?