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
using System; | |
using System.Threading.Tasks; | |
using System.Windows.Input; | |
namespace ImprovedDelegateCommand | |
{ | |
public class AsyncDelegateCommand<T> : ICommand | |
{ | |
private Func<T, bool> canExecute; | |
private Func<T, Task> execute; |
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
<Button Style="{StaticResource HomeAppBarButtonStyle}" AutomationProperties.Name="Test" /> |
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
public DateTimeOffset? SelectedDate | |
{ | |
get { return (DateTimeOffset?)GetValue(SelectedDateProperty); } | |
set { SetValue(SelectedDateProperty, value); } | |
} | |
public static readonly DependencyProperty SelectedDateProperty = | |
DependencyProperty.Register("SelectedDate", typeof(DateTimeOffset?), typeof(DataTimePicker), new PropertyMetadata(null, OnSelectedDateChanged)); |
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
await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(new CoreDispatcherPriority(), action); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace System.IdentityModel.Tokens | |
{ | |
using System.Diagnostics.CodeAnalysis; | |
using System.Globalization; |