Тёмный

C#/WPF - Building Rentopoly 

Kevin Bost
Подписаться 4,1 тыс.
Просмотров 7 тыс.
50% 1

Наука

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@Zonawanialonnua
@Zonawanialonnua Год назад
I love to see when code is written by professionals) thanks!
@Kitokeboo
@Kitokeboo Год назад
Thank you for your kind words
@muhammadsulaiman8616
@muhammadsulaiman8616 Год назад
Keep it up .. 😊
@nyendwa
@nyendwa Год назад
Hey Kevin you forgot to write down a description of the project. It would be a good start for this juicy project
@Kitokeboo
@Kitokeboo Год назад
Thanks, I have updated the README on the repo. github.com/Keboo/Rentopoly/blob/master/README.md
@Netmonster01
@Netmonster01 11 месяцев назад
Great video. I have a question how did you get the nice icons on your GitHub page?
@Kitokeboo
@Kitokeboo 11 месяцев назад
I am using this extension: chrome.google.com/webstore/detail/file-icons-for-github-and/ficfmibkjjnpogdcfhfokmihanoldbfe
@quentinsamuelson5786
@quentinsamuelson5786 3 месяца назад
Hi Kevin, I am really enjoying all your videos, I am a WPF fan. I was wondering if you would go over the topic of CRUD. In particular if you have an observablecollection (AllSuppliers) of a class (Suppliers) and a SelectedSupplier object. And then have a listbox of SupplierNames from AllSuppliers and a data entry grid for changing Supplier Details. As well as a SAVE button that is only valid when the SelectedSupplier SupplierName is not empty. I can follow your code for Rentopoly as far as you have gone but I cannot then modify it to notice the changing of a field within a different class (SelectedSupplier). Hope that makes sense and you have the time to demonstrate such an operation. Thanks in advance.
@Kitokeboo
@Kitokeboo 3 месяца назад
Thanks for the kinds words. Yes I will add this to my list of stream topics.
@quentinsamuelson5786
@quentinsamuelson5786 3 месяца назад
@@Kitokeboo Thank you. I have a solution up on GitHub (currently private) which I can share. It is well written (as I used your examples) but then it has gone sideways where I have tried to use my own methodology. let me know if you would like the repo to be made public? Thanks
@pawes9611
@pawes9611 4 месяца назад
Hi Kevin I have one more question. In your solution it is possible to bind data to View from another ViewModel ?? Because I wont to have ViewModel for some general operation which be common for whole Views.
@Kitokeboo
@Kitokeboo 4 месяца назад
So yes, but this is possibly a bit of a structural thing. The bindings are always evaluated for a given context. By default, this is the DataContext property (that is also inherited). So if you want to bind to a different view model, typically you then have to get that view model set as your DataContext or the DataContext of one of your parent controls. How to do this varies a little bit, but it is rare to not have any DataContext. Often there is one that is set at the Window that can be used to hold data that applies to all of the view. Then individual views get a more specific view model as their data context.
@pawes9611
@pawes9611 4 месяца назад
@@Kitokeboo Kevin it is possible to send my simple project with ViewModelLocator solution, and maybe you can check what is wrong there. Because datacontex works ok, but I have problem because i don't see my variables in View (but they works)
@ArmandoTWeb
@ArmandoTWeb 5 месяцев назад
Hello, you have some excellent tutorials. I am updating some very old applications that have reports with Crystal Report and RDLC, but I have problems with these reports when updating them to versions of .NET 6.0 onwards. Can you give me an idea? I can't find any demo anywhere. Greetings and thanks.
@Kitokeboo
@Kitokeboo 5 месяцев назад
It is a good question. However, I don't have a much experience with Crytal Reports. I know more newer stuff typically will do something like PowerBI instead, but unfortunately that doesn't help much with an upgrade situation.
@ArmandoTWeb
@ArmandoTWeb 5 месяцев назад
@@Kitokeboo Thanks for answering.
@pawes9611
@pawes9611 4 месяца назад
Hi Kivin I have question for you. I try to build app like yours Demo App (templates). I installed whole required nuget packages, and I set up App.xaml , App.xaml.cs, etc. And I get an error CS0017 The program has more than one entry point defined. What can I do to fix this problem ??
@Kitokeboo
@Kitokeboo 4 месяца назад
This typically occurs in WPF apps because the App.xaml defaults to wanting to generate the Main method, but my template wants to define the Main method. Three key changes from my template: 1. Ensure the StartupUri is NOT set (this is set by the normal WPF template). github.com/Keboo/DotnetTemplates/blob/1c6d412585a234d4f1dceadce24e5606e46b40e7/templates/WPF/WpfApp/WpfApp/App.xaml#L5 2. In the csproj file make sure the the StartupObject is pointed at your App class. Typically this is your root namespace plus the name App unless you have renamed it. github.com/Keboo/DotnetTemplates/blob/1c6d412585a234d4f1dceadce24e5606e46b40e7/templates/WPF/WpfApp/WpfApp/WpfApp.csproj#L8 3. Most importantly, the App.xaml need to be removed at the ApplicationDefinition. This is the built-in setting that causes the App.xaml to generate a Main method. Here we see it removed from ApplicationDefinition item group, and then added into the Page item group instead. github.com/Keboo/DotnetTemplates/blob/1c6d412585a234d4f1dceadce24e5606e46b40e7/templates/WPF/WpfApp/WpfApp/WpfApp.csproj#L31-L35
@pawes9611
@pawes9611 4 месяца назад
@@Kitokeboo Point 3 fix the problem. Thank you very much. Now I can go to sleep peacefully. It's midnight in Poland :)
@Kitokeboo
@Kitokeboo 4 месяца назад
@@pawes9611 Glad to hear it. Happy coding!
@niangel2704
@niangel2704 10 месяцев назад
Hi Kevin, I downloaded the source code and run it. What I noticed is some weakness?! I recon... When the user presses 2-3 times the 2nd and 3rd tab item, the one after the other (before the await Task.Delay(2_000); finishes) then the list of the rentals will be displayed 2 or 3 times respectively depending on how fast you press on the tab items. Is that because of a lack of a cancellation of the datagrid update when the displayed view is no more visible? Hope you get my point!! And how could we correct that? given that in your project its the delay causing the long procees but if for example a long list of rentals should be displayed then that could be confusing!! Thanks for the lovely example Kevin!!
@Kitokeboo
@Kitokeboo 10 месяцев назад
Good catch, and your analysis of the issue is absolutely correct. Because of the Task.Delay and the async void Loaded inevent that is manually calling the command, it effectively queues up multiple loads and concatenates all of the results together. There are various ways to handle it, the simplest (and the change I just pushed) is to simply cancel the first load, and use the latest load request. Let me know if you have any questions on it.
@willgordon5737
@willgordon5737 2 месяца назад
Thanks for the video bro,. I see what you told me on the other video
@GuildOfCalamity
@GuildOfCalamity Год назад
Would love to see you do some MAUI apps... or WinUI3
@Kitokeboo
@Kitokeboo Год назад
I have it on my list to work on setting up a dotnet template similar to what my wpf temple looks like. So stay tuned, there will be some Maui content in the future
@GuildOfCalamity
@GuildOfCalamity Год назад
@@Kitokeboo Actually I'd like to see you do some WinUI3. There's a real lack of quality WinUI3 content on RU-vid.
@SirBenJamin_
@SirBenJamin_ 10 месяцев назад
I like to take a shot every time he says "off to the races" :)
@HappyIlya
@HappyIlya 4 месяца назад
The channel is great, love your videos and streaming style. Thanks for doing this!
@Kitokeboo
@Kitokeboo 4 месяца назад
Thanks for the kind works. Happy coding!
Далее
Is LEARNING WPF still WORTH it in 2023?
10:59
Просмотров 51 тыс.
Brilliant Budget-Friendly Tips for Car Painting!
00:28
Kenji's Sushi Shop Showdown - Brawl Stars Animation
01:55
WPF C# Professional Modern Flat UI Tutorial
36:44
Просмотров 821 тыс.
Creating custom visuals in Power BI with DAX
35:04
Просмотров 10 тыс.
Being Competent With Coding Is More Fun
11:13
Просмотров 80 тыс.
The Basics of Data Binding in WPF
20:53
Просмотров 43 тыс.
WPF in C# with MVVM using Caliburn Micro
1:23:30
Просмотров 364 тыс.
Adding Dependency Injection to WPF applications
22:42
Аpт WB: 177345793 Аpт OZON: 1197109501
0:35
Просмотров 171 тыс.
iPhone Standby mode dock, designed with @overwerk
0:27
Наушники dyson
0:12
Просмотров 472 тыс.