<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
NuGet installation | |
PM> Install-Package System.Windows.Interactivity.WPF | |
Must be installed in Main project also!!! | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
<i:Interaction.Triggers> | |
<i:EventTrigger EventName="MouseDoubleClick"> | |
<i:InvokeCommandAction Command="{Binding SetUserCommand}"/> | |
</i:EventTrigger> |
public static class AnonymousComparer | |
{ | |
private static class DefaultComparerCache | |
{ | |
private static readonly ConcurrentDictionary<Type, Expression> Cache = new ConcurrentDictionary<Type, Expression>(); | |
private static Expression GetDefaultComparerCore(Type propertyType) | |
{ | |
var genericTypeDefinition = typeof(Comparer<>); | |
var comparerType = genericTypeDefinition.MakeGenericType(propertyType); |
Name | Description | Exceptions |
---|---|---|
Avoid async void | Prefer async Task methods over async void methods | Event handlers |
Async all the way | Don't mix blocking and async code | Console main method |
Configure context | Use ConfigureAwait(false) when you can |
Methods that require context |
<Window x:Class="ListBoxStyle.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:src="clr-namespace:ListBoxStyle" | |
Title="MainWindow" Height="350" Width="525"> | |
<Window.Resources> | |
<Style x:Key="_ListBoxItemStyle" TargetType="ListBoxItem"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="ListBoxItem"> |