2
голосов
2ответов
5349 просмотров

Intercept Silverlight DatePicker's convert from text to DateTime

I want DatePicker to convert the following text pieces to DateTime (shown in international format) so my customers can write a date in DatePicker textbox faster so it is not just DateTime.Parse I will use: "3" to 2009-10-03 "14" to 2009-10-14 "1403" to 2009-03-14 "140310" to 2010-03-14 "14032010...

0
голосов
2ответов
2452 просмотров

Using Webservice classes in Silverlight when adding service reference instead of web reference

Scenario: I am using Silverlight 3.0 as client for a web service. Design: The server has a class named DeviceInfoService which has the basic functionality of getting the list of devices, getting the properties of devices etc. When I open an ASP.NET project and try to add a web reference, I can fi...

10
голосов
1ответов
10133 просмотров

How do you set CacheMode on an element programmatically?

Silverlight 3 introduced the CacheMode parameter on elements. Currently the only supported format is BitmapCache. In XAML this value can set as the following: <Image CacheMode="BitmapCache" Source="MyImage.png"></Image> I would like to do the same thing at runtime but have failed s...

1
голосов
3ответов
2475 просмотров

RIA Services does not support entities that are decorated by NHibernate mapping attributes?

I'm working on a project where entities are being decorated by NHibernate mapping attributes such as [Property] and [Class]. Unfortunately RIAServices doesn't seem to support most of these attributes, which causes a failure when RIAServices is trying to generate the Silverlight Client Code. When...

0
голосов
1ответов
632 просмотров

Accessing a RenderTransform in a DataTemplate in Silverlight

I've got a bunch of ContentControls with a DataTemplate like so: <DataTemplate> <Canvas> <Canvas.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="1.0" ScaleY="1.0"/> </T...

0
голосов
1ответов
1434 просмотров

Silverlight XAML Binding -- Decimal to Double

I've got some Columns in a DataGridView that have their Binding property set to something like the following: Binding="{Binding NetPrice}" The problem is that this NetPrice field is a Decimal type and I would like to convert it to Double inside the DataGrid. Is there some way to do this?

4
голосов
3ответов
1391 просмотров

How do I see the value of a DependencyProperty in WinDbg?

Using WinDbg and trying to debug a Silverlight application for memory leaks, I come across properties on my objects that are implemented as a DependencyProperty - and when I dump the object in the debugger (WinDbg) I can see the property - that is, I can see the actual static field. How do I see...

2
голосов
1ответов
634 просмотров

How to get resource from referenced assembly?

Suppose I have following projects for silverlight application: MyApp: reference to MyLib MyLib: reference to MyImage MyImage Following code will give me error(can't find out the object): Application.GetResourceStream(new Uri("MyImage;component/myxml.xml", UriKind.Relative)) I need to add refe...

0
голосов
1ответов
285 просмотров

Implementing .Net RIA Services with Silverlight3 using only existing code/classes?

As my latest questions have stated, i am in a process of researching on Silverlight 3 and its application as a suitable RIA solution to a pre-built project a client of ours wishes to webify. And my experience in .Net and silverlight is about 3 - 4 weeks. I have now become aware of .Net RIA Servi...

44
голосов
5ответов
24634 просмотров

Benefits of MVVM over MVC

Finally getting to do some Silverlight development and I came across MVVM. I am familiar with MVC and the article I was reading said because of XAML, MVC would not work out. Not having too much experience in XAML clearly is the reason I did not get this point. Can someone explain why MVC is not ...

1
голосов
1ответов
372 просмотров

Gorgeous Silverlight 'OSX ScreenSaver esque' Animation How-To?

Any ideas How to recreate similar animations to the gorgeous colourful swirly thing on THIS SITE?!?!

5
голосов
2ответов
2062 просмотров

How to write an offline silverlight application?

How to write an offline silverlight application? In which I have a database running on databse server,Application running on application server ,however if user wants to run the application in offline mode then the same ui can be seen to him in offline also all the data stored locally in the file...

0
голосов
1ответов
1321 просмотров

User Control Data Binding in Silverlight/MVVM

Do DependencyPropertys default to two way binding? If not how do you specify? The reason I ask is that I have the following user control which is causing me problems... <UserControl x:Class="SilverlightApplication.UserControls.FormItem_TextBox" xmlns="http://schemas.microsoft.com/winfx/2006...

0
голосов
1ответов
1726 просмотров

Bind to the page datacontext from a combo box in a data grid

I have a page with a view model. I am trying set the binding source of a combo box from a templated DataGrid column to the view model. It gives me a null reference error. This is my XAML: <navigation:Page.Resources> <vm:SiteViewModel x:Key="viewModel" /> </navigation:Page.Res...

1
голосов
1ответов
206 просмотров

Silverlight Child Windows

Is there a way to make a Child Window in Silverlight 3 non-draggable?

2
голосов
1ответов
817 просмотров

Best practices for Domain Service classes in RIA Silverlight projects

I would like to ask whether or not is a good practice, to hold the CRUD operations for business objects, in a single domain service class. Should we provide a domain service class for each BO? ProductDomainService.cs CustomerDomainService.cs ... or a single BusinessObjectDomainService.cs

0
голосов
1ответов
818 просмотров

How to implement a Query with IQueryable in SilverLight

I have two tables customers, pay and want to implement a gridview in silverlight with the outcome of the relationship of these two tables, the query is as follows SELECT Pa.Tipo_Pagare, Pa.Pagare, Pa.Rut, Cli.Nombre FROM Cred_Crexsa.dbo.Pagare AS Pa INNER JOIN Cred_...

2
голосов
1ответов
114 просмотров

Binding to the actual of a UserControl in Silverlight?

Seen some questions on SO but none answers my question. What I want to accomplish: I have a custom control (lets call it A) which moves around the canvas using a storyboard. And I want to bind another custom control's canvas (lets call it B) position onto the first control. Using the Transform...

2
голосов
1ответов
1062 просмотров

WPF/Silverlight Tookit Chart - Bind series to ObservableCollection

Is it possible to have a dynamic number of series for a WPF toolkit line chart? Every example I find declares the series manually. I want to be able to have this type of data: ObservableCollection<ObservableCollection>ChartPoint>> When I add or remove ObservableCollections to the ...

0
голосов
1ответов
242 просмотров

How to use Entity context in entity class for performance?

Suppose I have project MyData, then I add MyDb.edmx with EF wizard. In My database, I have table Person. Then I will get an entity Person in EF model. Then I want to extend this Person by partial class in a separated file person.cs like: namespace MyData { public partial class Person ...

4
голосов
2ответов
1336 просмотров

Recommended architecture for a .NET Facebook Game

What is a good architecture for implementing a real-time, multi-player Silverlight-based game that is intended to integrate and run from Facebook? The idea is to build a Silverlight-based game that uses social network information from Facebook as part of its play environment. Specifically, W...

1
голосов
3ответов
835 просмотров

Hosting a long running process in IIS

I have a design scenario that is giving me a few headaches and I'm wondering what solution is the best solution. I have a dashboard-like application that polls information from a service that requires a java RMI connection to gather real time data. I'd like to implement that dashboard compone...

0
голосов
2ответов
303 просмотров

Differences between Silverlight 2.0 and 3.0

I am migrating a graphics intensive Silverlight application from 2.0 to 3.0 and at the same time evaluating if there are new features in Silverlight it could expose. What features would you suggest are the most important new ones in Silverlight 3.0? I have gone over the Silverlight Wikipedia ar...

0
голосов
1ответов
2208 просмотров

Silverlight datagrid synchronized scrolling

I have two silverlight (2 or 3) datagrids (from the July 2009 Silverlight toolkit) positioned one on top of the other. The top datagrid holds values, the bottom datagrid holds summary values (e.g. total). I want their respective columns to be aligned at all times, even as the user changes the col...

2
голосов
2ответов
750 просмотров

Silverlight 2 Zindex Issue on ASP.NET Page IE6

I Have a Silverlight Menu on a ASP.NET page, on this page bellow the menu there's a Html Table and bellow the table there's a dropdownlist. The silverlight DIV is position: absolute; z-index: 999; The silverlight App is designed with zindex in its elements, is windowless, and background transp...

6
голосов
3ответов
529 просмотров

Can Silverlight communicate with a MIDI instrument?

Can Silverlight communicate with a MIDI instrument connected to the machine running the Silverlight application? In- or out-browser.

0
голосов
2ответов
2192 просмотров

Silverlight PRISM loading an external XAP module

I'm not sure if this is possible, but I am currently loading most of my modules from within the main application assembly, I am trying to now load external XAP modules. I have something like this: ModuleInfo themeModule = new ModuleInfo(); themeModule.ModuleName = "Theme_External"; them...

0
голосов
1ответов
1139 просмотров

Get Identity when calling WCF service from Silverlight app authenticated with Forms auth

I'm doing FormsAuthentivcation, on a Silverlight app. When the SL app calls a WCF service I'm trying to get the authenticated username from within my WCF service like this: ServiceSecurityContext.Current.PrimaryIdentity.Name; or this (unsure of which to use, problem is that both are empty) S...

4
голосов
5ответов
425 просмотров

Can Silverlight do everything Flash can?

I don't know much about multimedia development and am having some trouble comparing Silverlight and Flash in terms of capability. In other words, is there anything that can be accomplished in Flash that cannot be accomplished in Silverlight (and vice-versa)? I'm talking more in terms of graphica...

1
голосов
5ответов
188 просмотров

Switching from Silverlight to Flash for Games - Recommended Reading?

I have been working on some games in Silverlight. However, the community and portal support are still rudimentary at this point. While I expect it to improve over the next couple years, I don't plan to wait around for that. I'm coming from a .Net heavy development background. What would you s...