|
khalil.kamel wrote: what should i know as a prerequisite
Get Started Building Silverlight 3 Applications[^]
And the documentation: Silverlight[^]
khalil.kamel wrote: Should i know WPF
Knowing WPF makes the programming part of Silverlight much easier
but it is not required. If you learn to write Silverlight apps,
learning to write WPF apps will be simpler.
khalil.kamel wrote: Is silver light has alot of post backs on server, which leads to performance issues?
Only if you write code that does postbacks. Silverlight apps run on
the client - Silverlight is NOT ASP.NET.
khalil.kamel wrote: Is it heavy or light?
Huh?
khalil.kamel wrote: Is there any certification on silverlight?
Currently, no, as far as I know. If you go through the
"Read Tim Heuer’s 8-part blog series on getting started"
section at the "Get Started Building Silverlight 3 Applications"
link I posted above, you'll be well on your way.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hi all
i am fresher in silverlight from where should i start to learn Silverlight
which version should i use ?
i have VS 2008 , will it support silverlight programming ???
help really appreciated
thanks in advnace
koolprasad2003
Rating alway..... WELCOME
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: where should i start to learn Silverlight
On the "Get Started" page, of course: Get Started Building Silverlight 3 Applications[^]
The documentation: Silverlight[^]
koolprasad2003 wrote: which version should i use ?
For new development, there's no reason to use anything but the
latest version - Silverlight 3.
koolprasad2003 wrote: i have VS 2008 , will it support silverlight programming ???
Yes. Install all the items on the "Get Started" page I linked to above,
in order, and your development system will be all set for Silverlight
development.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
cheerssss...thankx
Rating alway..... WELCOME
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
|
I'm new to silverlight. My web application "Might" attach to a TCP port that outputs a binary compressed TCP message for my web data. I'm trying to decide if I should
1)parse it in silverlight
or
2)write a middle-ware application that unpacks it and then sends it to my silverlight App.
Thanks for any recommendations.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
earlgraham wrote: My web application "Might" attach to a TCP port
What kind of "web application"?
For example, ASP.NET: Silverlight apps run on the client, ASP.NET code runs on
the server, so how you implement this depends at least in part on where
the code will be running.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Code is running on a client webpage. It streams data to a web user for live updates.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
earlgraham wrote: Code is running on a client webpage. It streams data to a web user
So this code is in the Silverlight application then?
In that case, doing everything in Silverlight seems
the most logical.
I'm curious how you are able to provide a listener socket
in an application running in a browser...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
There is much I don't know about silverlight but there seem to be support for TCP connectivity in silverlight. Here is a good post on it.
http://weblogs.asp.net/mschwarz/archive/2008/03/07/silverlight-2-and-sockets.aspx[^]
My only concern is working through a binary message byte by byte to convert it into my managed code. I know there are several libraries that are not supported by Silverlight, and I hope that I don't get stuck.
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
earlgraham wrote: there seem to be support for TCP connectivity in silverlight
Connecting, yes, but listening for connections?
earlgraham wrote: working through a binary message byte by byte to convert it into my managed code
The BitConverter class is handy for that. For strings,
the Encoding class can help.
Of course, if you're unable to parse and/or decompress the data
from Silverlight code with its limited .NET framework, then you
will probably want to consider serializing the data in a format more
Silverlight-friendly.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
It will not be listening. Only requesting data from a server that hosts the data. Sorry I miss understood.
Yeah its a tough decision, there are several options for me.
1) I can edit the data server, but its an established C++(unmanaged) application. I will have several of the senior programmers grilling me on whether I screwed up anything.
2) I could write an app that uses a different port. Then all my silverlight traffic goes to that port. I convert the data and forward. (this is my preferred approach)
3) OR Convert in the silverlight app.
What fun!!!
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
I suppose option 2 is the most flexible, since you can
re-shape the data and use any transfer/serialization mechanism
available to Silverlight apps.
Have fun!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Can any one give a sample code of how to export datagrid to excel?
|
|
|
|
|
And the journey is complete. This is a clueless post. You can't export a datagrid to Excel. You would export the DATA to Excel, and you'd do that the same way if you were using WPF or not. Ergo, this is not a WPF question and it's one easily answered with a google search.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Is there a way to change alignment of a column within a WPF ListView. I've got a Cell template like the following:
<DataTemplate>
<TextBlock Text="{Binding Path=C1}" HorizontalAlignment="Right">
<DataTemplate>
This doesn't work though because I've got to change the cell container's Horizontal alignment.
Also, when using a ListView.ItemContainerStyle, is it possible to trigger off the column by a name or index? As an example, how would one make the background of a column red from the ItemContainerStyle?
Thanks in advance!
|
|
|
|
|
Are you talking about the content alignment of column cells or the column alignment within the listview?
For content:
I think you may want to use HorizontalContentAlignment="Right".
|
|
|
|
|
On which object do I set HorizontalContentAlignment? The TextBlock doesn't have it. I'm sure the container that the text box is in has it, but how do I reference that object to set the value?
|
|
|
|
|
My mistake, I was thinking TextBox, not TextBlock.
For TextBlock Use: TextAlignment="Right"
|
|
|
|
|
Although, this works if the TextBlock's width is specified, I really want to right align to the ListView's grid column and allow the TextBlock's width to expand or contract with the column.
By specfiying a width to the TextBlock, when the column is expanded beyond the width of the TextBlock, the text though aligned to the right of the TextBlock is not aligned to the right of the column.
I believe that one needs to modify the parent's panel's content alignment; though, how do I manipulate that style. Can I use a trigger within a Control template for the ListBoxItem? If so, how do I switch on the column number so that only specified columns are right aligned?
|
|
|
|
|
If the textblock has Height and Width set to "Auto" it should resize according to the parent, and setting the TextAlignment should be independent of the textblock size. However, I have not messed with the listview control much myself. I prefer the DataGrid provided in the WPF Toolkit. Sorry if this does not help.
|
|
|
|
|
Never used the WPF toolkit, but thanks for the pointer. The DataGrid appears to have a number of features that will make it a much more attractive solution. Thanks for the comment. That's just what I needed.
|
|
|
|
|
Hello
I'm scaling some Polyline s, and for some I want the thickness of the line to follow the scale, works fine by default, but for some I want to keep a fixed pixel width regardless of scale.
Is that possible in some simple way or do I have to calculate the StrokeThickness myself?
thanks in advance
Niklas
|
|
|
|
|
Niklas Lindquist wrote: I'm scaling some Polylines
How are you currently doing this?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Oh, sorry, I'm setting a TransformGroup containing a ScaleTransform and a TranslateTransform , on the Polyline s RenderTransform property.
I managed to recalculate the width, but it adds a lot of overhead in adding a number of event handlers. So I'm still interested in a simpler way to do this.
/Niklas
|
|
|
|