Steven Kirk
1044154279
Bind to other controls with #control syntax.
Rather than specifying ElementName separately, allow binding using a "#control.Property" property path.
11 years ago
Steven Kirk
3307ef8712
Register templated controls with name scope.
Usually controls are only registered with their name scope when they get
added to a rooted visual tree, but this causes problems for tests, and
would mean the templated control wouldn't work if the client called
ApplyTemplate themselves before the control is added to the visual tree.
Work around this by explicitly registering template controls with the
name scope when the template is applied.
To allow this, we need to allow controls to be registered with a name
scope multiple times.
11 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Steven Kirk
d1150d2879
Fixed typos.
11 years ago
susloparov
fd12667d4b
Added wrap panel
11 years ago
Steven Kirk
71cd3d965b
More work on XAML control theme.
11 years ago
Steven Kirk
b230c3b3f3
Renamed XamlBinding -> Binding
Had to also rename enclosing namespace from Binding to Data as classes
with same name as a namespace cause problems.
11 years ago
Steven Kirk
785238bdf1
Merged XamlBinding and XamlTemplateBinding.
11 years ago
Steven Kirk
25fa7ddc6a
Added Carousel and CheckBox XAML styles.
11 years ago
Steven Kirk
42ea736be2
Reset ItemsPresenter on Move for now.
Need to implement this in a more efficient manner.
11 years ago
Steven Kirk
0617aa23a5
Support Replace and Reset in ItemsPresenter.
11 years ago
Steven Kirk
71973cabb1
Fix removing items from ItemsControl.
11 years ago
Steven Kirk
6a005d35c8
Make TreeView selection work etc.
Unfortunately stuff is still broken - I think ItemContainerGenerator
needs a refactor.
11 years ago
Steven Kirk
2615c5373c
Started adding TreeView tests.
11 years ago
Steven Kirk
53926a47bf
Refactored ItemContainerGenerator<T>.
To allow TreeItemContainerGenerator to inherit from it.
11 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
11 years ago
Steven Kirk
5b307f653d
Fix spurious selection changes.
In SelectingItemsControl. This was causing TabControls with transitions
to break.
11 years ago
Steven Kirk
5bfa93b747
Renamed Deck -> Carousel.
11 years ago
Steven Kirk
e824458a00
Fix DataContext binding problem with SelectedItems.
This one has to be solved in SelectingItemsControl as the property is
not updated via a binding.
11 years ago
Steven Kirk
663e760fda
Throw exception if TopLevel added as child.
Closes #262 .
11 years ago
Nikita Tsukanov
a61fdc86b2
Removed IPlatformThreadingInterface mock since it's broken anyway
11 years ago
Steven Kirk
6401cec2ef
Make SelectedItems a plain IList
As IList<T> is not covariant.
11 years ago
Steven Kirk
c0dff57a78
Make SelectedItems bindable.
And to avoid confusion removed SelectedIndexes.
11 years ago
Steven Kirk
1ed1d0efb9
Added additional test.
11 years ago
Steven Kirk
7d73960ef6
Make selecting ranges work.
11 years ago
Steven Kirk
49e2e3ec86
Fixed problem in toggle mode with single selection.
11 years ago
Steven Kirk
b2d40e77c3
Started implementing multiple selection.
11 years ago
Steven Kirk
24e18d0236
Documentation.
11 years ago
Steven Kirk
19498ab03d
Correctly set TreeView item DataContexts.
Also added a few tests for TreeView.
11 years ago
Steven Kirk
d1ae3ba50b
Fix ListBox item DataContexts.
11 years ago
Steven Kirk
7a287782fb
Renamed "selected" style class to ":selected"
11 years ago
Steven Kirk
271f47fb5b
Make SelectionMode flags.
So you can combine behaviours.
11 years ago
Steven Kirk
7b82df4369
Replaced AutoSelect with SelectionMode.
Added protected multiple selection properties to SelectingItemsControl.
11 years ago
Steven Kirk
0592f3a0f1
Added some StackPanel tests.
11 years ago
Nikita Tsukanov
f4f3d572a6
Renamed IRenderingViewport to IRenderTarget
11 years ago
Nikita Tsukanov
c8e617231c
Moved render-related code from TopLevel to a separate class
(needed for wm stuff)
11 years ago
Steven Kirk
005d95780b
Fixed failing test.
11 years ago
Steven Kirk
f68f24f24a
Fix failing test.
11 years ago
Steven Kirk
cbfbc52803
Use direct PPs for SelectedIndex/Items.
11 years ago
Steven Kirk
7e7873b3a7
Fixed HotKeyManager test.
11 years ago
Nikita Tsukanov
1d5b585895
Implemented HotKey attached property.
It doesn't work, however, because of broken ContentControl (doesn't sets child's parent for some reason)
11 years ago
Steven Kirk
5a40e57f2b
Added extra TabControl test.
11 years ago
Steven Kirk
292a04d973
Renamed DataTemplate -> FuncDataTemplate.
11 years ago
Steven Kirk
ad70cf874c
Make the TestApplication work again.
Expose the tab item content selector from TabControl, and make
FuncMemberSelector return default(T) if the parameter is of the wrong
type.
11 years ago
Steven Kirk
338a1c0d91
Added ItemsControl.MemberSelector
And use it to select the TabItem.Content property for the Deck in a
TabControl.
11 years ago
Nikita Tsukanov
79f8f76351
ref #198
11 years ago
Steven Kirk
c4cfd967dc
Fix DataContexts.
This makes it so that IControls are no longer DataTemplate-able,
breaking TabControl. Need to find a better way.
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
José Manuel Nieto Sánchez
fa97e8f51b
DockPanel Simplification
11 years ago
Steven Kirk
3693193246
Fix tests failing due to previous layout fix.
The test expectations were incorrect after stretch layout with absolute
size fix.
11 years ago