Steven Kirk
a40f0be1d9
Make SolidColorBrush properly immutable.
Previous its color was immutable but because it inherited from Brush, its Opacity was mutable. This wasn't good, as it meant that e.g. Brushes.Red could be changed. Make it properly immutable by using the IBrush interface everywhere and not inheriting from Brush.
10 years ago
Steven Kirk
8be3a17600
Removed unused code.
10 years ago
Steven Kirk
c8dc3ff29b
Default theme now uses style resources.
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
89dc27f276
All tests now passing.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
11 years ago
Steven Kirk
4ca4238dfe
Delay changing TextBox caret pos til after measure.
11 years ago
Steven Kirk
1380f39cfd
Don't get caret position unless needed.
11 years ago
Mikhail Kanygin
a9f5042073
Implemented TextAlignment property for TextBox.
11 years ago
Nikita Tsukanov
3fc62506df
Introduced DrawingContext class responsible for matrix transformation and push/pop order validation
11 years ago
Steven Kirk
94884821ff
Fixed another typo.
Closes #222 for reals.
11 years ago
Dan Walmsley
65a133a440
Implemented caret inverting background color.
11 years ago
Dan Walmsley
c56b7bd0ed
Implemented Caret inverting background colour, by finding templated parent.
11 years ago
Dan Walmsley
8309adf6da
Implemented caret inverting background colour.
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
38e85a3f36
Started reworking reparenting controls.
11 years ago
Steven Kirk
c65c9fb7c6
Show access keys in menus.
Currently always shown, whether user pressed alt/f10 or not.
11 years ago
Steven Kirk
73f7fdf59d
Round textbox caret to device pixels.
11 years ago
ncarrillo
74c82f3b63
Work on TextAlignment
11 years ago
Steven Kirk
4299e7e046
Make TextBox handle text input.
Instead of TextPresenter - this fixes the problem of focus that we were
working around in TextBox.OnGotFocus before.
11 years ago
Steven Kirk
78a80b2b75
Moved Tab key handling to InputElement.
11 years ago
Steven Kirk
53d804572d
Added TextBlock.FontWeight.
Closes #31 .
11 years ago
Steven Kirk
3c591482a9
Added hacky tab keyboard navigation.
This is a temporary workaround to #30 - it's very hacky:
- Tab key handling is built into TextBox - all other controls don't
work. It needs to be moved into InputElement.
- It only traverses siblings.
- Setting focus to template children is a hack.
- Many more problems.
11 years ago
Steven Kirk
bedd894f29
Correctly handle TextPresenter focus events.
Fixes #27 .
11 years ago
Steven Kirk
ef5531ec06
Don't crash when TextBox.Text == null.
11 years ago
Steven Kirk
b28b5e5a23
Tidied up Presenter/TemplatedParent logic a bit.
11 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
11 years ago
Steven Kirk
9a994e582c
Moved VisualTree extensions into own namespace.
So that they don't pollute the whole Perspex namespace - you now need to
"opt-in" to the visual tree.
12 years ago
Steven Kirk
b20b94160d
Fix Font properties owner.
And make default values come from theme.
12 years ago
Steven Kirk
2dafd77beb
Removed unneeded code.
12 years ago
Steven Kirk
f36ab8a2f1
Don't let TextBox collapse when it has no text.
12 years ago
Steven Kirk
d2d94da177
Fix TextBlock constraint not getting initialized.
12 years ago
SuperJMN
839302c997
Fixed entering of letter A
12 years ago
Steven Kirk
39691aecc3
Simplified TextBox scrolling.
12 years ago
Steven Kirk
542e81d129
Implemented TextBox scrolling.
12 years ago
Steven Kirk
02aed11911
TextBoxView -> TextPresenter
Instead of being a private implementation detail of TextBox, make it use
a presenter control that list linked to the main control using binding.
Should give a lot more fexibility.
12 years ago
Steven Kirk
01c7d028d0
Correctly apply nested templates.
When a templated control's template itself contains templated controls,
make sure all of the templates are applied, as the nested templated
control might contain something the top-most templated control is
looking for.
12 years ago
Steven Kirk
00aa02964f
Inplemented double and triple click in TextBox.
Copied a load of stuff from Moonlight regarding finding next/prev word
that I've put in StringUtils.
12 years ago
Nelson Carrillo
a6476cb7ec
- Added Ctrl+A to select all text in the TextBox
- Made the TextBox lose its selection when focus is lost.
12 years ago
Steven Kirk
645094ccec
Cancel TextBox selection on cursor movement.
12 years ago
Steven Kirk
9fa861e34b
Added mouse-select to TextBox.
12 years ago
Steven Kirk
eca1e1334e
Don't remove selection when nothing entered.
12 years ago
Steven Kirk
82f31f92f9
Replace selection in text boxes.
12 years ago
Steven Kirk
31a3b9ea78
Make Up/Down arrows work in text boxes.
12 years ago
Steven Kirk
9b6efbc3d2
Made End key work in multi-line text boxes.
12 years ago