Skip to content

Instantly share code, notes, and snippets.

View devlights's full-sized avatar
🤧
hay fever....

devlights devlights

🤧
hay fever....
View GitHub Profile
@devlights
devlights / memo.md
Created January 15, 2016 10:26
[Reshaper] 記述したXMLドキュメントコメントを整形して表示する (Show Quick Documentation)
  • Ctrl+Shift+F1
  • Alt+Enterして Show Quick Documentation を選んでも良い
@devlights
devlights / NestedStyles.xaml
Created November 9, 2015 11:39
[WPF] ネストしたスタイルを定義する (NestedStyles in WPF)
<Window x:Class="NestedStyles.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="MinWidth" Value="100" />
</Style>
@devlights
devlights / CSharp_Serializer_Differences.md
Last active November 5, 2015 09:04
C#の各シリアライザの比較表
@devlights
devlights / memo.md
Created October 16, 2015 12:59
タスクバーを非表示にする
@devlights
devlights / WpfDataGridResourceSample.xaml
Last active January 22, 2016 13:19
[WPF] DataGridの見た目などを共有してデータのみ実行時に指定
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="600">
<Window.Resources>
<DataGrid x:Key="パターン1" x:Shared="False" AutoGenerateColumns="False" ItemsSource="{Binding .}">
<DataGrid.Columns>
<DataGridTemplateColumn Header="名前">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
@devlights
devlights / AppDomainMemo.md
Last active September 25, 2015 04:57
AppDomainについてのメモ
@devlights
devlights / TextBoxEx.cs
Created September 8, 2015 13:26
[WPF] 文字が見切れたらツールチップで全文字列表示するテキストボックス
// 参考:http://www.codeproject.com/Articles/309927/WPF-TextBox-With-Ellipsis
public class TextBoxEx : System.Windows.Controls.TextBox
{
private string _longText;
private bool _useLongTextForToolTip;
private bool _isExternalChange;
public TextBoxEx()
{
_longText = string.Empty;
@devlights
devlights / ShowWindowOnNewUIThread.cs
Last active September 4, 2015 03:04
[WPF] 別スレッドでUIスレッドを立ててそこからWindowを表示
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
@devlights
devlights / CancelOpenFileDialogWPFSample.cs
Created August 31, 2015 12:48
WPFで「ファイルを開く」ダイアログを裏から強制的に閉じる
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms;
@devlights
devlights / MainWindow.xaml
Last active August 29, 2015 14:22 — forked from flq/NonTopmostPopup.cs
Draggable, Non Topmost, Click to BringToFront Popup Sample. (ドラッグ可能で状態に応じてTopMostを切り替えるPopup(クリックすると前面に来るよう調整済み))
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:exControls="clr-namespace:NonTopmostPopupSample.ExControls"
xmlns:behaviors="clr-namespace:NonTopmostPopupSample.Behaviors"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
x:Class="NonTopmostPopupSample.MainWindow"
Title="Non Topmost Popup Sample"
Height="426"