2
голосов
3ответов
1991 просмотров

Отсутствует событие выгрузки в Silverlight 2

В Silverlight 2 отсутствует событие выгрузки для UserControl.Кто-нибудь реализовал обходной путь для этого?

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

Интеграция Silverlight в страницу aspx

Как мы можем добавить проект silverlight на страницу aspx.Я создал один проект цифровых часов в silverlight.Но я не знаю, как интегрироваться со страницей aspx. Заранее спасибо ..

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

HttpWebRequest для SLL Uri в Silverlight 2.0

Как мне это сделать?Похоже, SilverLight 2.0 HttpWebRequest не позволяет вам устанавливать учетные данные или заголовок авторизации.

5
голосов
5ответов
6085 просмотров

Silverlight 3 - Положение привязки данных прямоугольника на холсте

В настоящее время я пытаюсь привязать коллекцию объектов к Canvas в Silverlight 3 с помощью ItemsControl, как показано ниже: <ItemsControl x:Name="ctrl" ItemsSource="{Binding myObjectsCollection}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Ca...

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...

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

Start Storyboard When Text Changes

I have a TextBlock bound to a property on my view model. I have a StoryBoard with fades the text in and out using the Opacity property. I am using this text to give the user feedback after they have performed an operation(success, error etc). How can I start the StoryBoard when the property chang...

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

Double Click Event

How to make a double click event in C# for using Silverlight3.0. In my project, i had created stackpanel dynamically, When the user double click on the stackpanel, the child window will be displayed. There is no such event in silverlight. How to make a double click event for my application?

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

Silverlight - Good for Internet Business Application?

I've heard the comment several times, once in one of Shawn Wildermuth's podcasts, that Silverlight is great, but might not be so good for 'entire' internet applications. This comment never get's amplified, but the implication seems to be that you would use Silverlight in conjunction with standar...

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

Using .NET 2.0 class library from Silverlight WCF service, public properties remain unexposed

Here's a bit subtle issue I'm dealing with, and would appreciate any help. We have our project on production mode, built with .NET 2.0. We have recently developed a Silverlight application external to the 2.0 solution, and it's "speaking" with a WCF service. This service consumes DLLs we copy fr...

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

Silverlight exception not being handled with JS

