silverlight

Anamorphic video with silverlight?

hi, currently I'm trying to make a silverlight application for my application. The question on hand is that is it possible, and how, to display anamorphic video. the main purpose of this is to save bitrate per frame. for example, anamorphic for 848x480 is -> 720x480, or anamorphic for 1080 is 1440x1080, which later resize to 1920x1080. ...

Silverlight custom class & Name attribute

Just sample of behavior: namespace XAMLParserBug { public class MyCustomClass { public int ID { get; set; } public string Name { get; set; } } } then use it in XAML: <UserControl x:Class="XAMLParserBug.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.mic...

Problem Saving Silverlight 4 Business Application

I’m trying to create a new project using the Silverlight 4 business application template in Visual Studio 2010 beta 2. When I click “Save All” after the project is created I get build errors such as: The project file "..\BusinessApplication1.Web\BusinessApplication1.Web.vbproj" was not found. BusinessApplication1 Unable to open modul...

Question on how to create WCF silverlight 3 endpoints.

I wanted to consume a WCF service with a silverlight application and a asp.net mvc application, and I'm having difficulties to configure the service to support both requests. these are my endpoints for the WCF config file. <service behaviorConfiguration="behaviorAction" name="Uniarchitecture.ProdutoService.ServiceImplementations.Prod...

Since Silverlight 4 can read files on local machine, could it access a SDF file?

I see in some of the SL literature that SL4 (and possibly older versions) allow for file access on the local machine. Would it be possible, then, to install SQL Server Compact on the client machine, and have an SDF file that the Silverlight app could read? Or I guess, rather, have the Silverlight app talk to a .Net DLL that's reading...

Computing duration WITHOUT DateTime.UtcNow

Hi, I need to calculate how much time has passed from one state to another in Silverlight 3.0. it is most common to do: DateTime Start = DateTime.UtcNow; . . . DateTime End = DateTime.UtcNow; TimeSpan Duration = End - Start; BUT, this doesn't cover a case were the user changed the computer time. Is there a way to get the same effect...

How do you store an image in a Silverlight 3 custom control ?

Hi, I have created a custom control that will have a bitmap image in it. My project structure is: Solution ProjectName Resources Actor.png The XAML I am using is: <Image x:Name="ActorBitmap" Source="ProjectName;component/Resources/Actor.png /> However, this is not working. I have the build options on the ...

Is there a list of Attribute classes that can be applied to a DependencyProperty?

I'm working on a problem that seems like it might be solved by applying an Attribute to the DependencyProperty. I got curious and I can't find documentation that lists all the XXXAttribute classes that apply to DependencyProperties and what the attributes are used for. Does anyone know of anything like that? If not, maybe post some at...

Entity Framework in Silverlight - many procedures or one universal?

Hi, I'm trying to write an silverlight app which operates on database through a web service. For now I don't know how many tables will be in the database but I think it will be about 25. Every insert,update,delete on the database should be overriden by my algorithms but almost the same for every table. a) If I insert data as a result I ...

Silverlight DataStateBehavior, initial value not used

Hi, I am trying to use the Silverlight DataStateBehavior, it works fine in most cases where I click a button which sets say a 'Selected' Property in the view model to either false or true. The DataStateBehavior then tells the VisualStateManager to go to the relevant state. Like this: <Button...> <i:Interaction.Behaviors> ...

Silverlight Confirm Dialog to Pause Thread

I'm trying to do a confirmation dialog using Silverlight's ChildWindow object. Ideally, I'd like it to work like MessageBox.Show(), where the entire application halts until an input is received from the user. For example: for(int i=0;i<5;i++) { if (i==3 && MessageBox.Show("Exit early?", "Iterator", MessageBoxButton.OKCancel) == Mess...

Silverlight MVVM Where to start

My company is making a big push to silverlight and I am getting everything laid out for this push. I am investigating Prism and MVVM in Silverlight. Is this the best way to go. Anyone know any good END to END Tutorials on MVVM in Silverlight. Thanks ...

How to enlarge a button in Silverlight?

In a Silverlight app, I'd like my buttons to enlarge by a few pixels when the mouse is hovering over them. I'd also like it to animate to the new size, rather than just suddenly becoming larger. How can I accomplish this in XAML? ...

Data Binding with Silverlight accordion Control

Hi I have Silverlight Accordion control in the ChildWindow and I customized it the following way <Style x:Key=itemStyle TargetType=AccordionItem> <Setter Porperty=HeaderTemplate> <DataTemplate> <TextBlock x:Name=_headertext/> </DataTemplate> </Setter> </Style> <Accordion Style"{StaticResource itemStyle}"> <Accordi...

OpenFileDialog() locks the folder

I use OpenFileDialog() in my Silverlight application. When I select a file using ShowDialog() it simply locks the file until I close my application. I am not able to rename or delete the folder when the application is running (silverlight application in browser) If I try to select any other file in any another folder, I am able to ren...

Flash or Silverlight for RIA Apps?

What would be the best for developing rich internet applications? FLASH or Microsoft Silverlight? ...

How can I center align the content of a header template for a Silverlight 3 datagrid?

Hi, I would like a checkbox in the header of my datagrid, however, I can't seem to center align the checkbox. This is my xaml: <data:DataGrid x:Name="myDataGrid" VerticalAlignment="Top" Width="300" Grid.Column="0" AutoGenerateColumns="False"> <data:DataGrid.Columns> <data:DataGridCheckBoxColumn Binding="{Bin...

Problems with checkboxes in Datagrids

Hello, I am having some trouble with CheckBoxes in a DataGrid. The CheckBoxes are not bound to the entities that are populating the datagrid because there isn't a property on the entities for it. Basically what I am trying to do is when I check a CheckBox I add the ID of the item in that row to a list to be returned. The problem I am ha...

Silverlight - partial or progressive loading large images for thumbnails?

Hello, I have some large images (in MB's) that I would like to view as thumbnails quickly (in KB's). I would like to avoid storing 2 images on the server (one for the large image and one for the thumbnail). The images are stored with Azure blobs I've looked into deepzoom it doesn't seem to handle dynamic images. EDIT: The content ty...

Accessing the WebContext class in XAML

The generated App.xaml.cs file contains this private void Application_Startup(object sender, StartupEventArgs e) { // This will enable you to bind controls in XAML files to WebContext.Current // properties this.Resources.Add("WebContext", WebContext.Current); but I cannot figure out how to refer to this object. It seems like I o...