1 2009-12-03 Jeffrey Stedfast <fejj@novell.com>
3 * SelectionMode.cs: Added to the build.
5 2009-12-02 Alan McGovern <amcgovern@novell.com>
7 * VirtualizingPanel.cs:
8 * VirtualizingStackPanel.cs: Add some debug spew to make it
9 obvious that these UIElements don't work.
11 2009-11-30 Rolf Bjarne Kvinge <RKvinge@novell.com>
13 * ItemsControl.cs: Use the safe variant of set_parent.
15 2009-11-25 Alan McGovern <amcgovern@novell.com>
19 * PasswordBox.cs: Keep the usage of the Initialize method
20 consistent - add @CallInitialise to the native type if
21 Initialize is required instead of making it virtual and
24 2009-11-23 Alan McGovern <amcgovern@novell.com>
26 * ItemsPresenter.cs: Change ItemsPresenter to use the
27 TemplateOwner property to find its owning control rather
28 than walking the visual tree, which can break if the
29 template it expanded from contains another ItemsControl.
31 * ItemsControl.cs: DOs which are expanded from a
32 ControlTemplate need to keep track of the
33 'templateBindingSource' so that we can attach new
34 TemplateBindings later. This value is stored in addition to
35 'IsTemplateItem' as DOs can be expanded from templates which
36 are not ControlTemplates and only ControlTemplate passes in
37 a non-NULL value for templateBindingSource.
39 * ContentPresenter.cs: When creating the default template,
40 ContentPresenter needs to hook up the TemplateBindings to
43 * ContentControl.cs: ContentControl should not search for its
44 ContentPresenters, it's up to the CP to connect itself.
46 2009-11-20 Larry Ewing <lewing@novell.com>
48 * StackPanel.cs: add a change handler for orientation so that we
49 actually update our layout.
51 2009-11-19 Mario Carrion <mcarrion@novell.com>
53 * Control.cs: New internal event: UIAIsTabStopChanged, raised when
54 IsTabStopProperty changes.
58 2009-11-16 Alan McGovern <amcgovern@novell.com>
63 * ContentPresenter.cs: Revert r146166 as it has some bizarre
66 2009-11-13 Alan McGovern <amcgovern@novell.com>
69 * ContentPresenter.cs: ContentPresenters should use the
70 Control.TemplateOwner dp to find their owning ContentControl
71 and attach the necessary TemplateBindings.
74 * ItemsPresenter.cs: ItemsPresenter should find it's owning
75 ItemsControl using the Control.GetTemplateOwner dp.
77 2009-11-13 Alan McGovern <amcgovern@novell.com>
79 * Control.cs: Move the invoking of OnApplyTemplate from
80 Control to FrameworkElement as ContentPresenter (a
81 FrameworkElement) needs to have its OnApplyTemplate method
84 2009-11-11 Larry Ewing <lewing@novell.com>
86 * StackPanel.cs: remove the manual visibility checks, they are not
89 2009-11-10 Larry Ewing <lewing@novell.com>
91 * StackPanel.cs: Rework for the new layout rules.
95 2009-11-09 Rolf Bjarne Kvinge <RKvinge@novell.com>
97 * MediaElement.cs: Added LogReadyEvent and RequestLog method
102 2009-11-09 Sebastien Pouliot <sebastien@ximian.com>
104 * Control.cs: Extract calls to event_object_do_emit_current_context
105 into a new EmitCurrentContext method to reduce the [SSC] required
109 2009-11-09 Sebastien Pouliot <sebastien@ximian.com>
111 * MediaElement.cs: Add null-check in both SetSource methods
112 and nullify Source on success.
116 2009-11-06 Chris Toshok <toshok@ximian.com>
118 * ContentPresenter.cs: InvokeLoaded no longer takes event args
119 since it doesn't emit the event.
121 2009-11-05 Alan McGovern <amcgovern@novell.com>
127 * ContentPresenter.cs: Templates must be expanded as part of
128 the first step of Measure. To support this, remove the old
129 ApplyTemplateHook managed path and refactor the
130 GetTemplateRoot managed path into a more generic
131 GetDefaultTemplate method. Whenever native code needs to get
132 a default template from managed, this is invoked to retrieve
133 it. ApplyTemplate and OnApplyTemplate have been moved to
134 FrameworkElement itself to simplify the code required to
135 support templateable framework elements (ItemsPresenter for
138 2009-11-04 Alan McGovern <amcgovern@novell.com>
140 * ComboBox.cs: 1) Disabling the ComboBox should set
141 IsDropDownOpen to false
142 2) If the dropdown is opened while the ComboBox is disabled,
143 the children of the popup are disabled.
144 3) If the dropdown is open, re-enabling the ComboBox doesn't
145 close the dropdown and also doesn't update the IsEnabled
146 state on the children.
149 2009-11-02 Alan McGovern <amcgovern@novell.com>
151 * ContentPresenter.cs: Certain UIElements (Controls and
152 ContentPresenters) need to apply a template before
153 MeasureOverride is invoked. Add a callback
154 (ApplyTemplateHook) to FrameworkElement which is non-null
155 for Controls and ContentPresenters to that these templates
156 can be expanded properly.
158 2009-10-28 Mario Carrion <mcarrion@novell.com>
160 * ComboBox.cs: Raising UIA event.
164 2009-10-23 Chris Toshok <toshok@ximian.com>
166 * ComboBox.cs (IsDropDownOpenChanged): only attach to
167 LayoutUpdated when the dropdown is open.
168 (UpdatePopupSizeAndPosition): if there was an exception in the
169 TransformToVisual call, it means it was invoked while not attached
170 to a surface, so return early.
174 2009-10-22 Mario Carrion <mcarrion@novell.com>
176 * TextBox.cs: New internal event: UIATextChanged.
177 * TextBlock.cs: New internal event: UIATextChanged.
178 * ContentControl.cs: New internal event: UIAContentChanged.
182 2009-10-22 Mario Carrion <mcarrion@novell.com>
184 * Control.cs: Raising UIA events:
185 AutomationElementIdentifiers.HasKeyboardFocusProperty using
186 PostOnGotFocus and PostOnLostFocus.
187 * TextBox.cs: New static method TextPropertyChanged used to
188 raise UIA event: ValuePatternIdentifiers.ValueProperty. Removed
189 internal UIAIsReadOnlyChanged and RaiseIsReadOnlyChanged.
190 IsReadOnlyChanged also raises UIA event:
191 ValuePatternIdentifiers.IsReadOnlyProperty
195 2009-10-09 Mario Carrion <mcarrion@novell.com>
197 * MultiScaleImage.cs: Method overridden OnCreateAutomationPeer.
201 2009-10-05 Alan McGovern <amcgovern@novell.com>
203 * Control.cs: Store the starting_generation and only_unemitted
204 flags on the EmitContext so that the values are used when we
205 call DoEmitCurrentContext from managed code. r: toshok
207 2009-09-29 Chris Toshok <toshok@ximian.com>
209 * Control.cs: split all the OnEventHandlers into PreOnEvent,
210 OnEvent, and PostOnEvent method. the event is emitted in the
213 * TextBox.cs, PasswordBox.cs: override PostOnKeyDown to handle
214 special key events *after* the event has been emitted.
218 2009-09-29 Mario Carrion <mcarrion@novell.com>
220 * TextBox.cs: Added: internal method RaiseIsReadOnlyChanged and
221 UIAIsReadOnlyChanged.
225 2009-09-29 Mario Carrion <mcarrion@novell.com>
227 * PasswordBox.cs: Method overridden OnCreateAutomationPeer.
231 2009-09-28 Chris Toshok <toshok@ximian.com>
233 * Control.cs: add a handler for IsEnabledChangedEvent, and add a
234 FIXME for both it and TemplateAppliedEvent, given that they need
235 to be handled in a way that insulates them from malicious plugin
238 * TextBox.cs: add a property change handler for IsReadOnlyProperty
239 and call ChangeVisualState. Remove the adding of the
240 IsEnabledChanged delegate from the InitializeMethod here, and
241 override the control virtual method for handling that. Also, add
242 an InvokeOnApplyTemplate override so we can set the visualstate
243 properly after our template has been expanded.
245 * PasswordBox.cs: roughly analogous changes as TextBox.cs (except
246 the IsReadOnlyProperty stuff). Also change the ChangeVisualState
247 to take the useTransitions parameter.
249 * ComboBox.cs: don't UpdateVisualState in Loaded, do it in
254 2009-09-28 Alan McGovern <amcgovern@novell.com>
256 * ComboBox.cs: ComboBox.ItemContainerStyle and
257 ListBox.ItemContainerStyle both should update the container
258 item Style value when they change. r: spouliot
260 2009-09-23 Chris Toshok <toshok@ximian.com>
262 * Control.cs: all the on_method dispatchers need to use the same
263 sort of logic as Events.cs, where we look up the native pointer
264 before creating a new managed object for it.
268 2009-09-23 Chris Toshok <toshok@ximian.com>
270 * CursorPositionChangedEventArgs.cs: there's no reason to maintain
271 a reference to the native peer in this class. The fields are all
272 read-only and can be initialized in the ctor.
274 * PasswordBox.cs: remove all the now-autogenerated events, and use
275 event ids instead of names.
277 * TextBox.cs: remove all the now-autogenerated events, and use
278 event ids instead of names.
280 * MultiScaleImage.cs: remove all the now-autogenerated events.
282 * MediaElement.cs: remove all the now-autogenerated events.
284 * Image.cs: remove all the now-autogenerated events.
286 * Control.cs: use Events.AddOnEventHandler for all the On*
287 methods. create safe dispatchers for all of them, and from within
289 NativeMethods.event_object_do_emit_current_context so that the
290 unmanaged layer actually emits the event. This pattern replaces
291 all the Invoke* methods. Remove the manual IsEnabledEvent
292 processing, since that is autogenerated now.
294 * ContentControl.cs: use event id instead of name when registering
295 the handler, and Events.CreateSafeHandler =>
296 Events.SafeDispatcher.
298 * ContentPresenter.cs (InvokeLoaded): takes a RoutedEventArgs
301 * ItemsPresenter.cs (InvokeLoaded): same.
303 * ItemsControl.cs (InvokeLoaded): same.
305 * ComboBoxItem.cs: remove the namespace.
309 2009-09-18 Jeffrey Stedfast <fejj@novell.com>
311 * ItemsControl.cs: Removed unused loaded variable.
313 * ComboBox.cs: Mark IsSelectionActiveProperty as 'new' to silence
314 compiler warnings. Removed unused function and member variable.
318 2009-09-17 Jeffrey Stedfast <fejj@novell.com>
320 * TextBox.cs: Override ArrangeOverride() and simply chain up.
324 2009-09-14 Chris Toshok <toshok@ximian.com>
326 * Image.cs (InvokeImageFailed): we need to create the
327 exceptionroutedeventargs from the calldata.
329 2009-09-11 Larry Ewing <lewing@novell.com>
331 * TextChangedEventArgs.cs:
332 * MultiScaleImage.cs:
333 * MultiScaleSubImage.cs: add missing seal to classes.
335 2009-09-08 Mario Carrion <mcarrion@novell.com>
337 * ComboBox.cs: Method overridden OnCreateAutomationPeer.
341 2009-09-03 Jeffrey Stedfast <fejj@novell.com>
343 * PasswordBox.cs: Override Control's Initialize() method.
345 * TextBox.cs: Override Control's Initialize() method.
347 * Control.cs: Virtualize the Initialize() method.
349 2009-09-03 Alan McGovern <amcgovern@novell.com>
351 * ComboBox.cs: ItemContainerStyle should only be copied to the
352 container if it is non-null and there is no existing style.
354 2009-09-03 Alan McGovern <amcgovern@novell.com>
356 * ComboBox.cs: Remove code duplication - DisplayMemberPath
357 handling should only exist in ItemsControl. This fixes
358 DisplayMemberPath handling for ListBox too. r: sde
360 2009-09-02 Alan McGovern <amcgovern@novell.com>
362 * ItemsControl.cs: Support for DisplayMemberPath should be
363 implemented by creating a DataTemplate which instantiates a
364 TextBlock with a {Binding} on it. This requires us to clear
365 the container *before* removing it from the panel. r: toshok
367 * ComboBox.cs: Add support for DisplayMemberPath r: toshok
369 2009-09-02 Alan McGovern <amcgovern@novell.com>
371 * ContentPresenter.cs: If ContentPresenter.Content is a
372 UIElement, we clear the value of the DataContext, otherwise
373 we copy the Content to it. r: jeff
375 2009-08-27 Jeffrey Stedfast <fejj@novell.com>
377 * TextBox.cs: Implement OnMouseLeftButtonDown/Up(), OnMouseMove()
378 and update OnGot/LostFocus() to call native methods.
380 * PasswordBox.cs: Same.
384 2009-08-27 Alan McGovern <amcgovern@novell.com>
386 * ComboBox.cs: Limit the dropdown height based on the
387 available height and update the MaxHeight of the ComboBox
388 dropdown when the available height changes. r: spouliot.
390 2009-08-27 Alan McGovern <amcgovern@novell.com>
392 * ComboBox.cs: 1) Only update the displayed item when the
394 2) Clicking on the ComboBox itself should toggle the dropdown
395 3) If nothing is selected we need to display the fallback item
396 in the content presenter (default specified in
397 generic.xaml). r: jackson
399 2009-08-27 Alan McGovern <amcgovern@novell.com>
402 * ComboBox.cs: revert my last commit, it was the wrong patch.
404 2009-08-26 Alan McGovern <amcgovern@novell.com>
407 * ItemsPresenter.cs: Allow FrameworkTemplates to be expanded
408 in managed code. Using that, expand the ItemsPanelTemplate
409 in ItemsControl when it is available. r: toshok
411 2009-08-26 Alan McGovern <amcgovern@novell.com>
413 * ComboBox.cs: ComboBox and ListBox should behave the exact
414 same way when a ListBoxItem is clicked, so share the
415 implementation. r: jackson
417 2009-08-26 Alan McGovern <amcgovern@novell.com>
419 * ComboBox.cs: ComboBox.IsSelectionActiveProperty and
420 ListBox.IsSelectionActiveProperty are the same DP reference,
421 so declare it on Selector and expose it in the subclasses.
422 Cleanup usage of this property aswell. r: spouliot
424 2009-08-25 Alan McGovern <amcgovern@novell.com>
426 * ComboBox.cs: When an item is selected before the container
427 item has been created, we need to set the 'IsSelected' flag
428 on the container when it loads. Fixes the initial selection
429 for both ComboBox and ListBox. r: jackson
431 2009-08-25 Alan McGovern <amcgovern@novell.com>
433 * ComboBox.cs: Rewrite the UpdateDisplayedItem method to fix
434 rendering issues when an item is selected before the drop
435 down list has been opened. Previously the selected item
436 would not appear in the ComboBox as the currently displayed
439 2009-08-24 Alan McGovern <amcgovern@novell.com>
441 * ComboBox.cs: 1) Update the DisplayedItem when the ComboBox
442 template has been applied.
443 2) Correctly update the SelectionBoxItem and
444 SelectionBoxItemTemplate variables aswell.
445 3) Ensure that the ItemTemplate applied to the selected
446 ComboBoxItem is propagated to
447 ContentPresenter.ContentTemplate
450 2009-08-15 Larry Ewing <lewing@novell.com>
452 * StackPanel.cs: pass availableSize to the limited
455 Fixes the text layout in Memoriabilia.
459 2009-08-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
461 * TextChangedEventArgs.cs:
463 * PasswordBox.cs: Updated according to API changes in RoutedEventArgs.
467 2009-08-14 Alan McGovern <amcgovern@novell.com>
469 * ContentPresenter.cs: Go back to the old method of populating
470 TextBlock.Text in the fallback display element in
471 ContentPresenter. We can't safely use the correct method (a
472 oneway binding) yet. r: lewing
474 2009-08-13 Larry Ewing <lewing@novell.com>
476 * StackPanel.cs: rework the framework constraints based on drt
479 2009-08-12 Alan McGovern <amcgovern@novell.com>
482 * ContentPresenter.cs: A ContentControl which has no Template
483 needs to call into managed land to create a 'default
484 template'. When the Content is a UIElement, the UIElement is
485 used as the template root, otherwise a Grid + TextBlock
486 (with Binding) is used. This is the same as what
487 ContentPresenter does to its Content property. r: toshok
489 2009-08-06 Jeffrey Stedfast <fejj@novell.com>
491 * PasswordBox.cs: Sync'd with TextBox.cs for OnKeyUp/Down and
494 2009-08-04 Alan McGovern <amcgovern@novell.com>
496 * ContentPresenter.cs: ContentPresenter.Content is copied to
497 the datacontext when it is Loaded.
499 2009-08-04 Alan McGovern <amcgovern@novell.com>
501 * ContentPresenter.cs: If ContentPresenter.Content was changed
502 from one primitive value to another primitive value (i.e.
503 non-UIElement) then the DataContext was not updated
504 correctly. The DataContext is now kept in sync with the
507 2009-07-29 Alan McGovern <amcgovern@novell.com>
510 * Control.cs: An extra RaiseKeyDown method is unnecessary -
511 remove it and use InvokeKeyDown properly.
513 2009-07-29 Alan McGovern <amcgovern@novell.com>
516 * Control.cs: 1) TextBox cannot hook into Key press events in
517 unmanaged code otherwise they never propagate to managed and
518 the user cannot intercept them. Instead of hooking to the
519 event in native code, just call native TextBox::OnKeyDown in
520 the managed override.
521 2) Key press events are actually handled in two different
522 places. 'Navigation' keypresses like Left/Right/PgUp are
523 handled when the textbox OnKeyDown virtual method is
524 invoked. 'Character' keypresses like 'a', 'b', 'c' are
525 handled after the KeyDown event is emitted
526 3) If a key press does not affect the textbox state (i.e.
527 pressing 'left' when the caret is already at the very left),
528 then the keypress is not handled.
529 4) The KeyDown event is emitted even if OnKeyDown is overriden
530 and the base method is not invoked.
531 5) The tab key should be interpreted as 'Focus next control'
532 only after the KeyDown event handlers have run and the key
533 press is not handled.
535 2009-07-28 Larry Ewing <lewing@novell.com>
537 * StackPanel.cs: remove uneeded alignment logic.
539 2009-07-26 Larry Ewing <lewing@novell.com>
541 * ComboBox.cs: set MaxHeight on the real child (hate this hack).
543 2009-07-26 Larry Ewing <lewing@novell.com>
545 * ComboBox.cs: use the new popup hack to handle the popup
546 positioning. Fixes DRT #556.
548 2009-07-23 Jeffrey Stedfast <fejj@novell.com>
550 * TextBox.cs (OnCursorPositionChanged): Added some special logic
551 for the case where the CursorHeight is greater than the
552 ViewportHeight. Fixes drt #317.
554 2009-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
556 * MediaElement.cs: Don't treat a native ErrorEventArgs as an
557 ExceptionRoutedEventArgs.
559 2009-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
561 * MediaElement.cs: Always provide a *RoutedEventArgs for events.
564 2009-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
566 * MediaElement.cs: InvokeMarkerReached: the calldata we
567 get is a pointer to a MarkerReachedEventArgs, not a TimelineMarker.
569 Fixes bug #523513 and MS DRT #540.
571 2009-07-21 Larry Ewing <lewing@novell.com>
573 * ComboBox.cs: start dealing with the popup placement.
575 2009-07-21 Alan McGovern <amcgovern@novell.com>
577 * ItemCollection.cs: In order to make ItemsControl function
578 correctly, it has to box all value types. This appears to
579 break nothing but feels like a bit of a hack. Without this,
580 selection is broken in itemscontrol for value types.
582 2009-07-16 Sebastien Pouliot <sebastien@ximian.com>
584 * SaveFileDialog.cs: Update for SL3 final API.
586 2009-07-13 Alan McGovern <amcgovern@novell.com>
588 * Control.cs: TabNavigation should activate if the control
589 does not handle the Tab key
591 2009-07-06 Alan McGovern <amcgovern@novell.com>
593 * ItemsControl.cs: ItemsControl should be setting both the
594 Parent and LogicalParent, otherwise DO names aren't
595 registered. Fixes drt 547.
597 2009-07-03 Stephane Delcroix <sdelcroix@novell.com>
599 * MultiScaleImage.cs: the generator can do this
601 2009-07-02 Stephane Delcroix <sdelcroix@novell.com>
603 * MultiScaleImage.cs: use SetValue instead of p/invoking native
606 2009-06-26 Chris Toshok <toshok@ximian.com>
608 * ColumnDefinition.cs: remove explicit property getter.
610 * RowDefinition.cs: remove explicit property getter.
612 2009-06-26 Alan McGovern <amcgovern@novell.com>
614 * ComboBox.cs: Switch ComboBox to use the DropDownToggle
615 template item as the trigger to open/close the popup.
617 2009-06-26 Alan McGovern <amcgovern@novell.com>
619 * ComboBox.cs: Fix some ListBox focus/selection related bugs.
620 Move ComboBox.OnSelectedItemChanged and
621 ListBox.OnSelectedItemChanged to Selector as they have
622 indentical codepaths after the last refactorings.
624 2009-06-26 Alan McGovern <amcgovern@novell.com>
626 * ItemsControl.cs: The items added to the contentpresenter are
627 constrained to be UIElements (FrameworkElements?), not
628 ListBoxItems. Therefore keep a dictionary in ItemsControl to
629 map containers to items so we can correctly call
630 ClearContainerForItemOverride when the item is removed.
632 2009-06-25 Alan McGovern <amcgovern@novell.com>
634 * ItemsControl.cs: Correctly handle the Reset and Replace
635 events by using AddItemsToPresenter and
636 RemoveItemsFromPresenter.
638 2009-06-25 Alan McGovern <amcgovern@novell.com>
640 * ComboBox.cs: Propagate MaxDropDownHeight to the popup child.
642 2009-06-25 Alan McGovern <amcgovern@novell.com>
644 * ComboBox.cs: Move the handling of the ScrollViewer template
645 element and default values of ScrollbarVisibility to the
646 Selector class so it can be shared between ComboBox and
647 ListBox. Fix some default value issues too.
649 2009-06-25 Alan McGovern <amcgovern@novell.com>
651 * ComboBox.cs: Handle IsDropDownOpenChanged in a non-virtual
654 2009-06-24 Alan McGovern <amcgovern@novell.com>
656 * ComboBox.cs: Add another method to selector to allow
657 subclasses to easily set the IsSelected property when the
658 SelectedItem changes.
660 2009-06-24 Alan McGovern <amcgovern@novell.com>
662 * ComboBox.cs: The only way to get the initial focus correct
663 for the drop down list in ComboBox is if it receives
664 notification of when its ComboBoxItems are loaded.
666 2009-06-24 Alan McGovern <amcgovern@novell.com>
668 * ComboBox.cs: Start implementing the required behaviour to
671 2009-06-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
673 * MultiScaleImage.cs: Use correct event handler type to prevent
676 2009-06-10 Alan McGovern <amcgovern@novell.com>
678 * ItemsControl.cs: If the ItemsControl is populating from its
679 ItemsSource, we don't set the logical parent. Fixes drt 880.
681 2009-06-09 Alan McGovern <amcgovern@novell.com>
683 * ComboBox.cs: Implement IsSelectionBoxHighlighted and prevent
684 drt 555 from timing out.
686 2009-06-04 Alan McGovern <amcgovern@novell.com>
688 * Control.cs: Calling Focus () should result in a recursive Focus.
690 2009-06-03 Andreia Gaita <avidigal@novell.com>
692 * StackPanel.cs: (MeasureOverride) Children Measure should be called
693 with Infinity on width or height depending on the orientation
695 2009-05-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
698 * Image.cs: Create a ExceptionRoutedEventArgs with default/TODO
699 values, prevents a lot of the MS tests from throwing NRE and
702 2009-05-27 Alan McGovern <amcgovern@novell.com>
704 * Control.cs: Control.Enabled needs to be created in native
705 code as it's required for hittesting. A disabled control and
706 its visual children do not receive mouse events and are not
707 visible to VisualTreeHelper.FindElementInHostCoordinates.
709 2009-05-26 Alan McGovern <amcgovern@novell.com>
711 * TextBox.cs: Add missing VisualState transitions to TextBox.
713 2009-05-22 Alan McGovern <amcgovern@novell.com>
716 * ContentPresenter.cs
720 Use DependencyProperty.RegisterCore for these DPs.
722 2009-05-21 Jackson Harper <jackson@ximian.com>
724 * ComboBox.cs: Cleanup debug spew so it doesn't cause a crash when
725 non FrameworkElement objects are added to the combo box.
727 2009-05-21 Alan McGovern <amcgovern@novell.com>
729 * ItemsControl.cs: Add the required VisualState changes to
732 2009-05-21 Alan McGovern <amcgovern@novell.com>
734 * ItemsControl.cs: InvokeItemsChanged shouldn't be virtual.
736 2009-05-18 Larry Ewing <lewing@novell.com>
738 * StackPanel.cs: take max/min into account in layout.
740 2009-05-18 Alan McGovern <amcgovern@novell.com>
742 * ContentPresenter.cs: For contentcontrols, the applied
743 template is only cleared if the old or new content is a
744 UIElement (frameworkelement?). The fallback 'template' of a
745 Grid + TextBlock is also reused every time.
747 2009-05-18 Alan McGovern <amcgovern@novell.com>
749 * ItemsControl.cs: Cosmetic - Remove some C.W.Ls
751 2009-05-15 Alan McGovern <amcgovern@novell.com>
754 * ColumnDefinition.cs: These should both be sealed.
756 2009-05-13 Alan McGovern <amcgovern@novell.com>
758 * ItemsControl.cs: When the items collection is databound, we
759 need to copy all the items from the ItemsSource into the
760 Items collection before firing the Reset event.
762 2009-05-13 Larry Ewing <lewing@novell.com>
764 * ItemsControl.cs: access the Property not the member to avoid a
767 2009-05-13 Alan McGovern <amcgovern@novell.com>
769 * ContentPresenter.cs: Measure needs to be invalidated every
770 time the Content or ContentTemplate changes, not just when
771 we alter the root visual.
773 2009-05-12 Alan McGovern <amcgovern@novell.com>
775 * ItemsControl.cs: ItemsControl has the same behaviour as
776 ContentPresenter - the DataContext property is only set if
777 the item is *not* a framework element.
779 2009-05-12 Alan McGovern <amcgovern@novell.com>
781 * ContentPresenter.cs: ContentPresenter copies Content to
782 DataContext iff the Content is not a FrameworkElement.
784 2009-05-12 Jeffrey Stedfast <fejj@novell.com>
786 * TextBox.cs (OnCursorPositionChanged): Fixed scrolling to behave
787 more normally. Might still need some work, but at least it's no
788 longer painful. I'm sure toshok will be appreciative ;-)
790 2009-05-12 Alan McGovern <amcgovern@novell.com>
793 * ItemCollection.cs: The ItemsCollection should be
794 instantiated once and reused even when the ItemsSource
795 changes. When ItemsSource is non-null, we don't propagate
796 collection changed events.
798 2009-05-11 Alan McGovern <amcgovern@novell.com>
800 * ContentPresenter.cs: Whenever the content root is changed,
801 we need to invalidate the measure so that the presenter
804 2009-05-11 Alan McGovern <amcgovern@novell.com>
806 * ContentPresenter.cs: Recommit r133738 as it's not causing
809 2009-05-11 Alan McGovern <amcgovern@novell.com>
811 * ContentPresenter.cs: Recommit r133724/5 as it isn't causing
814 2009-05-11 Alan McGovern <amcgovern@novell.com>
817 * ContentPresenter.cs: When a container is autogenerated, we
818 copy the Content to the DataContext.
820 2009-05-11 Alan McGovern <amcgovern@novell.com>
822 * ContentPresenter.cs: Back out r133724/5 in case it's what
823 has caused the random failures in the extended controls
826 2009-05-08 Alan McGovern <amcgovern@novell.com>
828 * ContentPresenter.cs: Revert the changes in r133738 until I
829 can figure out why the x86 bot doesn't like them. It's
830 causing the extended controls tests to time out.
832 2009-05-08 Alan McGovern <amcgovern@novell.com>
834 * ContentPresenter.cs: That debug spew wasn't supposed to hit
837 2009-05-07 Alan McGovern <amcgovern@novell.com>
839 * ContentPresenter.cs: If the content property changes, the
840 Template is cleared if it has already been applied.
842 2009-05-07 Alan McGovern <amcgovern@novell.com>
844 * ItemsPresenter.cs: ItemsPresenter should be hooking itself
845 in during the first MeasureOverride as opposed to when it's
846 loaded. This matches the MS behaviour.
848 2009-05-07 Alan McGovern <amcgovern@novell.com>
850 * ContentPresenter.cs: I seem to have mangled that last patch
851 before committing - fix the build.
853 2009-05-07 Alan McGovern <amcgovern@novell.com>
855 * ContentPresenter.cs: 1) The 'Content' property of the
856 ContentPresenter is not copied to DataContext.
857 2) If the expanded DataTemplate is null, fall back to
858 displaying the Content.
860 2009-05-03 Chris Toshok <toshok@ximian.com>
862 * ContentControl.cs (WalkTreeForContentPresenters): not sure why
863 we passed "this" to this method. Just use this instead of
864 templateRoot. Also, use a more verbose TemplateBindingExpression
867 2009-05-01 Alan McGovern <amcgovern@novell.com>
869 * ContentControl.cs: If the default ContentPresenter is
870 replaced in a ContentControl, we need to TemplateBind both
871 the Content and ContentTemplate.
873 2009-04-28 Alan McGovern <amcgovern@novell.com>
875 * ItemsControl.cs: Ensure that PrepareContainerForItemOverride
876 is handling both ContentControls and ContentPresenters
879 2009-04-28 Alan McGovern <amcgovern@novell.com>
881 * ComboBox.cs: Copy over the styles/templates to the items
883 Clicking the ToggleButton should open the dropdown.
884 When a ComboBoxItem is autogenerated, we need to store the
885 autogenerated box in DisplayedItem so that we can put its
886 content back later on.
888 * ItemsControl.cs: Generate the container only when it's
889 required. When the container is a ContentControl, ensure
890 that the container doesn't try to set the items logical
893 2009-04-28 Alan McGovern <amcgovern@novell.com>
895 * ComboBoxItem.cs: MouseUp should result in the popup being
896 closed but the selection is not changed.
898 2009-04-28 Alan McGovern <amcgovern@novell.com>
900 * ContentControl.cs: Add the ability to stop ContentControl
901 from automatically setting the LogicalParent when a
902 FrameworkElement is added as the Content.
904 2009-04-24 Alan McGovern <amcgovern@novell.com>
906 * ComboBox.cs: Ensure that the currently selected item is
907 displayed correctly when the popup is not open.
909 2009-04-23 Alan McGovern <amcgovern@novell.com>
911 * ComboBox.cs: Clicking on ListItems in the combobox popup
912 should close the popup.
914 2009-04-23 Alan McGovern <amcgovern@novell.com>
916 * ComboBox.cs: Allow popups to use a transparent canvas to
917 catch clicks outside of the popup area. ComboBox uses this
920 2009-04-23 Alan McGovern <amcgovern@novell.com>
922 * ComboBoxItem.cs: Removing unnecessary override
924 2009-04-23 Alan McGovern <amcgovern@novell.com>
926 * ComboBox.cs: Move the Notify* methods into Selector as both
927 Listbox and ComboBox require the same API.
929 2009-04-23 Alan McGovern <amcgovern@novell.com>
931 * ItemsControl.cs: FrameworkElements added to an
932 ItemsCollection need to have their logical parent set to the
935 2009-04-22 Alan McGovern <amcgovern@novell.com>
937 * ComboBox.cs: Add missing nullcheck around access to a
940 2009-04-22 Alan McGovern <amcgovern@novell.com>
942 * ComboBox.cs: ComboBox should return a new ComboBoxItem
943 without applying the container style.
945 2009-04-22 Alan McGovern <amcgovern@novell.com>
947 * ItemsPresenter.cs: After some extensive testing in
948 silverlight, I think this change is correct. When templating
949 ComboBox, the Popup used to display the items has no visual
950 parent but does have a logical parent. Therefore the only
951 way to connect the ItemsPresenter to the ItemsControl is to
952 fall back to the logical parent when the VisualParent is
953 null. I'm not sure if this is popup specific behaviour or if
954 this is true for all controls which have a null visual
955 parent but non-null logical parent.
957 2009-04-17 Alan McGovern <amcgovern@novell.com>
959 * ComboBox.cs: Make IsSelectionActive work. Also make showing
960 the popup work. Currently no items are being displayed in
961 the popup as the ItemsPresenter is never getting loaded.
963 2009-04-17 Sebastien Pouliot <sebastien@ximian.com>
965 * SaveFileDialog.cs: Implement DefaultExtbehavior
967 2009-04-15 Alan McGovern <amcgovern@novell.com>
969 * ItemsControl.cs: When an ItemsControl is templated, don't
970 replace the templated visual tree with the ItemsPresenters
973 * ItemsPresenter.cs: ItemsPresenter should search the visual
974 tree, not logical tree, when trying to find its ItemsControl
976 2009-04-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
979 * SaveFileDialog.cs: Generate all P/Invoke methods.
981 2009-04-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
986 * ProgressBar.cs: Delete files we got from MS' controls drop,
987 and update project file to compile.
989 2009-04-09 Jeffrey Stedfast <fejj@novell.com>
991 * PasswordBox.cs, TextBlock.cs, TextBox.cs: Removed manual stub
992 for FontSource property, these are now autogenerated.
994 2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
996 * OpenFileDialog.cs: Free the memory we receive from
997 open_file_dialog_show
998 * SaveFileDialog.cs: New. Silverlight 3 feature
1000 2009-04-08 Stephane Delcroix <sdelcroix@novell.com>
1002 * MultiScaleImage.cs: no longer throws NIE on LogicalToElementPoint
1004 2009-04-07 Chris Toshok <toshok@ximian.com>
1006 * ContentPresenter.cs: turns out my layout fears were unfounded.
1007 Removing the grid will give us the same layout characteristics as
1008 silverlight. Alan was right about the different visual tree under
1009 CP. Duplicate this tree so that it matches SL in all 3 cases: 1)
1010 UIElement content (directly a child of contentpresenter), 2)
1011 string content (grid -> textblock), and 3) no content (no children
1012 under contentpresenter.) This simplifies PrepareContentPresenter
1015 2009-04-06 Chris Toshok <toshok@ximian.com>
1017 * Control.cs (set_DefaultStyleKey): add a few more error
1018 conditions (surrounding UserControlType) to get 2.0 ms test
1019 fixture 552 closer to working.
1021 2009-04-06 Stephane Delcroix <sdelcroix@novell.com>
1023 * MultiScaleImage.cs: lookup the new DPs and new properties
1025 2009-04-03 Alan McGovern <amcgovern@novell.com>
1027 * TextBox.cs: TextBox does validation in both the getter and
1028 setter of its TextProperty, so we have to manually implement
1031 2009-04-02 Aaron Bockover <abockover@novell.com>
1033 * ContentPresenter.cs: Nuke a BOM on which gmcs 2.0.1 explodes
1035 2009-03-30 Chris Toshok <toshok@ximian.com>
1037 * Control.cs: track change of MouseButton -> MouseLeftButton, and
1038 add MouseRightButtonUp/Down and MouseWheel.
1041 2009-03-27 Chris Toshok <toshok@ximian.com>
1043 * ItemsControl.cs: only install our default ItemsPresenter if
1044 there isn't a template that's going to be applied to this element.
1045 In the case of a template either 1 of 2 things will happen.
1046 Either there's an ItemsPresenter someplace in the template, and
1047 ItemsPresenter.InvokeLoaded grovels up the tree until it finds
1048 this ItemsControl, calling SetItemsPresenter on it, or the control
1049 deals with all the Items changes manually (as in TabControl) and
1050 we never have an ItemsPresenter.
1052 2009-03-27 Stephane Delcroix <sdelcroix@novell.com>
1054 * MultiScaleImage.cs: MotionFinished is a RoutedEvent
1056 2009-03-26 Jeffrey Stedfast <fejj@novell.com>
1058 * PasswordBox.cs: We no longer do the evil gross hackery action.
1060 * TextBox.cs: Updated NativeMethods use for text_box_base
1062 2009-03-25 Stephane Delcroix <sdelcroix@novell.com>
1064 * MultiScaleImage.cs: ViewportChanged is a RoutedEvent
1066 2009-03-23 Jeffrey Stedfast <fejj@novell.com>
1068 * TextBox.cs: Connect to our CursorPositionChanged event so we can
1069 update the scrollviewer offsets.
1071 2009-03-18 Jeffrey Stedfast <fejj@novell.com>
1073 * Control.cs: Use NativeMethods.control_focus() instead of
1074 NativeMethods.surface_focus_element().
1076 2009-03-17 Jb Evain <jbevain@novell.com>
1078 * Grid.cs: override and seal ArrangeOverride and MeasureOverride.
1080 2009-03-10 Jeffrey Stedfast <fejj@novell.com>
1082 * PasswordBox.cs: Manually bind the PasswordProperty and the
1083 getter/setter. Don't allow the Password getter to return null.
1085 2009-03-10 Jeffrey Stedfast <fejj@novell.com>
1087 * PasswordBox.cs: Connect to TextChanged instead of
1088 PasswordChanged events on the unmanaged side, since the unmanaged
1089 code subclasses TextBox we'll just reuse the same event. Also, map
1090 SelectionBackground and SelectionForeground properties to the
1091 TextBox properties manually.
1093 2009-03-09 Jeffrey Stedfast <fejj@novell.com>
1095 * TextBox.cs: Use ObjectFromIntPtr instead of GCHandle. Doh.
1097 2009-03-06 Andreia Gaita <avidigal@novell.com>
1099 * ContentControl.cs, Image.cs, MediaElement.cs,
1100 MultiScaleImage.cs, PasswordBox.cs,
1101 TextBox.cs: Switch to using ObjectFromIntPtr to lookup objects.
1103 2009-03-04 Stephane Delcroix <sdelcroix@novell.com>
1105 * MultiScaleImage.cs: use the native setters instead of the
1106 SetValue for ViewportOrigin and Width
1108 2009-02-26 Chris Toshok <toshok@ximian.com>
1110 * ItemsControl.cs: land some longstanding local changes.
1112 * ItemsPresenter.cs: same.
1114 2009-02-26 Chris Toshok <toshok@ximian.com>
1116 * ContentControl.cs (InvokeOnApplyTemplate): override
1117 FrameworkElement's implementation so we can walk our visual
1118 subtree calling OnApplyTemplate and add the default
1119 TemplateBinding for ContentPresenter.ContentProperty (if there
1120 isn't one already) on all ContentPresenters that are our
1121 descendents (without an intervening control.)
1123 2009-02-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
1125 * MediaElement.cs: Initial implementation of
1128 2009-02-18 Alan McGovern <amcgovern@novell.com>
1130 * TextBox.cs: There are no HitTest methods on TextBox in the
1133 2009-02-13 Jeffrey Stedfast <fejj@novell.com>
1135 * MultiScaleImage.cs: Manually bind the DependencyProperties and
1136 the property accessors.
1138 2009-02-12 Alan McGovern <amcgovern@novell.com>
1140 * ItemCollection.cs: Managed objects are stored in native as
1141 GCHandles. Use the mono api to get the target of that
1142 GCHandle so that they can be compared correctly in
1143 value.cpp. Remove hack in ItemCollection.cs which worked
1146 2009-02-08 Chris Toshok <toshok@ximian.com>
1148 * ItemsControl.cs (PrepareContainerForItemOverride): if
1149 DisplayMemberPath is set, create a binding and hook it up to the
1150 content presenter's ContentProperty.
1152 2009-02-08 Sebastien Pouliot <sebastien@ximian.com>
1154 * TextBlock.cs: Implement OnCreateAutomationPeer
1156 2009-02-06 Larry Ewing <lewing@novell.com>
1158 * ContentPresenter.cs: don't compare against _elementText compare
1161 2009-02-05 Chris Toshok <toshok@ximian.com>
1163 * ItemsControl.cs: implement basic databinding support - no
1164 templates, no DisplayMemberPath, just a databound ItemsSource with
1165 INotifyCollectionChanged handling.
1167 * ItemCollection.cs: add SetReadOnly so ItemsControl can mark the
1168 collection as readonly (only for the user, the collection remains
1169 modifiable by the control).
1171 2009-02-05 Larry Ewing <lewing@novell.com>
1173 * StackPanel.cs: skip collapsed children.
1175 2009-02-05 Geoff Norton <gnorton@novell.com>
1177 * MultiScaleImage.cs: We hide the SubImages in a internal DP for now
1178 until we can automatically generated a ReadOnlyCollection from
1179 a native counterpart in the generator.
1181 2009-02-05 Geoff Norton <gnorton@novell.com>
1183 * MultiScaleSubImageCollection.cs: Managed counterpart to the native
1186 2009-02-04 Sebastien Pouliot <sebastien@ximian.com>
1188 * TextBlock.cs: Change the NotImplementedException into a MonoTODO
1189 to get Tetrislite go further
1191 2009-02-04 Chris Toshok <toshok@ximian.com>
1193 * ItemsControl.cs: flesh out some of the implementation in the
1194 non-databound scenario (using the Items collection).
1196 * ItemsPresenter.cs: create a stackpanel for the time being, since
1197 that seems to be what the default behavior is.
1199 * ComboBox.cs: flesh out the implementation and fix up the
1202 * ComboBoxItem.cs: gui-compare stuff.
1204 2009-02-04 Larry Ewing <lewing@novell.com>
1206 * StackPanel.cs: remove the restriction on size of the visible
1207 children it breaks since that uses a rendertransform to make
1208 things visible again.
1210 2009-02-04 Larry Ewing <lewing@novell.com>
1212 * StackPanel.cs: rework the alignment logic to match some of the
1215 2009-02-04 Alan McGovern <amcgovern@novell.com>
1217 * HitTestCollection.cs: Hook up the managed hittesting code
1218 to the native hit testing code.
1220 2009-02-02 Chris Toshok <toshok@ximian.com>
1222 * UserControl.cs: remove the ContentProperty attribute - we
1227 2009-02-02 Chris Toshok <toshok@ximian.com>
1229 * ComboBox.cs: set DefaultStyleKey in the ctor to pick up the
1232 2009-01-30 Chris Toshok <toshok@ximian.com>
1234 * Control.cs (Initialize): register empty delegates on all the
1235 events we expose in the form of On$Event methods, so our methods
1238 2009-01-30 Jeffrey Stedfast <fejj@novell.com>
1240 * TextBox.cs: Fixed SelectionChanged
1242 2009-01-30 Larry Ewing <lewing@novell.com>
1244 * StackPanel.cs: only use the alignment logic if the dimentions
1247 2009-01-29 Sebastien Pouliot <sebastien@ximian.com>
1249 * ItemCollection.cs: Override IndexOfImpl so we can compare
1250 objects in the managed side.
1252 2009-01-26 Larry Ewing <lewing@novell.com>
1254 * StackPanel.cs: improve the logic and add horizontal support.
1256 2009-01-26 Jeffrey Stedfast <fejj@novell.com>
1258 * ContentControl.cs (content_changed_callback): Fixed cast
1259 exception for the event args.
1261 * TextBox.cs (text_changed_cb): Fixed some cast exceptions and
1262 also pass our EventArgs to InvokeTextChanged().
1264 2009-01-26 Geoff Norton <gnorton@novell.com>
1266 * Control.cs: Surface lives in Deployment now.
1268 2009-01-26 Chris Toshok <toshok@ximian.com>
1270 * ContentPresenter.cs (PrepareContentPresenter): call
1271 uielement_set_subtree_object here to hook the _elementRoot into
1274 2009-01-25 Chris Toshok <toshok@ximian.com>
1276 * ContentPresenter.cs: move the 90% implementation back here.
1278 * Control.cs: don't register the DefaultStyleKey property - the
1279 unmanaged code already does it. Just look it up here.
1281 2009-01-22 Jeffrey Stedfast <fejj@novell.com>
1283 * ContentPresenter.cs: Simplified by ripping out most of the code
1284 that was moved to c++.
1286 * ContentControl.cs: Simplified a lot by re-using the Events class
1289 * ContentPresenter.cs: New binding to unmanaged ContentPresenter
1290 class. Replaces the old ContentPresenetr class from the Microsoft
1291 Silverlight b1 sources.
1293 2009-01-21 Geoff Norton <gnorton@novell.com>
1295 * Image.cs: Clean up stuff that should (and now is) have been
1298 2009-01-21 Jeffrey Stedfast <fejj@novell.com>
1300 * ContentControl.cs: Connect to the internal ContentChanged event
1301 so that we can call the virtual OnContentChanged() method.
1303 2009-01-20 Chris Toshok <toshok@ximian.com>
1305 * Control.cs: we no longer need to override InvokeLoaded - the
1306 style process is driven in unmanaged code. Also clean up the
1307 handling of DefaultStyleKey - we can't throw an exception in the
1308 changed handler. it has to be thrown before the value is changed.
1309 Get rid of the change handler.
1311 * TextBox.cs: get rid of the Initialize method.
1313 2009-03-15 Alan McGovern <amcgovern@novell.com>
1320 * MultiScaleImage.cs: Simplify how native events are connected to in
1321 managed code. The managed add/remove event methods just call
1322 RegisterEvent/UnregisterEvent defined in DO.cs instead of each event
1323 managing the event list itself.
1325 2009-01-19 Alan McGovern <amcgovern@novell.com>
1331 * MultiScaleImage.cs: Change all our native callbacks to use a wrapped
1332 handler which traps managed exceptions.
1334 2009-01-18 Geoff Norton <gnorton@novell.com>
1336 * MediaElement.cs: These are RoutedEventHandlers, not EventHandlers.
1337 Fixes a InvalidCastException with PDC.
1339 2009-01-16 Jeffrey Stedfast <fejj@novell.com>
1341 * TextBox.cs (ArrangeOverride): Removed.
1343 2009-01-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1345 * MediaElement.cs: Tiny little beginning of MediaStreamSource and remove
1346 a few members which can be generated now that the native MediaElement
1347 doesn't inherit from MediaBase anymore.
1349 2009-01-15 Alan McGovern <amcgovern@novell.com>
1352 * ComboBoxItem.cs: Begin implementing ComboBox. First 3 tests now pass.
1354 2009-01-15 Sebastien Pouliot <sebastien@ximian.com>
1356 * ItemCollection.cs: Override NullCheck to throw ArgumentExpcetion
1357 for all null values (instead of the default ArgumentNullException
1358 on _some_ null values).
1360 2009-01-13 Sebastien Pouliot <sebastien@ximian.com>
1362 * StackPanel.cs: Seal overrides to please gui-compare
1364 2009-01-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1367 * MultiScaleImage.cs: Corcompare issues.
1369 2009-01-12 Andreia Gaita <avidigal@novell.com>
1371 * StackPanel.cs: New managed implementation (only vertical
1374 2009-01-09 Sebastien Pouliot <sebastien@ximian.com>
1376 * ItemsControl.cs: Implemented a bit more
1378 2009-01-08 Sebastien Pouliot <sebastien@ximian.com>
1380 * ItemsControl.cs: Partial implementation (enough to pass some
1381 controls unit tests)
1383 2009-01-08 Sebastien Pouliot <sebastien@ximian.com>
1385 * ItemCollection.cs: Change to partial class
1387 2009-01-07 Chris Toshok <toshok@ximian.com>
1389 * Control.cs (Control.InvokeLoaded): get the default style for the
1390 control if it has a DefaultStyleKey. We don't do anything with it
1391 yet, but this process drives the parsing of generic.xaml.
1393 2009-01-06 Alan McGovern <amcgovern@novell.com>
1395 * PasswordBox.cs: Ensure correct exception is thrown when a null string
1396 is passed to PasswordBox.Password. Use correct range validation for
1399 2008-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1401 * PasswordBox.cs, ItemsPresenter.cs: More bits.
1402 * CalendarMode.cs: Deleted, this file goes in
1403 System.Windows.Controls.dll.
1405 2008-12-19 Sebastien Pouliot <sebastien@ximian.com>
1407 * Control.cs: Remove OnIsEnabled hack for needed by beta1 controls.
1409 2008-12-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1411 * CalendarMode.cs, ComboBox.cs, ComboBoxItem.cs: Stub out and fill in
1412 more bits to get even more bits compiling.
1414 2008-12-11 Chris Toshok <toshok@ximian.com>
1416 * Control.cs: add Initialize method to add a handler for the
1417 TemplateApplied unmanaged event. Call
1418 FrameworkElement.OnApplyTemplate from there.
1420 2008-12-11 Chris Toshok <toshok@ximian.com>
1422 * Control.cs: implement GetTemplateChild.
1424 2008-12-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
1426 * PasswordBox.cs: Stub out to fix build.
1428 2008-12-10 Full Name <Email Address>
1430 * TextBox.cs: Commit the files from the generator.
1432 2008-12-10 Full Name <Email Address>
1435 * PasswordBox.cs: Partial implementation of the PasswordBox control
1437 2008-12-09 Sebastien Pouliot <sebastien@ximian.com>
1439 * UserControl.cs: Remove IsTabStop initialization (moved to
1442 2008-12-08 Sebastien Pouliot <sebastien@ximian.com>
1444 * UserControl.cs: Add Initialize and set IsTabStop to false
1446 2008-12-08 Sebastien Pouliot <sebastien@ximian.com>
1448 * Control.cs: Add null check on EventArgs for all On* methods.
1449 Check Handled (when provided) before making the calls to On*.
1450 Re-use internal 'events' for IsEnabledChanged
1452 2008-12-05 Sebastien Pouliot <sebastien@ximian.com>
1454 * ProgressBar.cs: Default is 1 (not 100) in SL2 final.
1456 2008-12-05 Sebastien Pouliot <sebastien@ximian.com>
1458 * Control.cs: Override Invoke* methods and call our On* methods
1459 before the base method (that fire the events).
1461 2008-12-05 Stephane Delcroix <sdelcroix@novell.com>
1464 * generic.xaml: managed implementation of the progressbar, and
1467 2008-12-04 Sebastien Pouliot <sebastien@ximian.com>
1469 * Control.cs: Change OnIsEnabledChanged to internal so it does not
1470 show as extra here and on other controls
1472 2008-12-04 Sebastien Pouliot <sebastien@ximian.com>
1474 * Control.cs: Add protected OnIsEnabledChanged since all controls
1475 depends on it and it's not in ContentControl anymore.
1477 2008-12-04 Sebastien Pouliot <sebastien@ximian.com>
1479 * Control.cs: Add back DefaultStyleKey and IsEnabled with managed
1480 validation and events.
1482 2008-12-02 Sebastien Pouliot <sebastien@ximian.com>
1484 * Control.cs: Remove temporary properties (they are now generated)
1486 2008-12-02 Stephane Delcroix <sdelcroix@novell.com>
1488 * ProgressBar.cs: stubbed to pass basic unit-tests
1490 2008-12-02 Andreia Gaita <shana@jitted.com>
1492 * System.Windows.Controls/StackPanel.cs: Implement ArrangeOverride
1495 2008-11-28 Sebastien Pouliot <sebastien@ximian.com>
1497 * Control.cs (GetTemplateChild): Throw only if childName is null
1498 otherwise return null (for the moment) since it's the "default"
1501 2008-11-28 Sebastien Pouliot <sebastien@ximian.com>
1503 * ItemCollection.cs: Remove public ctor.
1504 * OpenFileDialog.cs: Fix Filter and FilterIndex properties.
1505 * TextChangedEventArgs.cs: Internalize default ctor.
1507 2008-11-27 Sebastien Pouliot <sebastien@ximian.com>
1509 * OpenFileDialog.cs: Replace "old" FileDialogFileInfo with standard
1510 FileInfo. Remove title since it's not user settable anymore. Rename
1513 2008-11-25 Sebastien Pouliot <sebastien@ximian.com>
1515 * ValidationError.cs: New. Needed for FrameworkElement.
1516 * ValidationErrorEventArgs.cs: New. Needed for FrameworkElement.
1518 2008-11-25 Stephane Delcroix <sdelcroix@novell.com>
1520 * MultiScaleImage.cs: ElementToLogicalPoint impl.
1522 2008-11-19 Rolf Bjarne Kvinge <RKvinge@novell.com>
1524 * Canvas.cs, Control.cs, MediaElement.cs: Corcompare fixes.
1526 2008-11-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
1528 * ColumnDefinitionCollection.cs, MediaElement.cs, ItemCollection.cs,
1529 UIElementCollection.cs, RowDefinitionCollection.cs: Corcompare
1532 2008-09-02 Stephane Delcroix <sdelcroix@novell.com>
1534 * MultiScaleImage.cs: stub
1536 2008-09-01 Stephane Delcroix <sdelcroix@novell.com>
1538 * MultiScaleSubImage.cs: stub
1540 2008-08-24 Geoff Norton <gnorton@novell.com>
1542 * Image.cs: Support nulling out the ImageSource
1544 2008-08-24 Geoff Norton <gnorton@novell.com>
1546 * Image.cs: ImageSource now does the heavy lifting for us.
1548 2008-08-23 Geoff Norton <gnorton@novell.com>
1550 * Image.cs: If we dont have a stream of the image available from
1551 BitmapImage, get it.
1553 2008-08-22 Jeffrey Stedfast <fejj@novell.com>
1555 * TextChangedEventArgs.cs: Added.
1557 * TextChangedEventHandler.cs: Added.
1559 * TextBox.cs: Implemented events.
1561 2008-08-22 Jeffrey Stedfast <fejj@novell.com>
1563 * TextBox.cs: Implemented Select() and stubbed out the other
1566 2008-08-21 Chris Toshok <toshok@ximian.com>
1570 2008-08-21 Jeffrey Stedfast <fejj@novell.com>
1572 * TextBox.cs: Added to the build.
1574 2008-08-19 Jeffrey Stedfast <fejj@novell.com>
1576 * MediaElement.cs (SetSource): Handle null inputs, it is not an
1579 2008-08-18 Chris Toshok <toshok@ximian.com>
1581 * Control.cs: implement Focus.
1583 2008-08-18 Geoff Norton <gnorton@novell.com>
1585 * Control.cs: Add DefaultStyleKey
1587 2008-08-18 Geoff Norton <gnorton@novell.com>
1589 * Image.cs: Implement Image.Source = BitmapImage(Stream)
1591 2008-08-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
1593 * MediaElement.cs: Implement MediaElement.SetSource (stream)
1595 2008-08-14 Geoff Norton <gnorton@novell.com>
1597 * MediaElement.cs: Turn the Stream SetSource calls into warnings
1598 to prevent us crashing until we've implemented those bits.
1600 2008-08-14 Rolf Bjarne Kvinge <RKvinge@novell.com>
1602 * MediaElement.cs: Removed classes and members which are no longer in
1605 2008-08-13 Larry Ewing <lewing@novell.com>
1607 * MediaElement.cs: fix the type of MediaEnded to
1610 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1612 * Canvas.cs: Changed some parameter names, base types, method
1613 signatures, etc to match SL.
1615 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1617 * StackPanel.cs: Added a native StackPanel class and generate the
1620 2008-08-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1622 * ContentControl.cs: Deleted, we're using MS' source for this class.
1624 2008-08-12 Chris Toshok <toshok@ximian.com>
1626 * ControlTemplate.cs: remove the TargetType CLR wrapper, it's
1629 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1631 * ControlTemplate.cs, Image.cs, UIElementCollection.cs: Remove more
1632 code, add more partial modifiers and fix DependencyObject.g.cs
1635 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1637 * Canvas.cs, ColumnDefinition.cs, ColumnDefinitionCollection.cs,
1638 Control.cs, Grid.cs, InkPresenter.cs, MediaElement.cs, Panel.cs,
1639 RowDefinition.cs, RowDefinitionCollection.cs, TextBlock.cs,
1640 UserControl.cs: Generate public ctor, internal ctor and GetKind for
1641 classes inheriting from DependencyObject.
1643 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1645 * Canvas.cs: Spaces->Tabs.
1647 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1649 * ColumnDefinitionCollection.cs, RowDefinitionCollection.cs: Make
1652 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1654 * Canvas.cs, UserControl.cs, Control.cs, RowDefinition.cs, Grid.cs,
1655 MediaElement.cs, TextBlock.cs, Panel.cs, ColumnDefinition.cs,
1656 InkPresenter.cs: Implement DP accessor generation.
1658 2008-08-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
1660 * Canvas.cs, ColumnDefinition.cs, Control.cs, Grid.cs, Image.cs,
1661 InkPresenter.cs, MediaElement.cs, Panel.cs, RowDefinition.cs,
1662 TextBlock.cs, UserControl.cs: Make classes partial and remove DP
1663 registration, which is now generated.
1665 2008-08-11 Fernando Herrera <fherrera@novell.com>
1667 * Control.cs: Add Style DP.
1668 * StackPanel.cs: Add StackPanel stub.
1670 2008-08-09 Chris Toshok <toshok@ximian.com>
1672 * ScrollBarVisibility.cs: nuke.
1674 2008-08-09 Chris Toshok <toshok@ximian.com>
1676 * Image.cs: change the Source property to be the right type for
1677 2.0 (doesn't work, though.. the DP is still a string).
1679 2008-08-08 Fernando Herrera <fherrera@novell.com>
1681 * Control.cs: Added some stubs methods for SL2
1682 * ContentControl.cs:
1683 * ControlTemplate.cs:
1684 * ItemCollection.cs:
1686 * ItemsPanelTemplate.cs: Added stubs for SL2 beta2
1688 2008-08-08 Sebastien Pouliot <sebastien@ximian.com>
1690 * ChangeLog: Merge history
1691 * FileDialogFileInfo.cs: Moved from System.Windows.Browser.
1692 * OpenFileDialog.cs: Moved from System.Windows.Browser. Updated
1695 2008-08-05 Rolf Bjarne Kvinge <RKvinge@novell.com>
1697 * UIElementCollection.cs: Deleted Visual (moved content into
1698 UIElement), and renamed VisualCollection to UIElementCollection.
1700 2008-08-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
1702 * MediaBase.cs: Deleted. Not used anymore.
1704 2008-07-30 Jeffrey Stedfast <fejj@novell.com>
1706 * TextBlock.cs: Make InlinesProperty private and remove ability to
1707 set the Inlines property.
1709 * MediaElement.cs: Source property is a Uri, not a
1710 string. Similarly, CurrentState is a MediaElementState and not a
1711 string. Remove ability to set the CurrentState.
1713 * Canvas.cs: Updated a bit.
1715 * Panel.cs: Fixed ctor and removed ability to set the Children
1718 2008-07-29 Jeffrey Stedfast <fejj@novell.com>
1720 * TextBlock.cs: Fixed FontFamily property.
1722 * Control.cs: Added properties and accessors.
1724 2008-07-28 Jeffrey Stedfast <fejj@novell.com>
1726 * Control.cs (.ctor): Made protected.
1727 (InitializeFromXaml): Seems this method no longer exists in
1728 Silverlight 2.0 Beta 2.
1730 2008-07-28 Chris Toshok <toshok@ximian.com>
1732 * MediaElement.cs: add some SecuritySafeCritical's.
1734 * ColumnDefinitionCollection.cs: stub out
1735 PresentationFrameworkCollection<T> overrides.
1737 * RowDefinitionCollection.cs: same.
1739 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1741 * Panel.cs: More B2 updates.
1742 * UIElementCollection.cs: Added.
1744 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1746 * MediaElement.cs: Removed MediaAttribute(Collection).
1748 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1750 * MediaElement.cs: More B2 updates.
1752 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1754 * TextBlock.cs: Updated TextDecoration* according to SL2B2.
1756 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1758 * TextBlock.cs: Implement Font(Style|Weight|Stretch).
1760 2008-07-23 Rolf Bjarne Kvinge <RKvinge@novell.com>
1762 * Image.cs: Fixed ImageFailed signature.
1763 * MediaElement.cs: Fixed MediaFailed signature.
1764 * TextBlock.cs: Removed SetFontSource.
1766 2008-07-22 Jeffrey Stedfast <fejj@novell.com>
1768 * ValidationErrorEventAction.cs: Added
1770 * ScrollBarVisibility.cs: Added
1772 * ClickMode.cs: Added
1774 * Orientation.cs: Added
1776 * MediaElement.cs: No longer inherits from MediaBase,
1777 AudioStreamIndex is now nullable, NaturalVideoWidth/Height are now
1778 int instead of double. Can no longer set Markers.
1780 * Image.cs: No longer inherits from MediaBase and removed
1781 DownloadProgress property.
1783 2008-07-21 Jeffrey Stedfast <fejj@novell.com>
1785 * TextBlock.cs: Use System.Windows.Documents.InlineCollection
1786 instead of System.Windows.Inlines.
1788 2008-02-20 Jeffrey Stedfast <fejj@novell.com>
1790 * TextBlock.cs (SetFontSource): It would appear that you can
1791 actually set null as a downloader (equivalent to unsetting it)
1792 according to the MS test suite.
1794 2007-11-14 Sebastien Pouliot <sebastien@ximian.com>
1796 * OpenFileDialog.cs: Changed Dispose to public. Don't reset files
1797 on Cancel. Added default "Open" title (when none is provided). Added
1798 filter validations that SL has.
1800 2007-11-09 Jeffrey Stedfast <fejj@novell.com>
1802 * MediaElement.cs (InvokeMediaOpened): Always pass null as the
1803 eventArgs parameter as defined by the msdn docs.
1804 (InvokeMediaEnded): Same.
1805 (InvokeMediaFailed): Same.
1807 2007-11-08 Jeffrey Stedfast <fejj@novell.com>
1809 * MediaElement.cs: Fixed all of the remove events to not /add/ the
1811 (InvokeMarkerReached): Pass a TimelineMarkerEventArgs arg to the
1812 handler rather than null.
1814 2007-10-04 Zoltan Varga <vargaz@gmail.com>
1816 * Control.cs (InitialzeFromXaml): Load dependencies synchronously.
1818 2007-10-02 Zoltan Varga <vargaz@gmail.com>
1820 * Control.cs: Add some error checking.
1822 2007-09-30 Jb Evain <jbevain@novell.com>
1824 * MediaElement.cs: add setter for the AudioStreamCount DP.
1826 2007-09-27 Rolf Bjarne Kvinge <RKvinge@novell.com>
1828 * Canvas.cs, Panel.cs, TextBlock.cs, Image.cs, InkPresenter.cs,
1829 MediaElement.cs, MediaBase.cs: Don't ref ourself if we're created using
1830 a *_new function, the creation itself already gives us a ref.
1831 * Control.cs: Don't ref ourself if we're created using a *_new function, the
1832 creation itself already gives us a ref. InitializeFromXaml: use the new
1833 control_initialize_from_xaml_callbacks and specify a XamlLoader.
1835 2007-09-14 Miguel de Icaza <miguel@novell.com>
1837 * MediaBase.cs: Fixes the Uri crash from TopBanana.
1839 2007-09-10 Chris Toshok <toshok@ximian.com>
1841 * Image.cs: hookup ImageFailed, which a bunch of XXX's due to the
1842 missing marshalling of the ErrorEventArgs (which MediaElement also
1845 2007-08-20 Jb Evain <jbevain@novell.com>
1847 * MediaElement.cs: use methods in [agmono]Mono.Helper to avoid calling
1848 internal methods of mscorlib.
1850 2007-08-09 Miguel de Icaza <miguel@novell.com>
1852 * OpenFileDialog.cs: Do some bit of porting to use only what is
1853 available in the 2.1 profile.
1855 2007-08-03 Chris Toshok <toshok@ximian.com>
1857 * MediaElement.cs: switch NaturalDuration back to Duration.
1859 2007-08-02 Jeffrey Stedfast <fejj@novell.com>
1861 * MediaElement.cs: Add the new properties from the July 2007
1862 release and fixed NaturalDuration to be of type TimeSpan.
1864 2007-07-31 Chris Toshok <toshok@ximian.com>
1866 * MediaBase.cs: remove the events.
1868 * MediaElement.cs: and add them here. also, hook them up to their
1869 unmanaged counterparts.
1871 2007-07-25 Miguel de Icaza <miguel@novell.com>
1873 * OpenFileDialog.cs: Implement support for returning more than one
1876 2007-07-24 Miguel de Icaza <miguel@novell.com>
1878 * OpenFileDialog.cs: Implement.
1880 2007-07-09 Chris Toshok <toshok@ximian.com>
1882 * Control.cs: don't pass the parser callbacks to
1883 control_initialize_from_xaml.
1885 2007-07-07 Miguel de Icaza <miguel@novell.com>
1887 * Image.cs (SetSource): simplify this routine by delegating all
1888 the work to unmanaged code.
1890 2007-06-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1892 * InkPresenter.cs, MediaElement.cs: Added.
1894 2007-06-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
1896 * Panel.cs: Make this class abstract.
1898 2007-06-20 Chris Toshok <toshok@ximian.com>
1900 * Control.cs: pass the XamlReader callbacks to
1901 control_initialize_from_xaml.
1903 2007-06-20 Chris Toshok <toshok@ximian.com>
1905 * MediaBase.cs: the property is named Source, not Uri.
1907 2007-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
1909 * TextBlock.cs: Fix FontWeight signature.
1911 2007-06-18 Atsushi Enomoto <atsushi@ximian.com>
1913 * TextBlock.cs : actually it was not in the build and needed couple
1916 2007-06-17 Atsushi Enomoto <atsushi@ximian.com>
1918 * TextBlock.cs : actually PInvokes are already in moon.
1920 2007-06-17 Atsushi Enomoto <atsushi@ximian.com>
1922 * TextBlock.cs : oops, extra field.
1924 2007-06-17 Atsushi Enomoto <atsushi@ximian.com>
1926 * TextBlock.cs : new.
1928 2007-06-16 Sebastien Pouliot <sebastien@ximian.com>
1930 * Control.cs: Use the Kind return from create to do the lookup.
1932 2007-06-16 Sebastien Pouliot <sebastien@ximian.com>
1934 * Image.cs: Try to get completed notification.
1935 * MediaBase.cs: End-helper for Image.
1937 2007-06-15 Sebastien Pouliot <sebastien@ximian.com>
1940 * MediaBase.cs: New.
1942 2007-06-15 Sebastien Pouliot <sebastien@ximian.com>
1946 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1948 * Canvas.cs, Panel.cs: Second pass on constructors.
1950 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1952 * Panel.cs: Fix constructor, don't construct anything if we're not the
1955 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1957 * Panel.cs: Use native constructors.
1959 2007-06-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
1961 * Canvas.cs, Panel.cs: Implement GetKind.
1963 2007-06-07 Miguel de Icaza <miguel@novell.com>
1965 * Canvas.cs, Panel.cs: Rework to use the dependency properties
1966 registered in the unmanaged side, remove dead code.
1968 2007-06-06 Atsushi Enomoto <atsushi@ximian.com>
1970 * FileDialogFileInfo.cs,
1971 OpenFileDialog.cs : some imaginary implementation using DllImports
1972 where those unmanaged functions do not exist.
1974 2007-06-04 Miguel de Icaza <miguel@novell.com>
1976 * Canvas.cs: Add native IntPtr field that points to the native
1979 Should this be part of DependencyObject?
1983 * Panel.cs: Add the early binding to the collection.
1985 2007-06-02 Atsushi Enomoto <atsushi@ximian.com>
1987 * DialogResult.cs FileDialogFileInfo.cs OpenFileDialog.cs : stubs.