Browse Source
Merge pull request #7830 from AvaloniaUI/use-compiledbindings-with-methods
Use CompiledBindings with bindings to methods
pull/7837/head
Tako
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
src/Avalonia.Themes.Fluent/Controls/TextBox.xaml
|
|
|
@ -1,4 +1,6 @@ |
|
|
|
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|
|
|
<Styles xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
x:CompileBindings="True"> |
|
|
|
<Design.PreviewWith> |
|
|
|
<Border Padding="20"> |
|
|
|
<TextBox Text="Sample" |
|
|
|
@ -168,7 +170,7 @@ |
|
|
|
<Setter Property="InnerRightContent"> |
|
|
|
<Template> |
|
|
|
<ToggleButton Classes="passwordBoxRevealButton" |
|
|
|
IsChecked="{CompiledBinding $parent[TextBox].RevealPassword, Mode=TwoWay}" /> |
|
|
|
IsChecked="{Binding $parent[TextBox].RevealPassword, Mode=TwoWay}" /> |
|
|
|
</Template> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
|