silverlight

XAML Binding to static classes [duplicate]

限于喜欢 提交于 2020-01-17 04:47:18
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Accessing static fields in XAML I have one static class with two static properties inside. For example: public static class myStaticClass { public static A a; public static B b; } public class A { public ObservableCollection<Person> persons; public struct Person { private string mame; public string Name { get; set; } } } public class B { public ObservableCollection<Coord> coords; public struct Coord { private

Silverlight Datagrid Block Selection

社会主义新天地 提交于 2020-01-17 04:17:07
问题 We're trying to add "block select" to the Silverlight DataGrid control: The user should be able to select, for example, a rectangle of cells from ( col 4, row 5 ) to ( col 6, row 8 ). What we're doing is saving the two corners of the selection, and indicating it visually by setting the background color of the cells. We've run into trouble with scrolling, because the cell objects are recycled, along with their formatting. So you scroll up, and as the selected cells vanish off the bottom, bars

Textbox only displays content when the row is in edit mode

痴心易碎 提交于 2020-01-17 03:38:27
问题 I have done every thing I can think of, but the textbox just does not display the values. Where is my mistake? <dxg:GridColumn FieldName="secUserName" Header="TRAIL"> <dxg:GridColumn.DisplayTemplate> <ControlTemplate> <StackPanel> <TextBox Text="{Binding Path=Data.secUserName, Mode=TwoWay}" ></TextBox> </StackPanel> </ControlTemplate> </dxg:GridColumn.DisplayTemplate> and in vb '<!-- load the datagrid --> Module1._Context.Load(Module1._Context.GetGESECsQuery()) GridControl1

silverlight 4 with java service

有些话、适合烂在心里 提交于 2020-01-17 03:33:04
问题 i intent to replace wcf service with some java service . how should i design my wcf service such that it's gets replaced or can be replaced with the java service later such that i dont have to do any work or very little work on the client i.e on my silver light application . any idea's / suggestions? P.S 1. that is the reason i am not using RIA services. 2.my wcf service should work like wcf data services work. it should allow me to do CRUD operations on my entities. 回答1: Create java services

can i use a generic list in a WCF called from silverlight?

折月煮酒 提交于 2020-01-17 03:26:19
问题 when i return a generic List of my custom object in a wcf service, silverlight gives me this error when i update my service reference (and the reference.cs file is completely blank) ugly ones like this: Warning 18 Custom tool warning: Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='']/wsdl:portType[@name='Service1'] XPath to Error Source: //wsdl:definitions[

which language set for NeutralResourcesLanguageAttribute?

∥☆過路亽.° 提交于 2020-01-16 19:30:13
问题 i am developing arabic and urdu app(in same application) so which language i set for NeutralResourcesLanguageAttribute(in assemble info page). 回答1: A Visual Studio project will generally have: Neutral resource files (e.g. MyResources.resx) that are compiled into the main assembly ( MyAssembly.dll ) Culture-specific resource files (e.g. MyResources.de-DE.resx) that are compiled into a satellite assembly in a culture-specific subfolder (e.g. de-DE/MyAssembly.Resources.dll ). You should set

Getting to certain member using datapager and datagrid

孤人 提交于 2020-01-16 19:12:31
问题 Greetings, I have a DataGrid showing a PagedCollectionView which has the total amount of records included. In total we have about 4220 records, with 20 records showing per page we have about 210 pages. Now I've been trying to implement this: When I search for a person I want to have this person show on top of the page AND have the page set to anything that is near the page it would be on. I managed to get the person on top using the example given in Linq Get items higher then lastname however

alias/ short form of address of silverlight app on hosting

三世轮回 提交于 2020-01-16 18:53:26
问题 I host my Silverlight app in commercial hosting, but to get it I must put in address field in browser all physical path to aspx file ;/ http://netmajor.home.pl/SecretaryAppNav.Web/SecretaryAppNavTestPage.aspx It is some way to configure application that I can write short address of my page ? 回答1: If netmajor.home.pl is under your control, you could simply move a copy of the SecretaryAppNavTestPage.aspx page to the root of your website and rename it to something simpler. Then you could access

Use a embedded Image in a Button Template in Silverlight 4

寵の児 提交于 2020-01-16 18:27:30
问题 I would like to build a Template for my (edit)Buttons in Silverlight 4. Therefore I want to include the Images as a embedded resource. So my question is: How can I use the embedded ressource images in the template for my button? The ControlTemplate (TargetType="Button") is located in one external Ressources.xml. regards Christoph 回答1: In Silverlight you should be using "Resource", never "Embedded Resource" as the build action for resources. The MSDN Reference on Resource Files gives a very

Use a embedded Image in a Button Template in Silverlight 4

若如初见. 提交于 2020-01-16 18:27:08
问题 I would like to build a Template for my (edit)Buttons in Silverlight 4. Therefore I want to include the Images as a embedded resource. So my question is: How can I use the embedded ressource images in the template for my button? The ControlTemplate (TargetType="Button") is located in one external Ressources.xml. regards Christoph 回答1: In Silverlight you should be using "Resource", never "Embedded Resource" as the build action for resources. The MSDN Reference on Resource Files gives a very