Advanced Forum Search Results
-
The yellow rectangle is being drawn directly over the top of the green one. To position the rectangles, use the properties Canvas.Top and Canvas.Left
Eg. <Rectangle ...... Canvas.Top="20" Canvas.Left="20" />
Hope this helps
-
Hi SilverAnt, thanks for the amendments in the LeftButtonUp and LeftButtonDown methods, they certainly make sense to me.
Phil
-
Guess you are meaning using the mouse to scale an image? if so and you don't want to trawl through the code to Surface (which is an excellent piece of coding), what I have done is create a simple example of scaling an image only. All you do is put the mouse in on the image, left click and hold and then move the mouse (within the image) -- it ...
-
I have posted a link below on how to use web services with Silverlight. I think its better than re-creating info thats already out there.
With regard to the error you are receiving from Visual Studio, are you running IIS on the same box as you are developing on? If so and you have set the port for Visual Studio's web server to be port 80, ...
-
All I had to do on my server (which is an old machine running Win 2K Advanced Server) was to add a new MIME type and all was well. The MIME type you need to add (if you haven't already) is:
application/xaml+xml
This is done in IIS rather than web.config.
Hope this helps.
Phil
-
I think I may have found the offending line, which is:
BrowserHttpWebRequest mRequest = new BrowserHttpWebRequest(new Uri(http://localhost:4000/WebService/Service.asmx/HelloWorld));
You have included a port number (4000). I guess you are using the standard port 80 for your SL app. Believe it or not, if you specify a different port number for ...
-
There are two ways you could get this info from the server. You could write a web service that would return the information and query the web service from your silverlight app, or if you don't want to write a web service (and all the associated gotcha's that come with them) and want a really quick and dirty way of doing it, you could code ...
-
Glad you have it working, having looked at my code again, there was no need to use a downloader, setting the source as you did, that is:
ImageFrame.Source = new Uri("1.jpg", UriKind.Relative);
is fine. Guess thats what happens when you reply to a post at 4.30 in the morning!!
-
I have used a Downloader to achieve what you are trying to do, here is some example code I knocked up:
1. Keep the XAML the same.
2. Insert this C# code
Downloader downloader = new Downloader();
downloader.Completed += delegate(object sender, EventArgs ea)
{
ImageFrame.SetSource(sender as Downloader, ...
-
I have read about this and come across the same problem. I found an entry on Jeff Prosise's blog about this and how to solve the problem. I have attached a link to his blog for you to have a look at.
Jeff Prosise's Blog entry
Hope this is what you are looking for.
Phil