- Select the object(s) to export
- Open the document properties window (Ctrl+Shift+D)
- Select "Resize page to drawing or selection"
- File > Save As Copy...
- Select Optimized SVG as the format if you want to use it on the web
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
<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"> |
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 |
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 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); |
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
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> |