|
John Simmons / outlaw programmer wrote: I want a clear and un-biased comparison of the two.
Urgentz ... pleze.
|
|
|
|
|
John,
The development team I'm currently on is facing similar issues, minus the "boss" part.
Here's what I can tell you:
1). There is very little cross-over between WPF XAML and SilverLight
2). SilverLight 3.0 is really closer to be "LOB ready", don't waste time with 2.0
Other issues:
10 SilverLight Gotchas, with SilverLight 2.0[^]
But again, from what the "guys" on my team have mentioned, I would skip 2.0 and concentrate effort on 3.0.
|
|
|
|
|
You already know, like Pete, I love this stuff too.
A year ago I laughed and joked with everyone at the thought of me doing web apps...
now it's my main business, all using Silverlight/ASP.NET/WCF.
I'm not going to answer your question - I think you know you have to research the pros
and cons, and better yet, try it yourself.
I will say, however - PLEASE beg your boss not to do it. I don't want to see your posts here (after
you've been working with WPF) as you realize painfully how much Silverlight IS a SUBSET of WPF...the lack
of rich WPF databinding in markup alone makes me cry (luckily I like writing actual code anyway)...
Please....no...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: I will say, however - PLEASE beg your boss not to do it. I don't want to see your posts here (after you've been working with WPF) as you realize painfully how much Silverlight IS a SUBSET of WPF...the lack
of rich WPF databinding in markup alone makes me cry (luckily I like writing actual code anyway)...
If there was a site available that listed the things you probably won't like about WPF (and/or Silverblight), at least I would have gone in with my eyes open instead of being utterly surprised at how much it still sucks after three years. And truth be told, it's not so much WPF itself as it is the tools.
Since I already knew Silverblight is a subset of WPF, and since I already know that the WPF tools suck, it just goes to reason that developing for Silverblight is going to suck as well. For those reasons, you won't get any of the same "Why Silverblight Sucks Today" messages that I've already gone over for WPF. However, if some new suckage raises its ugly head, I will most assuredly expose it to the light of day. In fact, I already have a new suckage item regarding Silverblight, direct from Microsoft.
I guess you'll just have to deal with it and try to talk me down if I get too agitated. Remember, I don't want to hate this stuff, but Microsoft hasn't taken any steps - at all - to ease my pain. I can handle tools that are merely adequate, but when they just plain suck ass, it pisses me off.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Actually now that I've reread your entire post and not just the topic
(because comparing Silverlight to WPF is, well no comparison),
I'll answer...
John Simmons / outlaw programmer wrote: the pros/cons of using Silverlight over a desktop WPF application?
Cons:
1) The sandbox
2) Very small subset of the .NET framework (although for certain app types, there's plenty)
3) It runs in a browser. 3.0 has offline capability, but it's still in a browser
Pros:
1) It runs in a browser. but it runs in more than one browser on more than one platform.
2) Deployment. There's no easier deployment - including ClickOnce
Now, if you're convinced you want or need a browser based app, perhaps because it's cross platform
and deployment is easy, then there's even more pros:
1) You can leverage existing .NET skills, like C#/VB.NET on a browser platform
2) The Silverlight runtime provides a subset of .NET, so interacting with existing desktop .NET based applications (like using WCF and/or ASP.NET) can be much simpler.
3) Silverlight apps actually run code on the client, unlike other web technologies like ASP.NET (and Silverlight code runs faster than js). Depending on the application, and with a thoughtful design, this can benefit web app performance by allowing distribution of CPU load between server and client.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have a textbox and it need the user not allow to enter any specialcharecters
He can enter 1. A-Z
2. a-z
3. 0-9
4. Space.
How can I make the KeyDown event to do this?
|
|
|
|
|
Rather than use KeyDown, try PreviewKeyDown on this instead. More importantly though, are you sure you've thought this through properly? What happens if the user presses the backspace or Delete key? What about the Tab key?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
What I need is he can't enter any special characters in the textbox.
|
|
|
|
|
How do you define a special character? You need to think about your requirements a bit more. For instance, what about an apostrophe? If you're masking inputs like this, you wouldn't allow my surname through - and that would seriously annoy me (to the point where I probably wouldn't use your product).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I like to use the KeyPress event. Here is a sample that allows only alpha characters, numbers, and the control keys like enter, tab, backspace, delete, etc.
Private Sub txtMyTextbox_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtMyTextbox.KeyPress
If Char.IsDigit(e.KeyChar) OrElse Char.IsControl(e.KeyChar) OrElse Char.IsLetter(e.KeyChar) Then
e.Handled = False
Else
e.Handled = True
End If
End Sub
|
|
|
|
|
Hi ,
I have a gray scale 12 bit dicom image in the byte array and i need to display it in the image control. I tried Bitmapsource.create it has onli 8 bit and 16 bit options in it.
Can anyone please tell me how to display the 12 bit image in the image control.
Thanks
|
|
|
|
|
You'll have to modify the 12 bit image - take a look at this[^] article for more information.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Where did Dependancy property register.
Now where did this Button text DP register. Becoz DP is the static property how can the system will now that the "Ok" text is of btn.
and if i create another Button btn2 with text "Cancel" How it differiniate the two text.
if i old property system
btn.Text = "Ok";
btn1.Text = "Cancel";
it make scence to me becoz each property is have differrnt instance of Button.
can u plz explain it in some detail?????
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
wasimsharp wrote:
This should not build...You should get a "The property 'text' was not found
in type 'Button'." error.
So where is this "Text" or "text" property coming from?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
is it fine
Now plz if u clear me the DependancyProperty.Register() Method what itdo ???
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
wasimsharp wrote: if u clear me the DependancyProperty.Register() Method what itdo ???
You're wondering what the Register() method does?
WPF uses a different property system than regular .NET properties.
I imagine Register() adds your dependency property to its property system, providing
information about it - its name, type, class, and metadata.
Dependency Properties Overview[^]
Custom Dependency Properties[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Take a look at the Chris Anderson "Essential Windows Presentation Foundation" book Appendix on Properties. There is a partial sample on how to design the Dependency Property subsystem from scratch.
Chris Anderson is the WPF Architect and in this excellent book he describes the WPF Architectural decisions and why they are were taken.
Cheers,
Oleg V. Polikarpotchkin
ovp
|
|
|
|
|
I have a cctv dvr that I am trying to view from my wpf application. I have added a web browser control on my form on which I can browse most web pages. When I try to go to the link http:\\120.0.0.1, the address of my machine where I installed the dvr card I get the exception below.
I can come across a couple of suggestions on the web, but nothing seems to work, I am using VS 2008 on a vista machine.
System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="WindowsBase"
StackTrace:
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Glowworm.App.Main() in C:\Users\Marwa\Documents\Visual Studio 2008\RunningProjetcs\Glowworm\Glowworm\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
|
|
|
|
|
Hello,
in my application i load a external .XAML file, in this XAML file i have a UserControl with some Controls in it and some Storyboards. My Main-Application loads this UserControl into a Border and adds the Storyboard to his own Resources.
Now i'm able to play this animation with the correct controls and so on, everything works fine... But! I can't set the Storyboard.SpeedRatio, no matter if i use Storyboard.SpeedRatio = 0.5 or StoryBoard.SetSpeedRatio(this.animationObject.Child as FrameworkElement, 0,5)
Nothing of those both works! The Animation has everytime the same length...
When i debug my application and starts the animation and asks for the actual SpeedRatio, .NET says it is "1", so ... how do i change that?
|
|
|
|
|
softwarejaeger wrote: StoryBoard.SetSpeedRatio(this.animationObject.Child as FrameworkElement, 0,5)
Couldn't find this overload with 3 parameters ?
Documentation[^] mentions containingObject to be "The object specified when the Begin method was called. This object contains the Clock objects that were created for this storyboard and its children. " Have you considered that ?
See here[^], might be of some interest
|
|
|
|
|
Hi,
I want to implement TV tuner component in WPF application.
Please if any one have idea how to do this please reply me.
Thanks in advance
|
|
|
|
|
Sorry. Please ask WPF question in this forum[^]. Thank you!
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
Microsoft MVP (Silverlight), WPF/Silverlight Insiders
|
|
|
|
|
Hi,
I am working on a silver light application. In this I have to display weather report i.e., weather forecast in my silver light application. In this we should have an option to display the weather report of any location that we select.
If any one have any idea how to solve this please reply me.
Thanks in advance.
|
|
|
|
|
What part are you having trouble with?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I developed a silverlight2.0 application. In this I have to open a web page from a silver light page like we open a web page using a web browser control.
I tried with
Browser.HtmlPage.Navigate("http://www.microsoft.com")
System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("urlString"));
HtmlPage.Window.Navigate(new Uri("http://localhost:1780/MusicAlbum.aspx"));
but didn't worked in my application
If any one have any idea on this please reply me.
Thanks in advance.
|
|
|
|