I am debugging Silverlight 2 on Firefox. I get an unhandled error in firebug: Unhandled Error in Silverlight 2 Application Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.GetValue(INativeCoreTy...

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

Simpler Explanation of How to Make Call WCF Service without Adding Service Ref

In Understanding WCF Services in Silverlight 2, the author, David Betz, explains how to call a web service without adding a service reference in the client application. I have a couple of weeks experience with WCF, so the article was over my head. In particular, although the author gave a lot ...

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

Silverlight defaultStyle problem

I have the following scenario: Create a new class library project called Lib1 1.1. Add a new control called control1, Themes/generic.xaml file and specify the default style of control1. Create a new class library project called lib2. 2.1.Add a new control called control2, Themes/generic.xaml fi...

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

How do I include specific controls from System.Windows.Controls in my Silverlight app?

Microsoft has a handy reference of the various controls in the System.Windows.Controls namespace and which controls are included in the runtime. For any controls listed here that aren't included in the runtime, you have to include the reference to the System.Windows.Controls assembly and select ...

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

Silverlight checkbox two way binding not working as expected

I have simple issue setting a two-way databinding of a checkbox in Silverlight 3.0. It must be a no-brainer but probably I forgot my brain home today... I defined a Model class to represent my .. 'data'. I implemented the INotifyPropertyChanged interface to enable the UI to see when the data cha...

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

Silverlight 2, Cannot Update Service Ref with New Service

In Silverlight 2, I am attempting to add a new service which will return an object containing two lists from the WCF Service to the Silverlight app on the client. The svc and interface file already contain two contracts which work and are being used. After adding the new service, I click on the ...

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

How can I make an image "jitter"?

I have an image on my silverlight app and I want it to shake a little bit when the mouse is on top. How can I achieve this? I'm really new to silverlight animations. I need it to bounce a bit and tilt from left to right. Can anyone help?

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

How to drag and drop dynamically created controls

How to drag and drop the dynamically created controls my code is shown below Button btnTask = new Button(); btnTask.Content = _myCustomTasks[iCtr].Description; btnTask.Background = _myCustomTasks[iCtr].TaskColor; stackPanel.Children.Add(btnTask); my requirement is to drag and drop these ...

2
голосов
3ответов
1508 просмотров

Validation in Silverlight

how to validate the input form of a silverlight control? I have 3 controls, two out of three are text boxes (For name, and Age), and the remaining one control is date picker. When i hit submit button, the validation should be invoked. how it will done?? thanks in advance.

0
голосов
4ответов
5622 просмотров

How to insert a Combobox value in to a database

How to insert a Combobox value in to a database. When i hit Save button in my application, it will stored stored into database like this way.. System.Windows.Controls.ComboBoxItem What i do for getting correct value of a combo box?

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

Passing value in silverlight

How can pass a value from one page to another page in silverlight. I have one silver light application which contains two pages, one xaml.cs file and one asmx.cs file. I have one text box in xaml page names Text1. My requirement is that at the time of running, i could pass the textbox value to as...

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

HttpWebRequest Issues on file upload

The following code is not working.. The WriteCallback never happens and checking fiddler and also it never POST but does a GET private void Upload() { var ub = new UriBuilder(UploadUrl); Debug.Text += "Requesting " + ub.Uri + "\n"; var webrequest = (HttpWebRequest)WebReq...

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

Silverlight 2.0: Determine if a dependency property is set before changing it

I have a dependency property (Foreground) on a custom control which is inheriting from Control. When I am loading the control, I want to see if the user has set the dependency property or if it is using its default value before I set the value for them. The problem is a bit more complicated the...

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

Possible to Create Project Choosing either Silverlight 3 or 2

On my computer according to 'Add Remove Programs' I have installed: Microsoft Silverlight Microsoft Silverlight 2 SDK Microsoft Silverlight 2 Toolkit July 2009 Microsoft Silverlight 3 SDK Microsoft Silverlight 3 Toolkit July 2009 Microsoft Silverlight 3 Tools for VS 2008 SP1-ENU Whe...

0
голосов
3ответов
1552 просмотров

Save Silverlight DataGrid sort

I have a Silverlight 2.0 DataGrid that contains a list of items that needs to be refreshed in an interval to display the up-to-the-minute information. There are items in this grid that may be added and may be removed while the screen is being displayed to the current user. For Example: If gri...

0
голосов
3ответов
1433 просмотров

XAML page Flip twist

I have this Page.xaml <UserControl x:Class="SLBookDemoApp.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:SLMitsuControls;assembly=SLMitsuControls" Width="800" Height="600" Loaded="UserC...

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

Silverlight insert XAML inside other XAML

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 this Page.xam...

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

display multiple data horizontally

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) { ...

11
голосов
4ответов
3207 просмотров

Best Practice For Location Of Styles In Silverlight

Where is the best place to put Style StaticResources? I have been putting the global and default styles in app.xaml and the page specific styles in page_name.xaml. Should every control have its own style StaticResource? Is it acceptable to put some style attributes right in the control? I have a ...

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

Does Silverlight XAML Support The Byte Data Type?

Here is my data type: using System; namespace UI { public class AddressType { public byte ID { get; set; } public string Name { get; set; } } } Here is my collection: using System.Collections.ObjectModel; namespace UI { public class AddressTypes : Observabl...

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

Silverlight Isolated Storage Settings Being Overwritten by Another Silverlight Application

I have a Silverlight application deployed on both our staging and production servers. This application caches information using isolated storage settings. If I browser to http://stagingserver/pagewithsilverlight.aspx everything works fine, data is stored to isolated storage on my machine jus...