This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |