Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

nightski nightski
  • Silverlight RTW is set for Oct 14 2008

    Anybody notice that Adobe managed to slip in a Flash 10 release pretty much at the exact same time?  It has some pretty compelling features too like 3D and shader like effects.

    Don't get me wrong I am probably going to get into SL2 since I have been working in WPF quite a bit, but I just thought it was interesting.

  • What would you say is Microsoft's coolest product?

    Sven Groot said:
    vesuvius said:
    *snip*

    Maybe he was trying to prevent creating a temporary copy of Writer? Tongue Out

    And you're all wrong. The coolest product MS has made is in fact Flight Simulator X, especially when combined with the right add-ons.

    I was going to say .NET but then you mentioned FS.  You are right, FS is definitely the coolest MS product in my opinion!  For me at least that is the program that got me into programming in the first place.  I have played it since the DOS days and it was my first computer game (ok so its more of a simulator than a game) Smiley  Ever since then I fell in love with aviation.  In fact, it drove me to solo an airplane on my 16th birthday and get a pilots license.

    Its amazing one program had such a large effect on my life.

  • So, how are you implementing MDI in WPF?

    I would take a look at the prism reference implementation by Microsoft.  Our solution was before prism came out, but essentially our architecture is very similar.  We utilize the MVP pattern and have the concept of a view host.  Basically in XAML you can specify where content should go by placing viewhosts.  Presenters can then inject a view into the view host dynamically.  A view host can itself be an items control that can host multiple views.  Also view hosts can be nested so that you can have a distinct presenter driving each particular view.

    When you utilize this type of architecture doing something like you mentioned is trivial.  To open up a view all you do is instantiate a new copy of the presenter and specify the view host it should inject its view into.  This could be a tab itemscontrol.  Or it could be an itemscontrol that uses a custom template to give views a more MDI like feel within the container.

    It is completely customizable.  Views are completely independent of Presenters and vice versa.  The only contract is in the data binding.

    Lastly we have a separate service that takes care of navigation services.  So when the presenter injects its view, it does so through the navigation service.  This service takes care of remember history and so forth so that the user can go back & forth among the views.

    The nice thing about this architecture is that the actual size of the supporting libraries are very minimal and very testable.  This follows good agile principles.

  • WPF Buttons

    wkempf said:
    jh71283 said:
    *snip*
    Then apply a style/template.  Problem solved.
    Agreed, extremely easy to solve this problem.  In fact, you don't even have to apply a style.  If you just set the content of the button to a textblock with textwrap enabled it will wrap....

    Also the distinction should be made.  Your issue is not with the Button control at all, it is with the default template.

  • ASP.NET MVC is HTML's Last Gasp

    Maddus Mattus said:
    Minh said:
    *snip*

    I don't share your view and I'll explain why.

    For me the Apple platform has no appeal. It's market is too small and it has too many restrictions. So what we have is a few key players writing software for it and a whole lot of blank space wich nobody can fill.

    Enter Microsoft. Anyone can develop anything on Windows. There are plenty of websites with documentation, plenty of developers willing to share their experiences, some guidance for Microsoft and plenty of 3rd party tools to help you along the way. The best thing is; Microsoft is open for feedback. So when they start out to build something new, they release CTP's and betas. When they release a 1.0 into the community, they will gather the expierences from the field and point out a roadmap for 2.0.

    You call it mediocre stuff. I call it developing with partners. Apple just dumps their software and runs.

    I am a pretty hardcore .NET developer.  I develop professionally with the platform and in my free time.  Given that however, what you stated is pretty skewed.  You can develop for the Mac natively using languages like python or ruby.  Last time I checked, Python is higher on the TIOBE index than even our precious C# (http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html).  It is very widely used and well known.  I am not saying that it is better than C#, just that it is a very viable language.

    Learning to develop for the Mac is not difficult, at least not any more than .NET/Windows.

    ASP.NET MVC imo is very important.  The OP had some things blatantly wrong about the framework, but I don't have time to get into them specifically.

  • detect fm signal in VB.NET

    From the looks of the documentation it adds an audio device to windows which you can read from (that part wouldn't be very hard).  However their application allows you to change the freq also, meaning it is prob sending custom usb commands to the device.  With some analyzing & hacking one could possibly figure out how to reverse engineer this for your app, but I do not believe it would be trivial.

  • Good factory ​implementat​ion ? (C++)

    The point of the factory pattern is not to restrict access to creating the objects without the factory.  It is simply to allow the creation of objects without specifying the class of the object you want to create.

    The implementation you provided was just fine.

  • Covariance/​Contravaria​nce in .NET Generics

    Does anybody know of any official response from MS on why this feature wasn't supported in C#?  The CLI itself supports it but for some reason it has been left out of C#.

    Thanks.

  • Optimization question

    For a pixel shader - it wouldn't be too difficult.  I would highly recommend using Nvidia's FX Composer 2 - its a great IDE for shaders.  Or if you want to use ATI stuff there is Rendermonkey.

  • Open new WPF Window / ​Multithread​ing

    jh71283 wrote:
    Object reference not set to an instance of an object.

    System.Windows.Application.Current
    is nothing

    Bearing in mind that the application is winforms based, what is the winforms equivalent to System.Windows.Application.Current.Dispatcher?


    Below is a code example on how to do this.  Basically you need to create the Window in a delegate that is passed to the Invoke method on any control in your Windows Forms solution.

    using System;
    using System.Windows.Forms;
    using System.Threading;

    namespace WPFHost
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }

            private void button1_Click(object sender, EventArgs e)
            {
                Thread thrd = new Thread(new ThreadStart(
                    delegate() {
                        this.Invoke(new MethodInvoker(CreateWindow));
                    }));
                thrd.Start();
            }

            public void CreateWindow()
            {
                System.Windows.Window wnd = new System.Windows.Window();
                wnd.ShowDialog();
            }
        }
    }