To apply a UWP C# subclass of Grid, follow these steps:
public class MyGrid : Grid
{
}
public class MyGrid : Grid
{
public string MyTitle { get; set; }
public MyGrid()
{
// Add any additional initialization logic here
}
}
<Page xmlns:local="using:MyNamespace">
<Grid>
<local:MyGrid MyTitle="My Custom Grid" />
</Grid>
</Page>
MyGrid myGrid = new MyGrid();
myGrid.MyTitle = "My Custom Grid";
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-04-30 02:29:08 +0000
Seen: 10 times
Last updated: Apr 30 '23