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.Windows.Threading; | |
/// <summary> | |
/// 現在メッセージ待ち行列の中にある全てのUIメッセージを処理します。 | |
/// </summary> | |
private void DoEvents() | |
{ | |
DispatcherFrame frame = new DispatcherFrame(); | |
var callback = new DispatcherOperationCallback(obj => | |
{ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>propc</Title> | |
<Shortcut>propc</Shortcut> | |
<Description>INotifyPropertyChanged 用のプロパティとバッキング フィールド用のコード スニペット</Description> | |
<Author>pinzolo</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>ev</Title> | |
<Shortcut>ev</Shortcut> | |
<Description>イベント用のコード スニペット</Description> | |
<Author>pinzolo</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
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
/// <summary> | |
/// DragOver イベント処理 | |
/// </summary> | |
/// <param name="sender">イベント発生元</param> | |
/// <param name="e">イベント引数</param> | |
private void Window_DragOver(object sender, DragEventArgs e) | |
{ | |
if (e.Data.GetDataPresent(DataFormats.FileDrop)) | |
{ | |
e.Effects = DragDropEffects.Copy; |
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; | |
using System.Windows; | |
using System.Windows.Threading; | |
namespace MktSys.UI.Sample | |
{ | |
/// <summary> | |
/// App.xaml の相互作用ロジック | |
/// </summary> | |
public partial class App : Application |
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 Base {} | |
// サブクラス | |
public class SubClass : Base {} | |
// とあるクラス | |
public class Foo | |
{ | |
// 実体は List だけど IEnumerable として公開 |
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; | |
namespace MktSys.Lib.Extensions | |
{ | |
/// <summary> | |
/// Object 拡張メソッド定義クラス | |
/// </summary> | |
public static class ObjectExtension | |
{ | |
/// <summary> |
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="MktSys.Gui.NoHeaderTabItemWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="タブのない TabControl" Height="525" Width="300"> | |
<Window.Resources> | |
<!-- | |
フォーカスがあたらないように IsTabStop を False | |
LayoutTransFormで無理やりタブを非表示にする | |
--> | |
<Style x:Key="noHeaderTabItemStyle" TargetType="{x:Type TabItem}"> |
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="MktSys.Gui.InputableDataGridComboBoxWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
Title="DataGrid に入力可能な ComboBox を配置する" Height="525" Width="300"> | |
<Grid> | |
<DataGrid Name="dataGrid" ItemsSource="{Binding Collection}" AutoGenerateColumns="False" CanUserAddRows="False"> | |
<DataGrid.Columns> | |
<DataGridTemplateColumn CanUserReorder="False" CanUserResize="False" CanUserSort="False" Header="タイプ"> | |
<DataGridTemplateColumn.CellTemplate> | |
<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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace MktSys.Test | |
{ | |
/// <summary> | |
/// 独自 Assert クラス | |
/// </summary> | |
public static class AssertEx | |
{ |