.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Post New Web Links

Decompiled Silverlight Childwindows in WPF

Posted By:      Posted Date: October 06, 2010    Points: 0   Category :WPF
 

Hey Everyone,

Im currently working on a project in which we need a child window to behave like the one from silverlight.

Animate in/out, close, semi transparent & locked background etc.

I decompiled the one from Silverlight and have had some success with running it. I cannot however get the "moving" part working. Moving as in drag and drop the window elsewhere on the screen.

Here's the method in question:

 

private void Chrome_MouseMove(object sender, MouseEventArgs e)
    {
      if (((this._isMouseCaptured && (this.ContentRoot != null)) && (Application.Current != null)) && (Application.Current.MainWindow != null))
      {
        Point position = e.GetPosition(Application.Current.MainWindow);
        GeneralTransform transform = this.ContentRoot.TransformToVisual(Application.Current.MainWindow);
        if (transform != null)
        {
          double num;
          double num2;
          Point point2 = transform.Transform(this._clickPoint);
          this._windowPosition = transform.Transform(new Point(0.0, 0.0));
          if (position.X < 0.0)
          {
            num = FindPositionY(point2, position, 0.0);
            position = new Point(0.0, num);
          }
          if (position.X > base.Width)
          {
            num = FindPositionY(point2, position, 


View Complete Post


More Related Resource Links

Serving Silverlight Apps from Windows Mobile

  
Even if mobile dev is not my every day work, thanks to the .Net Compact Framework, it's still .Net programming.

Here is the scenario:

You come back home, you have a windows mobile phone wifi capable and you want to quickly get access to your phone pictures from your home network.
You just activate the Wifi, run my app and then browse to the provided link from any computer on the network.

Building a 3-Tier App with Silverlight 3, .NET RIA Services, and Azure Table Storage

  
Silverlight 3, .NET RIA Services, and Windows Azure Services Platform makes a 3-tier Cloud application easier to build: Silverlight 3 as presentation tier, .NET RIA services as the business logic and data access tier, and Windows Azure Table as the data storage tier. The sample application in this article demonstrates the architecture with a simple Survey application with all these technologies working together from Windows Azure.

Silverlight Simple Animation

  
Silverlight has several built in techniques for animating controls. Many of these technologies are particularly useful for creating simple animations meant to decorate a web page with eye catching movement that draws the reader's attention. In this post I will skip over these decorative technologies, and instead show how to create a simple animation using a technique similar to those used in many games.

Feature available to Silverlight 4 with VS 2010.

  
In Part I of this article series we have seen some features available to Silverlight 4 with VS 2010. We will continue to explore more in this article.

Silverlight Slideshow Viewer for SharePoint

  
This series will walk through the Building Blocks that I have created to demonstrate and improve the SharePoint end user experience. I have been using many of these techniques in my developer focused demos for SharePoint 2010 (and in some cases SharePoint 2007). My plan is to use this post series to distribute my code and provide more detail on the why and the how of many of my code samples

Easier Silverlight Development against SharePoint

  
I have been spending quite a bit of time lately working with Silverlight 3 and SharePoint. One of the first big shifts for me is that Silverlight Development is Client development. Silverlight runs in the browser, but it runs on the client, so no SharePoint Object Model code. You have to access all of the goodness that is SharePoint through its web services.

WPF / Silverlight tutorial: Visibility property and binding

  
Visibility property is a very powerful and yet often overlooked property available in both WPF and Silverlight. It enables you to set Visibility of certain UIElement objects to different states like: Visible, Collapsed and Hidden (not supported by Silverlight). This tutorial shows you how to use it and how to bind to Visibility property

Silverlight

  
Getting Started With Silver light

Integrate Reporting Services with Silverlight and RIA Services

  
One of the most wanted future features in Silverlight is the possibility to create business reports using Reporting Services. In this article, I will show how to use the existing Reporting Services technology with Silverlight and RIA Services combination.

all basic windows controls,wpf controls,silverlight application

  
here you will find all the information from basic.

Where is SilverLight Toolkit in VS2010?

  

I read somewhere that MS has integrate SilverLight Toolkit into VS2010. Where is it? I can't find it under Toolbox.


UI Frontiers: The Fluid UI in Silverlight 4

  

Charles Petzold shows how to extend the limited fluid UI capabilities of Silverlight 4 with new techniques so you too can dazzle users with those cool object entrances and transitions.

Charles Petzold

MSDN Magazine July 2010


Silverlight Online: Silverlight in an Occasionally Connected World

  

We discuss the latest incarnation of occasionally connected Silverlight applications, which come with a highly interactive user experience and can run either inside or outside of a browser.

Mark Bloodworth, Dave Brown

MSDN Magazine June 2010


Now Playing: Building Custom Players with the Silverlight Media Framework

  

The Silverlight Media Framework is an extensible and scalable video framework upon which you can create your own player experiences. We'll walk you through a custom player project that displays suggested videos for further viewing after the current video ends.

Ben Rush

MSDN Magazine May 2010


Silverlight Security: Securing Your Silverlight Applications

  

Josh Twist explains the unique challenges developers face in securing Silverlight applications. He shows where to focus your efforts, concentrating on the key aspects of authentication and authorization.

Josh Twist

MSDN Magazine May 2010


IIS Smooth Streaming: Enhancing Silverlight Video Experiences with Contextual Data

  

Adaptive streaming addresses the problem of smooth content delivery and decoding. We walk you through the basics of IIS Smooth Streaming and demonstrate how you can manipulate audio, video and caption data in your own Silverlight projects.

Jit Ghosh

MSDN Magazine March 2010


Finger Style: Exploring Multi-Touch Support in Silverlight

  

Touch isn't just a form of mouse input in Silverlight: Sometimes what's required are controls specialized and optimized for touch.

Charles Petzold

MSDN Magazine March 2010


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend