Questions tagged [arrangeoverride]
28 questions
14
votes
2 answers
Panel.Children vs Panel.InternalChildren -- What's the difference?
According to MSDN - Panel.InternalChildren Property:
Classes that are derived from Panel
should use this property, instead of
the Children
property, for internal overrides such
as MeasureCore
and ArrangeCore.
So, this is really a 2 part…

myermian
- 31,823
- 24
- 123
- 215
6
votes
2 answers
WPF MeasureOverride and ArrangeOverride
My question here is more of a theoretical one rather than functional. So what I'm looking for is an answer that can maybe be backed up with some documentation.
I find myself in the situation where I need to do some custom measurements/arrangements…

user1422535
- 749
- 1
- 6
- 11
4
votes
2 answers
MeasureOverride and ArrangeOverride. What is really AvailableSize/DesiredSize?
I've been stuck for two days trying to understand the layout principles of WPF.
I have read a bunch of articles and explored the wpf source code.
I know that measure/measureoverride method accepts a availablesize and then sets the DesiredSize…

Tormod
- 4,551
- 2
- 28
- 50
2
votes
2 answers
WPF - IScrollInfo implementation
The problem: An Window that has an ItemsControl with some items(let's say Rectangles).
The window has MinWidth and MinHeight setted(eg. 300)
I need that when I resize window if the rectangles has not enough space to be displayed to be displayed in 2…

Victor
- 260
- 1
- 3
- 13
2
votes
1 answer
FramworkElement Arrange not placing child FramworkElement
I have two classes [applicable to this question]. The first, XYAxes2, extends FrameworkElement. It overrides MeasureOverride and ArrangeOverride in an attempt to place it's sole child, XAxis (also extends FrameworkElement), in the desired…

Richard SP.
- 497
- 6
- 15
2
votes
1 answer
ArrangeOverride and Arrange() when are they called by the Layouting system?
I am trying to understand the layout system in Silverlight, but I don't really know how the process works. I know that Measure is always called before and then when all the measures have been done the arrange starts. But when exactly does this…

Adriana
- 225
- 3
- 8
1
vote
2 answers
ContentControl Arrange/Measure Child Panels
MyControl : ContentControl
|
ContentProperty
________|__________
| | |
…
1
vote
1 answer
Why is a ListBoxItem not calling MeasureOverride when its width is changed?
Ok, for illustrative purposes, below I created a subclass of ListBoxItem and a subclass of ListBox which uses it as its container by overriding both IsItemItsOwnContainerOverride and GetContainerForItemOverride.
Now when the window first appears, as…

Mark A. Donohoe
- 28,442
- 25
- 137
- 286
1
vote
1 answer
WPF: How do you "undraw" a child item from within a custom panel?
Basically, I have a panel that draws its children based upon a DependencyProperty (FooProperty).
If FooProperty is true, the child is arranged; otherwise, it is not arranged. The first passthrough is fine, but when a child changes it's FooProperty…

michael
- 14,844
- 28
- 89
- 177
1
vote
1 answer
WPF: MeasureOverride with side effects?
The Situation:
I am trying to create a panel class StickyInfoPanel for two child items laid out vertically. The lower of the two items shall be 100px in height. The upper item shall consume the rest of the total available height.
The upper item is a…

Frank im Wald
- 896
- 1
- 11
- 28
1
vote
0 answers
Intercept design-time dragging and resizing of custom WPF canvas child controls
I was able to add design-time adorner to a WPF control, but how do I take control over those built-into the designer? (in other words, I want my function to be called when anyone drags or resizes a control using standard designer's…

Shambler0
- 31
- 4
1
vote
2 answers
Why does ArrangeOverride recalculate the final size
For myself, It would be logic if MeasureOverride calculates the size of the FrameworkElement and ArrangeOverride just positions the child elements. But ArrangeOverride does not only arrange the child elements. It does also calculate the size of the…

Sam
- 1,301
- 1
- 17
- 26
1
vote
4 answers
jQuery when if/else are done
If got a problem using jQuery and I don't know how to fix it.
Simply said Ive got the following:
var overlay;
if(condition == "test") {
overlay = $("");
}
else if (condition == "test2") {
console.log("first-log");
overlay =…

ronnyrr
- 1,481
- 3
- 26
- 45
1
vote
2 answers
WPF - Custom panel size to content
my panel attempts to do something similar to UniformGrid , it has a ColumnNumber property, in addition to ItemContainerWidth (40.0) and ItemContainerHeight (20.0) dependency properties.
I want my panel to size to it's content .
my MesureOverride :
…

eran otzap
- 12,293
- 20
- 84
- 139
1
vote
0 answers
RenderTransform causing invalidarrange
All the documentation seems to suggest that setting the RenderTransform isn't supposed to impact arrange. But that's not exactly the behavior I'm seeing.
I have an odd requirement for a control layout. I wanted to leave as much of wpf's layout…

Levi Drain
- 445
- 3
- 10