我又藉由一些文章 找到另一家3rd party的WPF controls
而且好像這家也十分有名 叫Infragistic
我也找到他們有做Ribbon的Solution
有興趣參考以下link吧..
http://www.infragistics.com/hot/wpf-beta.aspx#xamRibbon
Powered by ScribeFire.
Powered by ScribeFire.
Powered by ScribeFire.
Powered by ScribeFire.
Powered by ScribeFire.
Powered by ScribeFire.
Last night I presented Code Generation, Software Factories and Visual Studio Extensibility at Direct Supply. Below is the project download with all of the source followed by many useful links related to the various topics.
[ Download the sample project: SmallSharpTools.VisualStudioPlugins.zip ]
If you have any other links that you feel are useful, please add them below in the comments.
Powered by ScribeFire.
Powered by ScribeFire.
Powered by ScribeFire.
This is a live webcam brought into WPF using my MediaBridge hack. I swear I don't look that greasy IRL.
Powered by ScribeFire.
Powered by ScribeFire.
void MakeButton()
{
Button b2 = new Button();
b2.AddHandler(Button.ClickEvent, new RoutedEventHandler(Onb2Click));
}
void Onb2Click(object sender, RoutedEventArgs e)
{
//logic to handle the Click event
}
The next example shows the C# operator syntax
(Microsoft Visual Basic .NET has slightly different operator syntax
because of its handling of indirection):
C# Method2-------------------------------------------------
void MakeButton2()
{
Button b2 = new Button();
b2.Click += new RoutedEventHandler(Onb2Click2);
}
void Onb2Click2(object sender, RoutedEventArgs e)
{
//logic to handle the Click event
}
Powered by ScribeFire.
Powered by ScribeFire.
Powered by ScribeFire.
using System;在下列程式碼中,示範了如何使用 PtrToStructure 方法,將記憶體的 Unmanaged 區塊封送處理成 Managed 結構。
using System.Runtime.InteropServices;
public struct Point
{
public int x;
public int y;
}
class Example
{
static void Main()
{
// Create a point struct.
Point p;
p.x = 1;
p.y = 1;
Console.WriteLine("The value of first point is " + p.x + " and " + p.y + ".");
// Initialize unmanged memory to hold the struct.
IntPtr pnt = Marshal.AllocHGlobal(Marshal.SizeOf(p));
try
{
// Copy the struct to unmanaged memory.
Marshal.StructureToPtr(p, pnt, false);
// Create another point.
Point anotherP;
// Set this Point to the value of the
// Point in unmanaged memory.
anotherP = (Point)Marshal.PtrToStructure(pnt, typeof(Point));
Console.WriteLine("The value of new point is " + anotherP.x + " and " + anotherP.y + ".");
}
finally
{
// Free the unmanaged memory.
Marshal.FreeHGlobal(pnt);
}
}
}
Powered by ScribeFire.
這幾天一直在try Windows Vista的Gagdget.... 中秋連假還一直在加班 :-(
最後有一個major bugs就是卡在這裡~~ 超麻煩的 不過還好給我找到了....
呵~
Powered by ScribeFire.
之前在合作一個case 好像我就有使用過這樣的技法~~ 不過這個link比較簡單...:p
Powered by ScribeFire.
Powered by ScribeFire.
Powered by ScribeFire.