Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1898658
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:47:35+00:00 2026-05-17T06:47:35+00:00

I do not have much experiece of WPF, and I consider it as an

  • 0

I do not have much experiece of WPF, and I consider it as an easier way to markup/coding UI in .net.

I have install the lastest Rx release, and play it using Console application without any issue, when I used it in a simple WPF application, it seems that ‘Observable’ is not liked by WPF…

I have added both reference to:
System.CoreEx
System.Reactive

when type in the button click’s event handler, the VS intelligent happily pickup the Observable class and its static members, however when compile it, the ‘Observable’ becomes unknown to the context. Also the intelligence is gone for the class…

If I remove the above two reference, and add them back in again, the intelligence picked it up… when compile, same situation happens again…

I also installed the silverlight version of rx, not still not luck, please advice and help.

    private void btnStart_Click(object sender, RoutedEventArgs e)
    {
        CheckBox[] chbServers = new CheckBox[] { chbMx1, chbMx2, chbMx3, chbMx4 };
        ListBox[] lbxFiles = new ListBox[] { listBox1, listBox2, listBox3, listBox4 };


        for (int i = 0; i < chbServers.Length; ++i)
        {
            if (chbServers[i].IsChecked == true)
            {
                string baseDir = string.Format(@"c:\maildrop\mx{0}", i + 1);
                if (Directory.Exists(baseDir))
                {
                    DirectoryInfo di = new DirectoryInfo(baseDir);
                    FileInfo[] fis = di.GetFiles("*.eml", SearchOption.AllDirectories);

                    //Observable.GenerateWithTime(
                    //    0,
                    //    index => index <= fis.Length,
                    //    index => index + 1,
                    //    index => fis[index].Name,
                    //    _ => TimeSpan.FromMilliseconds(300)
                    //    )
                    //    .ObserveOnDispatcher()
                    //    .Subscribe(name =>
                    //    {
                    //        // delete the file
                    //        lbxFiles[i].Items.Remove(name);
                    //    }); 
                }
            }
        }
    }

The commented code is the piece which cause problem…

using System;
using System.Collections.Generic;
using System.Disposables;
using System.IO;
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.Data.SqlClient;

all namespace refereced are as above…

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:47:35+00:00Added an answer on May 17, 2026 at 6:47 am

    WPF applications use the .NET 4 Client Profile by default, which was not supported by Rx until the latest release. Changing your project settings to use the full .NET 4 framework will allow you to compile.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have not worked with parameters in ADO.Net very much. I'm writing a custom
I do not have much experience coding systems dealing with web-services. Please help me
I have a lot of experience in Swing and WPF but not much in
I'm currently extending a Site and do not have much experience with symfony. Currently
I have 4 years experience on DotNet, not much. I now learned developing for
I have a fair amount of JSP and JSF experience. Not so much with
I live in Australia and have not dealt much with imperial length measurements. How
I'm trying to define a new type and have not had much luck finding
I've been working at this for two days and have not had much luck.
I have not used jquery much yet and not very familiar with it. Trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.