Comments (7)
Important: solution can be buit and works fine - Bindings work. Doesn't work autocomplete exactly
from avaloniavs.
Try adding the following target to your YourApp.Desktop.csproj
Unload and Lood YourApp.Desktop.csproj
or restart VS
Build solution
from avaloniavs.
Try adding the following target to your
YourApp.Desktop.csproj
Unload and Lood
YourApp.Desktop.csproj
or restart VSBuild solution
Doesn't give any affect. Still no autocomplete. Tried add to YourApp.csproj
too for sure
from avaloniavs.
Checked Same code on Rider Trial - works perfectly (but i cant use Rider for dev anyway). Problem is in VS extension exactly
from avaloniavs.
Well. Found out reason of this bug and how to fix it.
This code will have available autocomplete for bindings:
<UserControl
...
x:DataType="vm:IdentificationViewModel">
<StackPanel>
<TextBlock>Identification View!</TextBlock>
<TextBlock Text="{Binding PageName}"/> <!-- VS will suggest you "PageName" prop from VM here -->
<Button Command="{Binding ButtonBindingTestCommand}">Press me!</Button>
</StackPanel>
</UserControl>
This one WILL NOT have autocomplete for bindings:
<UserControl
...
x:DataType= "vm:IdentificationViewModel"> <!-- watch here: space(s) (or tab(s)) between x:DataType= AND "..." (value) -->
<StackPanel>
<TextBlock>Identification View!</TextBlock>
<TextBlock Text="{Binding }"/> <!-- VS will not suggest you any of your props from VM here -->
<Button Command="{Binding }">Press me!</Button>
</StackPanel>
</UserControl>
Reason was a Spaces or Tabs between x:DataType=
attribute and its value "..."
. For proper work it should be seamlessly x:DataType="..."
from avaloniavs.
Reason was a Spaces or Tabs between x:DataType= attribute and its value "...". For proper work it should be seamlessly x:DataType="..."
don't know if we can have an XAML warning for this. /cc @maxkatz6
from avaloniavs.
No, whitespaces should be supported there, as it's a valid XML.
from avaloniavs.
Related Issues (20)
- Error for adding additional properties preview on Window
- Intellisense does not work
- [DevTools] Copy Selector replace Clr Namespace with xmlns HOT 10
- Add XAML Editor configuration persistance in Visual Studio HOT 1
- High memory and CPU usage when (indirectly) referencing DevExpress libraries HOT 10
- Tooltip flashing in preview window
- preview and autocomplete only work if you have a desktop application HOT 3
- Incorrect behavior of adding a new Avalonia item to project in Visual Studio HOT 1
- Broken installation on linux HOT 1
- Reference the library from an executable or wait for the solution to finish loading. HOT 1
- Autocomplete of binding properties doesn't work in Visual Studio 2022 mostly HOT 1
- Add ability to change themes in the previewer. HOT 1
- Regions in AXAML files HOT 1
- New Event shown in Code-Behind
- "No executable found" when integrating Microsoft.ML.OnnxRuntime.DirectML HOT 6
- Add XAML editor's behaviour "Show inline color previews"
- Remove dependency from Avalonia TemplateStudio HOT 1
- Intellisense does not work whem mix assembly version
- .vsix does not install offline HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avaloniavs.