WPF C# Tutorial - Dynamically add and remove items from canvas in visual studio
Source code - https://www.mooict.com/wpf-c-tutorial-add-and-remove-objects-with-mouse-click-in-visual-studio/
Hi welcome to another fun tutorial from moo ict. in this tutorial I will show you how to add and remove rectangles dynamically from a canvas using wpf and c#. We will be using lots of rectangles to make fun games very soon so its important to understand the attributes of them inside of the canvas element. we will be linking a mouse event directly to the canvas then use c# to find if we have clicked on a empty spot inside of the canvas or have we clicked on a existing rectangle. if we clicked on a rectangle then we will remove it and if not we will spawn a rectangle on the canvas with few extra bonus such as giving it a random colour and a border.
this was a fun tutorial to make and again this is a quick tutorial that you can use just to the hang of it before we move into making games.
Hope you enjoy it and happy programming.
Видео WPF C# Tutorial - Dynamically add and remove items from canvas in visual studio канала Moo ICT
Hi welcome to another fun tutorial from moo ict. in this tutorial I will show you how to add and remove rectangles dynamically from a canvas using wpf and c#. We will be using lots of rectangles to make fun games very soon so its important to understand the attributes of them inside of the canvas element. we will be linking a mouse event directly to the canvas then use c# to find if we have clicked on a empty spot inside of the canvas or have we clicked on a existing rectangle. if we clicked on a rectangle then we will remove it and if not we will spawn a rectangle on the canvas with few extra bonus such as giving it a random colour and a border.
this was a fun tutorial to make and again this is a quick tutorial that you can use just to the hang of it before we move into making games.
Hope you enjoy it and happy programming.
Видео WPF C# Tutorial - Dynamically add and remove items from canvas in visual studio канала Moo ICT
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![WPF Controls with MVVM: ItemsControl](https://i.ytimg.com/vi/EPhJz7CHnuQ/default.jpg)
![Create a simple space battle shooter game with WPF C# in visual studio](https://i.ytimg.com/vi/GGob3dGP5hw/default.jpg)
![Coding Challenge #3: The Snake Game](https://i.ytimg.com/vi/AaGK-fj-BAM/default.jpg)
![C# Async / Await - Make your app more responsive and faster with asynchronous programming](https://i.ytimg.com/vi/2moh18sh5p4/default.jpg)
![WPF : Customize Close, Minimize, Maximize buttons](https://i.ytimg.com/vi/DFF5piJjv_Q/default.jpg)
![Intro to WPF: Learn the basics and best practices of WPF for C#](https://i.ytimg.com/vi/gSfMNjWNoX0/default.jpg)
![Simple Drag and Drop Effect Implementation in C# (WPF)](https://i.ytimg.com/vi/wWX4Dc3yD3Y/default.jpg)
![WPF: Learn about Paths and creating custom border shapes](https://i.ytimg.com/vi/1MGjNUFspd0/default.jpg)
![WPF C# Tutorial - Move Rectangles with Keyboard Events and Timer events in visual studio](https://i.ytimg.com/vi/kSoVL6MuL5o/default.jpg)
![C# Tutorial - Create a number guessing game in Windows Form Application and Visual Studio](https://i.ytimg.com/vi/S0GPI1mGT_A/default.jpg)
![Details Popup Window in WPF](https://i.ytimg.com/vi/1FjF2r-UKzU/default.jpg)
![Introduction to ASP.NET MVC in C#: Basics, Advanced Topics, Tips, Tricks, Best Practices, and More](https://i.ytimg.com/vi/phyV-OQNeRM/default.jpg)
![How to validate Name, Phone Number , Email & Password using Regex / Regular Expression in C# .NET ?](https://i.ytimg.com/vi/5q9jPMppYQ8/default.jpg)
![C# Tutorial - Create a Classic Snakes Game in Visual Studio with Windows Forms [UPDATED]](https://i.ytimg.com/vi/TzaCn1ZPalI/default.jpg)
![C# WPF UI Tutorials: 01 - The Basics](https://i.ytimg.com/vi/Vjldip84CXQ/default.jpg)
![Snakes and Ladders Game Tutorial in Visual Studio with WPF and C#](https://i.ytimg.com/vi/CJM7lfiv2Jc/default.jpg)
![Abusing C# - Jon Skeet](https://i.ytimg.com/vi/JIlO_EebEQI/default.jpg)
![How to Make a Mario Style Side Scrolling Game in Windows Form and C# in Visual Studio](https://i.ytimg.com/vi/yw_sn9DonH4/default.jpg)
![WPF C# Professional Modern Flat UI Tutorial](https://i.ytimg.com/vi/PzP8mw7JUzI/default.jpg)
![Classic Space Invaders Game Development tutorial with C# WPF In Visual Studio](https://i.ytimg.com/vi/7wokGTmY5yE/default.jpg)