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
using System.Linq; | |
using System.Reflection; | |
using System.Windows; | |
using System.Windows.Forms; | |
using System.Windows.Interactivity; | |
using Button = System.Windows.Controls.Button; | |
namespace FolderDialog | |
{ | |
public class FolderDialogBehavior : Behavior<Button> |
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="TestWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="TestWindow" Height="300" Width="300"> | |
<Window.Resources> | |
<DataTemplate DataType="{x:Type TestViewModel}"> | |
<Grid> | |
<TestView /> | |
</Grid> | |
</DataTemplate> |
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | |
DefaultTargets="DisableMySignedProjectSignManifest"> | |
<Target Name="DisableMySignedProjectSignManifest"> | |
<XmlPoke XmlInputPath="MySignedProject.csproj" | |
Namespaces="<Namespace Prefix='x' Uri='http://schemas.microsoft.com/developer/msbuild/2003'/>" | |
Query="x:Project/x:PropertyGroup/x:SignManifests" Value="false" /> | |
</Target> | |
</Project> |
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.Resources> | |
<Style TargetType="{x:Type HeaderedContentControl}"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type HeaderedContentControl}"> | |
<Grid Margin="4"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto" MinWidth="172"/> | |
<ColumnDefinition Width="8" /> | |
<ColumnDefinition Width="*" /> |
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
using System.IO; | |
using System; | |
class Program | |
{ | |
static void Main() | |
{ | |
var batch = @" | |
print(""start""); | |
args <- commandArgs(trailingOnly = TRUE) |
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
<!-- In user countrol resources --> | |
<UserControl.Resources> | |
<CollectionViewSource Source="{Binding Currencies}" x:Key="Currencies"/> | |
</UserControl.Resources> | |
<!-- below inside ex. DataGrid --> | |
<ComboBox ItemsSource="{Binding Source={StaticResource Currencies}}" IsSynchronizedWithCurrentItem="False" | |
DisplayMemberPath="IsoCode" | |
SelectedItem="{Binding BaseCurrency}"/> |
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 FolderDialogBehavior : Behavior<Button> | |
{ | |
public string SetterName { get; set; } | |
protected override void OnAttached() | |
{ | |
base.OnAttached(); | |
AssociatedObject.Click += OnClick; | |
} | |
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
namespace Mvc | |
{ | |
public class FilterConfig | |
{ | |
public static void RegisterGlobalFilters(GlobalFilterCollection filters) | |
{ | |
GlobalConfiguration.Configuration.Filters.Add(new ElmahHandledErrorLoggerFilter()); | |
filters.Add(new HandleErrorAttribute()); | |
} | |
} |