silverlight

Add Service Reference not appearing

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-07 10:16:35
问题 In a Windows Phone 7 Silverlight project, I had a service reference to a WCF service. This morning when I opened up the project, suddenly the namespaces for my WCF service were unknown. The option for "Update Service Reference" in Solution Explorer was not there, so I deleted the Service Reference with the intent of re-adding it. But the option for "Add Service Reference" is also not there. Gone. Disappeared. Closed and re-opened the solution. Restarted VS2010 Ultimate. No dice. Anyone run

Add Service Reference not appearing

时光毁灭记忆、已成空白 提交于 2021-02-07 10:15:25
问题 In a Windows Phone 7 Silverlight project, I had a service reference to a WCF service. This morning when I opened up the project, suddenly the namespaces for my WCF service were unknown. The option for "Update Service Reference" in Solution Explorer was not there, so I deleted the Service Reference with the intent of re-adding it. But the option for "Add Service Reference" is also not there. Gone. Disappeared. Closed and re-opened the solution. Restarted VS2010 Ultimate. No dice. Anyone run

WCF behind a public reverse proxy which is used for traffic encryption

北城余情 提交于 2021-02-07 06:47:14
问题 I have a Silverlight application that connects to a WCF service. Under the basic configuration I am used to, there's no problem connecting this application to its corresponding WCF service. However, recently, one of my clients started using an Apache reverse proxy. This proxy is the public server and it's only used to encrypt HTTP traffic via SSL (HTTPS) going between the client and it. This proxy passes all traffic from it to the actual web server that hosts my application. The traffic

XAML binding against Auto-Implemented properties?

我只是一个虾纸丫 提交于 2021-02-04 21:05:55
问题 Is it possible to using XAML data binding to a model with Auto-Implemented properties? class ClassA { // pseudo code. int Width { get; set{ NotifyPropertyChange("Width");} } } //XAML <textBox width="{Binding Path=Width,Mode=OneWay}"/> 回答1: Auto-properties don't have a half auto mode. It needs to either be an auto-property with nothing extra: int Width { get; set; } or a fully expanded property with a backing store that can have additional code added to it, like change notification: int _width

XAML binding against Auto-Implemented properties?

我只是一个虾纸丫 提交于 2021-02-04 20:59:02
问题 Is it possible to using XAML data binding to a model with Auto-Implemented properties? class ClassA { // pseudo code. int Width { get; set{ NotifyPropertyChange("Width");} } } //XAML <textBox width="{Binding Path=Width,Mode=OneWay}"/> 回答1: Auto-properties don't have a half auto mode. It needs to either be an auto-property with nothing extra: int Width { get; set; } or a fully expanded property with a backing store that can have additional code added to it, like change notification: int _width

Silverlight TextBlock Binding to SelectedItem in ComboBox

谁都会走 提交于 2021-01-29 07:01:16
问题 I have a ComboBox that is bound to a collection of CLR objects. Each item in the ComboBox is displayed via a DataTemplate. This DataTemplate contains an Image and a Title associated with the item. After a user clicks an item in the ComboBox, I want to display the selected items Title in another TextBlock in the screen. My question is, how do I bind the Text property of the TextBlock to the Title property of the item selected in the comboBox? Thank you! 回答1: Assuming you called the ComboBox

How to achieve click event via dependency property in silverlight?

廉价感情. 提交于 2021-01-28 06:15:36
问题 I'm fairly new to the world of Silverlight so please bear with me. I have created a custom pivot item control to be displayed in a pivot control. Now in this custom control there's a button. Now i could just add the click event handler to the button in the custom control's backing cs file and that would be ok. But is there a way for me to specify the event handler of the custom control's button during the declaration of the custom control? i.e. something like this in my pivot_page.xaml

Silverlight 5 clientaccesspolicy.xml

こ雲淡風輕ζ 提交于 2021-01-27 21:28:23
问题 I have a Silverlight 5 app that is making requests to a WCF data service over HTTPS on a separate domain (server) hosted via IIS 6 (at say mydomain.com/service.svc). The silverlight app gets a SecurityException, which I assume is related to not finding a proper clientaccesspolicy.xml file. I have a clientaccesspolicy.xml file defined at mydomain.com's wwwroot folder that looks like <?xml version="1.0" encoding="utf-8"?> <access-policy> <cross-domain-access> <policy> <allow-from http-request

How does WPF determine what property to set when setting the content of elements in XAML?

一个人想着一个人 提交于 2021-01-27 14:16:57
问题 I hope my title is clear.... What I mean is for exmaple when we define animation: Xaml: <StoryBoard> <DoubleAnimation..../> </StoryBoard> But if we defines same thing in code-behind, we could do: DoubleAnimation myDAnimation = new DoubleAnimation(); ..... StoryBoard myStoryBoard = new StoryBoard(); myStoryBoard.Children.Add(myDAnimation); I tried to look into StoryBoard's class definition, nothing special: public sealed class Storyboard : Timeline { public Storyboard(); // Summary: // Gets

Manually add rows in WPF DataGrid

折月煮酒 提交于 2021-01-27 04:06:52
问题 I have the following XAML Code: <sdk:DataGrid Margin="58,8,52,18" Name="dataGridTickets"> <sdk:DataGrid.Columns> <sdk:DataGridTextColumn x:Name="ticketNoColumn" Header="Ticket No." IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatRowColumn" Header="Seat Row" IsReadOnly="True" Width="SizeToHeader"/> <sdk:DataGridTextColumn x:Name="seatNumberColumn" Header="Seat Number" IsReadOnly="True" Width="SizeToHeader"/> </sdk:DataGrid.Columns> </sdk:DataGrid> I would like to