datagrid control #15672
-
Describe the bugI create new project, run in desktop can open window with message 'Welcome to Avalonia' To Reproduce
become Expected behaviorNo response Avalonia version11.1.0-beta2 OSWindows Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 35 comments 29 replies
-
You need to upgrade to 11.0.10 instead of 11.1beta |
Beta Was this translation helpful? Give feedback.
-
version was 11.0.2 cannot find version 11.0.1 |
Beta Was this translation helpful? Give feedback.
-
link please? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
installed version 11.5 become 11.0.2 |
Beta Was this translation helpful? Give feedback.
-
nuget version has nothing to do with extension. just open your csproj file and edit every version related to Avalonia to 11.0.10. |
Beta Was this translation helpful? Give feedback.
-
thank you your help but still cannot upgrade to 11.0.10 |
Beta Was this translation helpful? Give feedback.
-
Please don't open bug reports for questions. Use discussions instead. Will convert this one later when I have time to. |
Beta Was this translation helpful? Give feedback.
-
When I say every, I mean every. Your desktop, android, ios and browser project is still 11.0.2 |
Beta Was this translation helpful? Give feedback.
-
Also the VS package manager is a real pain to use with a large dependency chain like Avalonia (it often complains about transient conflicts which forces you to upgrade things in a specific order). It's easier to just manually upgrade everything by editing your project file. You should be able to upgrade all packages fairly easily though by checking the box on the updates tab. |
Beta Was this translation helpful? Give feedback.
-
@rabbitism do you see below error? |
Beta Was this translation helpful? Give feedback.
-
@thevortexcloud may i know how to edit project file |
Beta Was this translation helpful? Give feedback.
-
If you are using a project using the new SDK format (which you likely are if you have made a new project), you can double click the project in the solution explorer. If you are using the old format, you need to unload the project and then right click it, and press edit. Or you can just open it directly with an external text editor. |
Beta Was this translation helpful? Give feedback.
-
I suggest reading the official .NET docs and watching/reading a few tutorials. Most of this has nothing directly to do with Avalonia. https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview Anyway, you should not have android/iOS package references in a project that does not target the correct TFM. |
Beta Was this translation helpful? Give feedback.
-
You have mixed Desktop, iOS and Android package. Single project is experimetal feature. You should use following comnand to create new Cross platform project from template dotnet new avalonia.xplat -n MyApp or select After creation. You have more project, each for plat (MyApp.Android.cspoj, ...). The Cross plat xaml and code should put into Add DataGrid package to Rebuild the solution Edit |
Beta Was this translation helpful? Give feedback.
-
I just want use datagrid control.. |
Beta Was this translation helpful? Give feedback.
-
thank you your help where I need to set sample code
|
Beta Was this translation helpful? Give feedback.
-
above is control in |
Beta Was this translation helpful? Give feedback.
-
due to file size upload has limit, i delete some folder, please rebuild |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
have compile error, please help, thank you very much
b) how to set style refer another style c) DataGrid isnt will render slow if has large data?
this happen during i have compile error, if i clear all compile error, then have auto pop up / suggestion during typing. isnt visual studio problem? |
Beta Was this translation helpful? Give feedback.
-
I think your initial question "Cannot add datagrid control" has been answered by @MikeCodesDotNET 5 days ago, it's better to mark this Q&A as "Answered" and open new question on the usage of the datagrid. :) |
Beta Was this translation helpful? Give feedback.
-
may i know how to set textblock foreground in App.axaml
in wpf is
due to application is background black, foreground white another is global font size is 34, if textblock need set 24 also cannot. the welcome message and start, end still is 34 |
Beta Was this translation helpful? Give feedback.
-
thank you, found link isnt can make the selected become the color itself instead overlap color
|
Beta Was this translation helpful? Give feedback.
-
datagrid popup no display all properties example last week i remember got see |
Beta Was this translation helpful? Give feedback.
-
how to hide the border for the column header
Recording.2024-05-20.103445.mp4 |
Beta Was this translation helpful? Give feedback.
-
Please open new discussions rather than adding here. Given the questions are rather simple, I suggest joining the Telegram chat. |
Beta Was this translation helpful? Give feedback.
I've thrown together a sample.
Example.zip