WPF C# Tutorial - Dynamically add and remove items from canvas in visual studio

WPF C# Tutorial - Dynamically add and remove items from canvas in visual studio

Moo ICT

4 года назад

30,150 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@robertcohn8858
@robertcohn8858 - 02.10.2023 21:37

Very nice and simple demo. Thank you!

Ответить
@ksharafuddin1152
@ksharafuddin1152 - 26.03.2023 17:02

I had my mind set on another program to do the canvas, but when i saw your video I completely changed heart! Good job and great starting example to win hearts!

Ответить
@rarespetrusamartean5433
@rarespetrusamartean5433 - 25.09.2022 20:02

Wow I didn't realise that we could just straight up create XAML elements straight from C# code using a pretty much identical C# class property <-> XAML Element Property naming scheme. It's much more convoluted in the Android environment

Ответить
@rickpontificates3406
@rickpontificates3406 - 18.08.2022 07:11

It helps if you don't lapse into a mumble on while narrating

Ответить
@iandrsaurri625
@iandrsaurri625 - 08.05.2022 07:51

THANK YOU SO MUCH!

I have been having difficulty with programmatically adding things to the canvas. This helped a lot

Ответить
@gusnee1651
@gusnee1651 - 31.01.2022 13:16

i copied this tutorial to my school work

Ответить
@gusnee1651
@gusnee1651 - 31.01.2022 13:15

thank you so much love

Ответить
@ApolloStudios_
@ApolloStudios_ - 12.01.2022 23:49

REMINDER TO ANYONE WHO SEES THIS IN THE FUTURE: YOU NEED TO HAVE A BACKGROUND COLOR FOR THE RECTANGLES TO SHOW. COPY THIS CODE:
Name="SalesCanvas" Focusable="True" MouseLeftButtonDown="ClickSalesScreen" Background="White"

Ответить
@motionsmoments6254
@motionsmoments6254 - 29.11.2021 17:06

Hi, This video is very helpful. I have a question, If I move all the code to another class except for the constructor and then add that class as data context during initialization The addRemoveItems method is not found by xaml. Any suggestion how to keep the eventhandler methods in a separate file? Thanks. In general I am asking how to structure this event handler method in MVVM format.

Ответить
@vu5700
@vu5700 - 05.07.2021 01:21

For some reason rectange doesnt have those options for me? It only has width/height and no fill/stroke..Could the reason be that im not using framework?

Ответить
@IlsuemOkosch196
@IlsuemOkosch196 - 24.05.2021 16:28

Did it, exactly the same way, doesn't work at all. Visual Studio is not giving me any errors, but it isn't creating rectangles on my clicks. I tried a few times to find the reason, but no clue.

Ответить
@ZoiruS
@ZoiruS - 23.05.2021 18:13

Thank you sir

Ответить
@escapist2791
@escapist2791 - 29.03.2021 19:30

Твое видео оказалось очень полезным для моего проекта. Большое спасибо из России!
Your video have very useful for my project. Great thanks form Russia!

Ответить
@capnfish
@capnfish - 05.10.2020 15:50

Great video, thanks!

Ответить
@kennethkindrich3114
@kennethkindrich3114 - 12.08.2020 19:06

how do you get the canvas???????

Ответить