<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/kitay/">
    <title>Neroli</title>
    <link>http://w.atwiki.jp/kitay/</link>
    <atom:link href="https://w.atwiki.jp/kitay/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>Neroli</description>

    <dc:language>ja</dc:language>
    <dc:date>2013-04-11T00:49:37+09:00</dc:date>
    <utime>1365608977</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/30.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/29.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/28.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/25.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/kitay/pages/21.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/30.html">
    <title>メモ（非公開）</title>
    <link>https://w.atwiki.jp/kitay/pages/30.html</link>
    <description>
          </description>
    <dc:date>2013-04-11T00:49:37+09:00</dc:date>
    <utime>1365608977</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/29.html">
    <title>Win32ウィンドウメッセージ</title>
    <link>https://w.atwiki.jp/kitay/pages/29.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*Win32ウィンドウメッセージ
定義はWinUser.hを参照
#highlight(linenumber,css){{
using System.Windows.Interop;

/// &lt;summary&gt;
/// Window Messages
/// &lt;/summary&gt;
public	enum WindowsMessage
{
	/// &lt;summary&gt;
	/// ウィンドウが移動した時
	/// &lt;/summary&gt;
	WM_MOVE	= 0x0003,
	/// &lt;summary&gt;
	/// ウィンドウのサイズが変更された時
	/// &lt;/summary&gt;
	WM_SIZE	= 0x0005,
	/// &lt;summary&gt;
	/// 非クライアント領域でマウスカーソルが移動した時
	/// &lt;/summary&gt;
	WM_NCMOUSEMOVE	= 0xa0,
	/// &lt;summary&gt;
	/// 非クライアント領域でマウスの左ボタンを押す
	/// &lt;/summary&gt;
	WM_NCLBUTTONDOWN	= 0xA1,
	/// &lt;summary&gt;
	/// 非クライアント領域でマウスの左ボタンを離す
	/// &lt;/summary&gt;
	WM_NCLBUTTONUP	= 0xA2,
	/// &lt;summary&gt;
	/// 非クライアント領域でマウスの左ボタンのダブルクリック
	/// &lt;/summary&gt;
	WM_NCLBUTTONDBLCLK	= 0xA3,
	/// &lt;summary&gt;
	/// 非クライアント領域でマウスの右ボタンを押す
	/// &lt;/summary&gt;
	WM_NCRBUTTONDOWN	= 0xA4,
	/// &lt;summary&gt;
	/// 非クライアント領域でマウスの右ボタンを離す
	/// &lt;/summary&gt;
	WM_NCRBUTTONUP	= 0xA5,
	/// &lt;summary&gt;
	/// システムメニューを選択
	/// &lt;/summary&gt;
	WM_SYSCOMMAND		= 0x0112,
}

/// &lt;summary&gt;
///     </description>
    <dc:date>2011-05-14T13:35:20+09:00</dc:date>
    <utime>1305347720</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/28.html">
    <title>WPFTips</title>
    <link>https://w.atwiki.jp/kitay/pages/28.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*WPF Tips
**XAMLを使用している定義はルートにすることはできない
XAML を使用して定義されているため、XAML ファイルのルートにすることはできません(クラスならOK)
#highlight(linenumber,css){{
&lt;custom:[使用するclassname]
    x:Class=&quot;[このxamlに対応するクラス]&quot;
    xmlns:custom=&quot;clr-namespace:[使用するnamespace]&quot;
}}
**ウィンドウの所有権
Window.Owner を設定する必要があるが、オーナーの作成が完了している必要があるのでオーナーのLoaded以降で行う
**ドラッグ アンド ドロップ操作中のマウス座標
ドラッグ アンド ドロップの操作中は、マウスの位置を GetPosition で確実に取得することはできません。
http://msdn.microsoft.com/ja-jp/library/system.windows.input.mouse.getposition.aspx
#highlight(linenumber,css){{
[DllImport(&quot;user32.dll&quot;)] 
private static extern bool GetCursorPos( out POINT lpPoint );
public struct POINT 
{
	public	int	X;
	public	int	Y;
}
}}
**ウィンドウハンドルの取得
#highlight(linenumber,css){{
var	handle	= new WindowInteropHelper(this).Handle;
}}

----    </description>
    <dc:date>2011-05-14T12:22:08+09:00</dc:date>
    <utime>1305343328</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/27.html">
    <title>ExpressionBlendTips</title>
    <link>https://w.atwiki.jp/kitay/pages/27.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*ExpressionBlend Tips
