Create Popup in WPF and C#

Declaring a Popup control, the Quick and Dirty way

<Popup x:Name="PopupTest" AllowsTransparency="True">
<Viewbox VerticalAlignment="Top">
<TextBlock Text="Wow, that was easy!"/>
</Viewbox>
</Popup>

Showing the Popup control

void Window_MouseEnter(object sender, MouseEventArgs e)
{
    PopupTest.Placement = System.Windows.Controls.Primitives.PlacementMode.Mouse;
    PopupTest.StaysOpen = false;
    PopupTest.Height = 1000;
    PopupTest.Width = 500;
    PopupTest.IsOpen = true;
}

source: roecode keywords: http://www.google.com/search?q=popup+wpf+c%23+sample&ie=utf-8

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: