This file contains hidden or 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
| public class GameState | |
| { | |
| public GameState(int size) | |
| { | |
| Cells = new CellState[size, size]; | |
| Size = size; | |
| } | |
| public int Size { get; } |
This file contains hidden or 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
| public enum CellState | |
| { | |
| Dead, | |
| Alive | |
| } |
This file contains hidden or 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
| <Grid> | |
| <TextBlock Text="This is a title" Panel.ZIndex="10" /> | |
| <Image Source="/Assets/Background.jpg" Stretch="UniformToFill" /> | |
| </Grid> |
This file contains hidden or 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
| <Grid> | |
| <TextBlock Text="This is a title" Style="{ThemeResource TitleTextBlockStyle}" Canvas.ZIndex="10" /> | |
| <Image Source="/Assets/Background.jpg" Stretch="UniformToFill" /> | |
| </Grid> |
This file contains hidden or 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
| <Grid> | |
| <Image Source="/Assets/Background.jpg" Stretch="UniformToFill" /> | |
| <TextBlock Text="This is a title" Style="{ThemeResource TitleTextBlockStyle}" /> | |
| </Grid> |
This file contains hidden or 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
| <Grid> | |
| <TextBlock Text="This is a title" Style="{ThemeResource TitleTextBlockStyle}" /> | |
| <Image Source="/Assets/Background.jpg" Stretch="UniformToFill" /> | |
| </Grid> |
This file contains hidden or 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
| var view = item.Content; | |
| if (view.Contains(StandardDataFormats.Bitmap)) | |
| { | |
| var bitmapReference = await view.GetBitmapAsync(); | |
| if (bitmapReference != null) | |
| { | |
| var bitmap = new BitmapImage(); | |
| await bitmap.SetSourceAsync(await bitmapReference.OpenReadAsync()); | |
| viewer.ContentGrid.Children.Add(new Image() { Width = 300, Height = 300, Stretch = Stretch.None, Source = bitmap }); | |
| } |
This file contains hidden or 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
| var historyItems = await Clipboard.GetHistoryItemsAsync(); | |
| if (historyItems.Status == ClipboardHistoryItemsResultStatus.Success) | |
| { | |
| foreach (var item in historyItems.Items) | |
| { | |
| // ... | |
| } | |
| } |
This file contains hidden or 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
| Clipboard.HistoryEnabledChanged += (S,e) => | |
| { | |
| if (Clipboard.IsHistoryEnabled()) | |
| { | |
| // Retrieve history items | |
| } | |
| } |
This file contains hidden or 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
| await Launcher.LaunchUriAsync("ms-settings:clipboard"); |