Skip to content

Instantly share code, notes, and snippets.

View JamestsaiTW's full-sized avatar
😳
Working Working Working

James Tsai JamestsaiTW

😳
Working Working Working
View GitHub Profile
private void PreviewGridCell(Grid grid , Color cellBackgroundColor)
{
var columnCount = grid.ColumnDefinitions.Count;
var rowCount = grid.RowDefinitions.Count;
for (int row = 0; row < rowCount; row++)
{
for (int column = 0; column < columnCount; column++)
{
var boxView = new BoxView()
@JamestsaiTW
JamestsaiTW / nprop.snippet
Last active August 24, 2022 04:36
The code snippet of MVVM & Binding for .NET MAUI / Xamarin.Forms
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>nprop</Title>
<Shortcut>nprop</Shortcut>
<Description>使用泛型 Notify 的屬性和支援欄位程式碼片段</Description>
<Author>James Tsai</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
@JamestsaiTW
JamestsaiTW / CommunityToolkit-nprop.snippet
Last active October 2, 2022 15:16
針對 CommunityToolkit.Mvvm 套件設計運用
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>nprop</Title>
<Shortcut>nprop</Shortcut>
<Description>使用 CommunityToolkit.Mvvm.ComponentModel 設計支援屬性和欄位程式碼片段</Description>
<Author>James Tsai</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>