I’ve got a Silverlight 3 DataForm which is adding some odd padding to the DataTemplate. Using Silverlight Spy to inspect the XAML output, it looks like there’s a ContentPresenter with a margin of 12, 12, 6, 12 which then contains the contents of the DataTemplate. This means there's always padding in the form which is not ideal for my sit...
Hi,
I am trying to databind the color of a RadialGradientBrush in silverlight 3 to a property, but just can't seem to get it to work.
For example, in a sample test app all I have is
<navigation:Page x:Class="SilverlightNavigator.HomePage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
x:Name="HomePageUC"
x...
how to display data horizontally in a list box. I had used the properties for reading data from the text box and i have to display these multiple data in to a list box (in one line, horizontally) . my code is shown below..
private void SaveButton_Click(object sender, RoutedEventArgs e)
{
LoadData();
}
private void Lo...
Hello everyone,
I am using the following html scripts to embed images, text and video into one page. For video, I am using sl2videoplayer to render it (an open source silverlight media player). Here is the project's URL => http://sl2videoplayer.codeplex.com/.
The current issue is, only the top part of video could be displayed. I think ...
Hi I have a silverlight web app, in the default.aspx there is nothing but when I change the silverlight XAML file, and load the main page it launches the silverlight changes into the default.aspx by itself. How does it know to do this? Is it something to do with the html file? I noted the html file has an object tag pointing to the silve...
I am still trying to solve the issue of displaying an image on a website without having the image external. As the data: scheme does not work on older browsers or big images, I'm currently experimenting with Silverlight.
I managed to solve the embedding by Base64 Encoding the Image and passing it in using the InitParams, but actually I ...
I'm looking for code or a good control to preview PDFs and PPTs with Silverlight or Flash. It would be great if it has nice page-curl functionality.
We want our customers to be able to have a look at their reports in a spiffy way.
...
In Visual Studio 2008 when I open a XAML file from the project it displays the horizontal split with the preview on the top, and the XAML on the bottom. Most of the time our XAML won't render in the preview, so I just have to wait for it to try to render, and then close the preview.
Is there a way to have it default to not showing th...
I need to know how to open a TCP socket connection from Silverlight. How is it done?
...
I have a ScrollViewer which contains a Grid with multiple controls in it. The user can tab through the controls, but eventually they tab to a control that isn't in view - so they have to manully scroll to make the control visible again.
Is there any way to make the ScrollViewer scroll automatically so that the focussed control is always...
I'm trying to determine the version number of my Silverlight application. Currently I am using:
string name = Assembly.GetExecutingAssembly().FullName;
AssemblyName asmName = new AssemblyName(name);
// http://www.dotnet247.com/247reference/msgs/45/225355.aspx
string versionNo = "Version: " + asmName.Vers...
I am using WPF and Silverlight BookControls by Mitsu
http://www.codeplex.com/wpfbookcontrol
The WPF example alows that every page in the book to be a XAML file, but the Silverlight example dont.
Is there a way load a XAML in every book page in the Silverlight example ?
...
I have a silverlight control on a page where I need to change the style of the body to overflow = "hidden", and then revert the style to overflow="auto"
Whenever the overflow style property changes, the silverlight control restarts, losing all data, and operations in progress!!!!
Happens in firefox NOT safari. Have not tried IE yet.
...
Hi all!
I have created a Canvas, and within it I placed a StackPanel. The StackPanel is horizontal, and it accepts a list of thumbnailed images. The Canvas has a fixed size. When I put more thumbnails than the Canvas width can hold, the StackPanel is supposed to overflow from the Canvas, so I can move it to center the current thumbnail....
I am looking for a tutorial or an example using Silverlight, in any version, which addresses a model that I typically use in business applications. It is an invoice type of page where there is header information (say invoice number, date, customer) as well as a datagrid type of control showing things like quantity, price, part number, d...
I am developing a timeline display of data in a Silverlight application. In the first version it was fixed to a 24 hour period and I was able to easily create a static timescale using grids, borders, lines and text blocks. I now need to make the period displayed variable so the user might select a period of a year or more to get an overa...
I've developed a Silverlight client that has worked fine on regular HTTP, but now that I'm trying to get it to work on SSL, I'm getting the following error:
An error occurred while trying to make a request to URI [URL removed for security] This could be due to attempting to access a service in a cross-domain way without a proper cross-d...
What are the pros/cons to using CTP technology for internal production softtware? By internal production I mean it's software we're not selling to anyone else but will be used by a large number of internal employees spread nationally.
I can see the obvious plusses (features and functionality that beats existing systems) and minuses (bu...
Hi,
I have a Silverlight app with a canvas with some ellipes in it. I have another canvas below it with no elements.
What I want to do is, when I click in the first cancas, I want to copy the contents of the first canvas and zoom in where I clicked my mouse and show it in the second canvas.
I want functionality like Local Connection g...
I'm having some trouble styling a custom control that I built. Here's the control source:
namespace SilverlightStyleTest
{
public class AnotherControl: TextBox
{
public string MyProperty { get; set; }
}
}
In the same namespace & project I try to create a style with a setter for MyProperty like so:
<UserControl x:...