Steven Kirk
a91d21d0a4
Make some TextBox/Block properties direct.
10 years ago
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
81065f1d24
Added logical tree attachment events to ILogical.
10 years ago
danwalmsley
202f5839b2
fixed textblock so fontstyle, font weight, etc triggers re-render.
10 years ago
Steven Kirk
bb759a8785
We can now override the default binding mode.
So make TextBlock and TextBox have different default binding modes.
10 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
10 years ago
Steven Kirk
1841e7ad7a
Start allowing Setters to contain bindings.
This is needed so that things like the following can be done:
<TreeView>
<TreeView.Styles>
<Style Selector="TreeViewItem">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"/>
</Style>
</TreeView.Styles>
<TreeView>
(At the moment we have TreeDataTemplate.IsExpanded but this isn't good
enough: it only supports setting IsExpanded on creation of the item with
no binding.)
With this commit, setters can now contain bindings, but they aren't yet
applied correctly. As part of this commit, classes related to binding
have been moved to the Perspex.Data namespace.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
938e07422a
Invalidate TextBlock.FormattedText when attached to logical tree.
As inherited properties can change when this happens.
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Steven Kirk
1b17b037cf
Use ContentAttribute to identify content property.
11 years ago
Steven Kirk
9d2eb399f5
Added missing attached property accessors.
For TextBlock.Foreground.
11 years ago
Steven Kirk
d68131c488
Added getters/setters for TextBlock attached props
Closes #252 .
11 years ago
Nikita Tsukanov
3fc62506df
Introduced DrawingContext class responsible for matrix transformation and push/pop order validation
11 years ago
Steven Kirk
907505f194
Get simple two-way bindings working.
11 years ago
Steven Kirk
94884821ff
Fixed another typo.
Closes #222 for reals.
11 years ago
Steven Kirk
e56bc47ae7
Fix typo.
11 years ago
Steven Kirk
d143b7fcee
Make initial DropDown selection work
Fixes #110
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
4e443c87bd
More porting docs etc from ideas branch.
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
268b34e4fc
Make TextBlock properties attached properties.
This is how they should've been all along, except PerspexObject.Bind
didn't check that a property was registered before binding to it, so it
went unnoticed.
11 years ago
Steven Kirk
2931263d5d
Make right aligned text work.
Need to supply a constraint in order to know where to align it.
11 years ago
ncarrillo
74c82f3b63
Work on TextAlignment
11 years ago
Steven Kirk
c27ddbb17c
Removed ActualSize property - use Bounds instead.
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
53d804572d
Added TextBlock.FontWeight.
Closes #31 .
11 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
11 years ago
Steven Kirk
23c4a9a87f
Moved some more properties out of Control.
Border and Foreground properties didn't make sense there.
12 years ago
Steven Kirk
b20b94160d
Fix Font properties owner.
And make default values come from theme.
12 years ago
Steven Kirk
a9a569557b
Moved some properties around.
- Moved Background out of Control. Fixes #14 .
- Added Font properties to TemplatedControl.
12 years ago
Steven Kirk
d4733c5332
Moved a bit of stuff around.
12 years ago
Steven Kirk
d2d94da177
Fix TextBlock constraint not getting initialized.
12 years ago
Steven Kirk
aef071ec8d
Draw selected TextBox text white.
12 years ago
Steven Kirk
71e46c3084
Added TextWrapping setting.
TextBox doesn't handle quite a few things yet, scrolling and lines for
example.
12 years ago
Steven Kirk
2be668db1a
More refactoring of FormattedText.
12 years ago
Steven Kirk
20a944013e
Started refactoring of FormattedText.
12 years ago
Steven Kirk
a833a5e883
Stylecop fixes.
Also added solution-wide stylecop settings.
12 years ago
Steven Kirk
007dbd2656
Display template controls in italic.
12 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
a467607e57
Correctly measure TextBlocks.
12 years ago
Steven Kirk
d9b0876522
Fix properties that affect measure/render etc
12 years ago
Steven Kirk
0b81fc2ca0
Change Visibility to IsVisible.
12 years ago
Steven Kirk
52b7d08541
Started on TextBox.
12 years ago
Steven Kirk
990d5c8c8c
Moved FontSize to Control.
12 years ago
Steven Kirk
d47163353b
Moved alignment into child Control.
12 years ago
Steven Kirk
32c8914609
Implement border child alignment.
12 years ago