LIGHTBOX EFFECT IN WPF APPLICATION

Experts,
Can you suggest me some urls from where I can get the knowledge about the implementation of the lightbox effect in the wpf application.
You can provide me the urls of the tutorials or some pages where it is having the code to implement the same .
Experts I am not developing the web application .I am developing the windows based application so please do not give me the silverlight results.If you think those are all the same then it is ok.
Thanking you,
Anindya
ANINDYAAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ANINDYAAuthor Commented:
Expert I have an error on the following file as

Error      1      The type or namespace name 'BlurEffect' could not be found (are you missing a using directive or an assembly reference?)      
Error      3      'WpfApplication1.Window1' does not contain a definition for 'Effect' and no extension method 'Effect' accepting a first argument of type 'WpfApplication1.Window1' could be found (are you missing a using directive or an assembly reference?)      


on the file Window1.xaml
and the Window1.xaml.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {

            BlurEffect blur = new BlurEffect();
            var current = this.Background;
            blur.Radius = 5;
            this.Background = new SolidColorBrush(Colors.DarkGray);
            this.Effect = blur;
            MessageBox.Show("hello");

            this.Effect = null;
            this.Background = current;
        }
    }
}


The code of the Window1.xaml file is as followes 

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        
        
        
        Height="300"
        Width="500"
        Background='LightBlue'>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height='Auto' />
                <RowDefinition Height='80' />
                <RowDefinition Height='Auto' />

            </Grid.RowDefinitions>

            <TextBlock FontFamily='Consolas'
               Foreground='White'
               Text='Use Blur to Focus Attention'
               FontSize='24'
               Margin='20' />
    <StackPanel Orientation='Horizontal'
                Grid.Row='1'
                Margin='20,0'>
      <TextBlock Text='Loan Amount' />
      <TextBox VerticalAlignment='Top'
               Margin='20,0'
               MinWidth='100' />
    </StackPanel>
    <StackPanel Orientation='Horizontal'
                Grid.Row='2'
                Margin='20,0'>
      <Button Content='OK'  />
      <Button Content='Cancel' />
    </StackPanel>
  </Grid>
    </Window>

Open in new window

0
CuteBugCommented:
Do you not have a reference added to PresentationCore.dll?
This dll contains the namespace System.Windows.Media.Effects in which BlurEffect is defined.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.