**四隅のＲをそれぞれ設定するには
BorderのCornerRadiusは一見１つの値しか設定できないように見えるが、カンマ区切りで４つまで指定できる
**エフェクトをプレビューするには
#image(image00.png)
拡大率の隣にあるfxをOnにする。もしくは、[ツール]→[オプション]のアートボードから『効果のレンダー』にチェックを入れる
また、『しきい値のズーム』を超えて拡大していると効果はプレビューされない。



----    </description>
    <dc:date>2011-04-09T17:26:06+09:00</dc:date>
    <utime>1302337566</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/26.html">
    <title>アニメーション</title>
    <link>https://w.atwiki.jp/kitay/pages/26.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*アニメーション
コードから再生していないと直ぐに忘れるのでメモ
**VisualStateManager
 VisualStateManager.GoToState( this, &quot;stateName&quot;, true );
**Storyboard
 BeginStoryboard( FindResource(&quot;animeName&quot;) as Storyboard );
**メモ
方法 : ストーリーボードを使用してアニメーション化した後にプロパティを設定する
http://msdn.microsoft.com/ja-jp/library/aa970493.aspx



----    </description>
    <dc:date>2011-04-10T00:02:58+09:00</dc:date>
    <utime>1302361378</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/25.html">
    <title>BitmapToBitmapSource</title>
    <link>https://w.atwiki.jp/kitay/pages/25.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*BitmapToBitmapSource
リソースとイメージは型が違う為変換を行う
#highlight(linenumber,css){{
public static BitmapSource ToBitmapSource( Bitmap source )
{ 
	BitmapSource	bitmapSource = Imaging.CreateBitmapSourceFromHBitmap(
		source.GetHbitmap(),
		IntPtr.Zero,
		Int32Rect.Empty,
		BitmapSizeOptions.FromEmptyOptions()
	);

	return	bitmapSource;
}
}}

----    </description>
    <dc:date>2011-04-08T01:15:43+09:00</dc:date>
    <utime>1302192943</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/24.html">
    <title>GridLengthAnimation</title>
    <link>https://w.atwiki.jp/kitay/pages/24.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*GridLengthAnimation
Gridの幅や高さはそのままでは[[アニメーション]]できないので AnimationTimeline から派生させたクラスを使う

**参照
:C# Disciples：GridLength Animation…|
http://marlongrech.wordpress.com/2007/08/20/gridlength-animation/
:WPF Tutorial - Part 2 : Writing a custom animation class|
http://www.codeproject.com/KB/WPF/GridLengthAnimation.aspx


----    </description>
    <dc:date>2011-04-07T00:18:43+09:00</dc:date>
    <utime>1302103123</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/23.html">
    <title>メモ</title>
    <link>https://w.atwiki.jp/kitay/pages/23.html</link>
    <description>
          </description>
    <dc:date>2011-06-22T00:18:26+09:00</dc:date>
    <utime>1308669506</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/22.html">
    <title>temp</title>
    <link>https://w.atwiki.jp/kitay/pages/22.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*
#highlight(linenumber,css){{
}}



----    </description>
    <dc:date>2011-04-08T01:00:37+09:00</dc:date>
    <utime>1302192037</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/kitay/pages/21.html">
    <title>ガラスウィンドウ</title>
    <link>https://w.atwiki.jp/kitay/pages/21.html</link>
    <description>
      #right(){&amp;update(format=Y/m/d H:i D)}
*ガラスウィンドウ
#highlight(linenumber,css){{
[StructLayout(LayoutKind.Sequential)]
public struct MARGINS
{
	/// &lt;summary&gt;
	/// 
	/// &lt;/summary&gt;
	public int cxLeftWidth;      // width of left border that retains its size
	/// &lt;summary&gt;
	/// 
	/// &lt;/summary&gt;
	public int cxRightWidth;     // width of right border that retains its size
	/// &lt;summary&gt;
	/// 
	/// &lt;/summary&gt;
	public int cyTopHeight;      // height of top border that retains its size
	/// &lt;summary&gt;
	/// 
	/// &lt;/summary&gt;
	public int cyBottomHeight;   // height of bottom border that retains its size
};

[DllImport(&quot;DwmApi.dll&quot;)]
public static extern int DwmExtendFrameIntoClientArea( IntPtr hwnd, ref MARGINS pMarInset);

/// &lt;summary&gt;
/// ガラスウィンドウ
/// &lt;/summary&gt;
/// &lt;param name=&quot;window&quot;&gt;&lt;/param&gt;
static	public	void	SetGlassWindowStyle( Window window )
{
	try
	{
		// Obtain the window handle for WPF application
		IntPtr mainWindowPtr = new WindowInteropHelper(windo    </description>
    <dc:date>2011-04-07T00:18:31+09:00</dc:date>
    <utime>1302103111</utime>
  </item>
  </rdf:RDF>
