danwalmsley
bc42091ce9
Revert "Expose Cut Copy and Paste methods for binding for context menus"
6 years ago
Dan Walmsley
5ea8c57f76
move standard textbox context menu to the templates.
6 years ago
Jumar Macato
23713366fa
add support for default theme
6 years ago
José Pedro
856118f21c
Use TextBox text alignment and wrapping in watermark.
6 years ago
Deadpikle
6c29598071
Fix clicking TextBox border moving to end
Twofold fix:
1) Cursor doesn't show IBeam when not in DockPanel
2) If you do click the border, it just focuses the text box -- it does not move the selection
6 years ago
Symbai
6fe5892ad9
Include vertical alignment of floating watermark
6 years ago
Symbai
f4fe0b126c
init
6 years ago
Symbai
4ac1fee023
Update TextBox.xaml
6 years ago
Abdulbaqi Alshareef
185511d7e0
Set default SelectionForegroundBrush in default style resource instead of code
7 years ago
Abdulbaqi Alshareef
c67e405738
Add SelectionBrush and SelectionForegroundBrush Feature
7 years ago
Abdulbaqi Alshareef
434af7d56d
Add CaretBrush property to Textbox
7 years ago
Steven Kirk
b91df127ea
Remove :valid and :invalid pseudoclasses.
`:valid` and `:invalid` pseudoclasses are being added to all `ContentControls` simply in order to show/hide the `ContentPresenter` in `CheckBox`. Instead of this, add some `ObjectConverters` and use them to set the visibility of the `ContentPresenter.`
Also renamed the converters in `StringConverters` to add an `Is` prefix as the `ObjectConverters` didn't look right as just `Null` and `NotNull`.
7 years ago
Dan Walmsley
0f18328f14
fix formatting.
8 years ago
Dan Walmsley
7f9d223169
Set IBeam cursor in TextBox template as a style.
8 years ago
Dan Walmsley
4c9d41d980
fix color resource names
8 years ago
Steven Kirk
b8f127fce7
Reimplemented TemplateBinding.
Rather than just use a standard `Binding`, make `TemplateBinding` a lightweight binding in the case where the binding is simply to a property on the templated parent.
8 years ago
Dan Walmsley
8befbacba0
Use textpresenter to replace with password char.
8 years ago
Dan Walmsley
a9747e0bd6
whitespace.
8 years ago
Dan Walmsley
aca0fb3eba
Implement password char on TextBox rather than separate control.
8 years ago
sdoroff
5dce65f7b6
Created a shared DataValidationErrors framework
Moved Validation Error tracking to attached an attached property
Created an shared error indicator that can be simply added to control
templates and re-styled across all controls
This should reduce the need for code and markup duplication while
allowing for a consistent visual interface
8 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
8 years ago
Jeremy Koritzinsky
745517f68e
Updated usage of Static and Type to be x:Static and x:Type.
9 years ago
Steven Kirk
33b57118cf
Bind TextPresenter.Text before CaretIndex.
Otherwise if `TextBox.CaretIndex` is set before the `TextBox`'s template is applied then it will be coerced to null on the `TextPresenter` when created as `Text` will still be null at this point.
9 years ago
Steven Kirk
f6ed69be28
StyleResource -> DynamicResource
9 years ago
Steven Kirk
7f2cbd0b71
Use a path for the TextBox error icon.
10 years ago
Steven Kirk
7a2adc63e9
Fix TextBox/error icon scrolling.
10 years ago
Steven Kirk
9094de563e
Fix the TextBox error ToolTip.
Create a new popup window for each ToolTip as sharing one was causing
problems when ToolTip was included in a control template.
10 years ago
Steven Kirk
41ba3b7782
Started adding TextBox error adornments.
10 years ago
Steven Kirk
19b034651e
Use `:error` pseudoclass in TextBox.
10 years ago
Steven Kirk
5c33fbc6ee
Reimplemented property validation.
As far as it was in `property-validation-grokys` branch. Things were
messed up on master so had to merge this manually so may be problems.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
df204ce01d
Fix TextBox template binding.
10 years ago
Steven Kirk
a6067c994e
CanScrollHorizontally shouldn't be an attached property.
10 years ago
Steven Kirk
f2ecce6cc2
Remove TextBox hacks.
Now that we can have attached properties in bindings.
10 years ago
Steven Kirk
42ccfebf17
Fixed TextBox floating watermark.
It should not scroll with TextBox contents.
10 years ago
Steven Kirk
94ea1dc6c3
Renamed .paml files to .xaml.
10 years ago
Steven Kirk
c8dc3ff29b
Default theme now uses style resources.
10 years ago
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
Mikhail Kanygin
a9f5042073
Implemented TextAlignment property for TextBox.
11 years ago
Steven Kirk
ff90da2b3a
Move XAML control styles into Perspex.Themes.Default.
And remove old code-defined control themes from there.
11 years ago
Steven Kirk
e6351e8269
Added basic implementation of MultiBinding.
Just enough to allow TextBox's floating watermark logic to work.
11 years ago
Steven Kirk
16d74ff121
Use correct property for floating watermark.
11 years ago
Steven Kirk
30e3b28c93
Started adding general purpose IValueConverters.
11 years ago
Steven Kirk
c988bdb387
Fixed the problem with binding converters.
Wasn't assigning the property in the markup extension ProvideValue.
D'oh.
11 years ago
Steven Kirk
826d30d7d0
Updated OmniXAML
To see if it fixed nested markup extensions. Doesn't seem to have had.
11 years ago
Steven Kirk
1669bdddd8
Fixed previous commit.
It wasn't OmniXAML ignoring the binding, the problem was that I was
trying to set the property twice.
11 years ago
Steven Kirk
e301e56a9d
Start making Converters work.
When passed to Binding. Found another problem with OmniXAML which means
we can't continue along this road: OmniXAML issue #50 .
11 years ago
Steven Kirk
525c0dc052
Trying to add XAML Binding converters.
But nested MarkupExtensions don't seem to work.
11 years ago
Steven Kirk
42da070678
Added TextBox XAML style.
Watermark not yet working - need to either expose properties controlling
visibility or add XAML multi-bindings.
11 years ago