Example Codes

My .Net Blog — posts in this category.

Example Codes

Exploring Ralph Driven Development

After I read the article from Stop Chatting with AI. Start Loops (Ralph Driven Development) from Luke Parker. I have tried the Ralph Driven Development. That is…

Read more
MAUI

Best way to download in MAUI

Due to the discontinuation of Google Podcasts, I am writing my own Podcast App for Android. I chose C# MAUI because I am a C# Developer, and I have used Xamarin…

Read more
Example Codes

Refresh Datagrid in WPF

There is no such things for DataGrid.DataBinding() in Datagrid, WPF, the data grid should update itself if any items in the collection is changed. However, I…

Read more
Example Codes

MenuItem Icon - WPF

I tried the icon attribute in MenuItem. It doesn't work.Actually, you need to modify the header element like this: <MenuItem Name="GridButton"…

Read more
Example Codes

WPF TextBlock Click Event

Actually, for WPF TextBlock Component, there is no click event. The best replacement is Mouse Down Event, Like this: text1.MouseDown += text1_MouseDown;

Read more
Example Codes

WPF Animation

I built a feature to have an animation on the wide of a panel and the user click the minimize button. I wish to create a shrinking effect. The best way I found…

Read more
Example Codes

WPF:Show and Hide Button

In Winform, to show and hide button is easy. There is a property calls visible in Button class. You just need to set it to be True and Hide. That is a simple…

Read more