-
Notifications
You must be signed in to change notification settings - Fork 11
fix #50 #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix #50 #51
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...otTests/Snapshots/MultiTypesInOne/Avalonia/Tests.MultiTypesInOne_Diagnostics.verified.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| [ | ||
| { | ||
| Id: CS8019, | ||
| Title: Unnecessary using directive, | ||
| Severity: Hidden, | ||
| WarningLevel: 1, | ||
| Location: : (0,0)-(0,15), | ||
| HelpLink: https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS8019), | ||
| MessageFormat: Unnecessary using directive., | ||
| Message: Unnecessary using directive., | ||
| Category: Compiler, | ||
| CustomTags: [ | ||
| Compiler, | ||
| Telemetry | ||
| ] | ||
| } | ||
| ] |
58 changes: 58 additions & 0 deletions
58
...rator.SnapshotTests/Snapshots/MultiTypesInOne/Avalonia/_#DefaultBindingMode.g.verified.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| //HintName: DefaultBindingMode.g.cs | ||
| #nullable enable | ||
|
|
||
| namespace DependencyPropertyGenerator; | ||
|
|
||
| /// <summary> | ||
| /// Describes the direction of the data flow in a binding. | ||
| /// </summary> | ||
| internal enum DefaultBindingMode | ||
| { | ||
| /// <summary> | ||
| /// Causes changes to either the source property or the target property to automatically | ||
| /// update the other. This type of binding is appropriate for editable forms or other | ||
| /// fully-interactive UI scenarios. | ||
| /// </summary> | ||
| TwoWay = 0, | ||
|
|
||
| /// <summary> | ||
| /// Updates the binding target (target) property when the binding source (source) | ||
| /// changes. This type of binding is appropriate if the control being bound is implicitly | ||
| /// read-only. For instance, you may bind to a source such as a stock ticker. Or | ||
| /// perhaps your target property has no control interface provided for making changes, | ||
| /// such as a data-bound background color of a table. If there is no need to monitor | ||
| /// the changes of the target property, using the System.Windows.Data.BindingMode.OneWay | ||
| /// binding mode avoids the overhead of the System.Windows.Data.BindingMode.TwoWay | ||
| /// binding mode. | ||
| /// </summary> | ||
| OneWay = 1, | ||
|
|
||
| /// <summary> | ||
| /// Updates the binding target when the application starts or when the data context | ||
| /// changes. This type of binding is appropriate if you are using data where either | ||
| /// a snapshot of the current state is appropriate to use or the data is truly static. | ||
| /// This type of binding is also useful if you want to initialize your target property | ||
| /// with some value from a source property and the data context is not known in advance. | ||
| /// This is essentially a simpler form of System.Windows.Data.BindingMode.OneWay | ||
| /// binding that provides better performance in cases where the source value does | ||
| /// not change. | ||
| /// </summary> | ||
| OneTime = 2, | ||
|
|
||
| /// <summary> | ||
| /// Updates the source property when the target property changes. | ||
| /// </summary> | ||
| OneWayToSource = 3, | ||
|
|
||
| /// <summary> | ||
| /// Uses the default System.Windows.Data.Binding.Mode value of the binding target. | ||
| /// The default value varies for each dependency property. In general, user-editable | ||
| /// control properties, such as those of text boxes and check boxes, default to two-way | ||
| /// bindings, whereas most other properties default to one-way bindings. A programmatic | ||
| /// way to determine whether a dependency property binds one-way or two-way by default | ||
| /// is to get the property metadata of the property using System.Windows.DependencyProperty.GetMetadata(System.Type) | ||
| /// and then check the Boolean value of the System.Windows.FrameworkPropertyMetadata.BindsTwoWayByDefault | ||
| /// property. | ||
| /// </summary> | ||
| Default = 4, | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like
DependencyPropertyGenerator.AttachedDependencyPropertyAttribute1` was missing