Advanced Forum Search Results
-
Take a look at setting the HorizontalAlignment to stretch, probably on the stackpanel and the textbox. Also, to get the canvas width at runtime try using the ActualWidth property in code instead of width, it should give you what you want.
-
With Silverlight (or WPF) you need to change the way you think about positioning controls. There are numerous ways to accomplish what you describe above, depending on the app you are building and, a bit, on personal style.
One approach would be to put both the Button and the Textbox inside a StackPanel and just position the stackpanel. that way ...
-
No problem. What you need to do is use Fill for the line itself and Stroke and StrokeThickness for your clickable region.
-
Here's a simple post on downloading a file from a server and then saving it to the client. It uses a .txt file but the same process would apply to all files. I've used this same approach for .jpg files from the server.
[EDIT] forgot to post the link: http://www.silverlightshow.net/items/Using-the-SaveFileDialog-in-Silverlight-3.aspx
-
Personally I perfer to use them both. XAML is great at defining the UI, C# is great for logic / business rules etc. It is incredibly rare for me to use one much more than the other.
-
Have you tried the Stroke property on the path? It should give you what you are looking for.
-
Wow, that's quite a full question :), probably too much to cover in a single forum post, but I'll see if I can point you in the right direction.
First off, not everything you mention makes sense to convert ot Silverlight. Silverlihgt is a client-side only technology so things like database access, user tracking and sending email are ...
-
That is absolutely possible. There are a number of ways to accomplish this but I'd recommend checking out this post, it will probably show you what you need: http://channel9.msdn.com/continuum/tutorials/ProceduralAnimation/
-
Not to sound like an architect but, "it depends" :). Basically, it's a best practice in Silverlight to make your visual elements into objects that are as close to their purpose as possible. So if your control is meant to be a button (i.e. clickable to initiate action) then it should be a skinned button but if it is just a pretty ...
-
There are a couple things you can do but the main issue is that by default the test page that is created has the height and width set to 100%. Just change those setting to whatever you want your app to be and you should be good.
The other thing you are running into is you must not have a height and/or width set on your main control. It probably ...