-
- Multliline TextBlock content from resx file
by Lossandra
- 2 Replies
- Last post
by Lossandra
- I'm working on a project where we would like to store texts for user messages and the like in resx files for internalization. Now I want to display this text in a textblock, but format it (i.e. insert line breaks). In XAML without resources this is about what I'd like to have:
Code Snippet
<TextBlock TextWrapping="Wrap"> Line1 <LineBreak/> Line2 &
-
- Drag and Drop between two similar listboxes?
by DiamonDogX
- 8 Replies
- Last post
by DiamonDogX
- Hi. I have two ListBoxes, each using the same data template (the data template is defined so that the list box contains images). One listbox is bound to an ObservableCollection of images. I would like to be able to drag items from one listbox to another (or to another panel perhaps) so that the other listbox now contains the item I dropped onto it. I've looked at some samples... can't seem to even
-
- Best way to create Expression Trees
by Michael_Giagnocavo
- 1 Replies
- Last post
by Matt Warren - MSFT
- Given a simple expression like Expression<Func<int,int>> calcSomething;
How can I easily do a query:
db.Customers.Where(c => calcSomething(c.SomeInt) > 10)
It appears as if the compiler provides nothing to help out here, and that we have to go manually create Expression Trees. Is this so, and why
-
- Direct links for downloading C# 2008 express edition
by jaime_olivares
- 3 Replies
- Last post
by Salem AL-kazimi
- I am trying to download the VS 2008 Express Edition images but I have a bad internet connection, so downloading is interrumpted after completing the 400 Mb image.
The link provided (like http://go.microsoft.com/fwlink/ linkid=95601 for C# 2008 EE) is not the real link, so I cannot use an ftp program to download it and continue downloading after an error.
I remember I got somewhere in Interne
-
- Inheritance and DataContracts
by Bravo2007
- 1 Replies
- Last post
by Dwight Goins
- hi,
I am working on a service migration from ASMX to WCF. The business logic is being used by multiple internal and external systems and same is being used by ASMX webservice to expose the functionality.
One of the web method is taking a type that is serializable but it is a base class of multiple inherited types. I am not sure what is best way to migrate this to data contract.
-
- ControlTemplate problem
by Hollix
- 2 Replies
- Last post
by Varsha Mahadevan - MSFT
- Hello I designed a little control template like this .... <ControlTemplate TargetType="Button"> <Border x:Name="Bord" CornerRadius="2" BorderThickness="1" BorderBrush="DarkGray"> <Border.Background> <LinearGradientBrush StartPoint="0 0" EndPoint="0 1"> <GradientS
-
- Problem creating proxy for java webservice with svcutil
by msteinle
- 6 Replies
- Last post
by msteinle
- Hello, I tried to create a proxy for a java web service using svcutil.exe. Svcutil.exe fails with the message Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter Error: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. XPath to Error Source: //wsdl:definition
-
- WsHttpBinding and Custom UserNamePasswordValidator Timeout issue on bad credentials.
by mboltuc
- 4 Replies
- Last post
by mboltuc
- I am in the process of writing a WCF web service that uses WsHttpBinding with a Custom UserNamePasswordValidator and am running into TimeOutExceptions when I pass bad credentials. Using the service trace viewer, it shows that 5 exceptions get thrown at 10 sec. intervals. The 5 exceptions appear to be identical and indicate "Message security verification failed." as the exception message.
-
- Same DataContract in more than one service
by Sam Andy
- 12 Replies
- Last post
by Christian Weyer
- I have two services,each of them has DataContract1. this DataContract will be returned from one service and then be an input to the other service.
for example.
Service1.DataContract1 x = new Service1.DataContract1();
x = Service1.MyOperation(something)
then x will be passed to an operation to another service
Service2.MyOperation(x).
the problem is that the two data
-
- XAML as content.
by billyzelsnack
- 3 Replies
- Last post
by Drew Marsh
- I have a listbox I am using for a simple file picker. Each item can have one of 3 images (folder, file, back button). Currently I am using png's for these images, but I would like to use actual XAML files exported from Design for these instead. What's the best way to go about doing this
-
- English Program is Partly in Japanese. How can I fix it?
by K25125
- 2 Replies
- Last post
by MarcHuls
- I have made (copy, pasted, and edited) this program. It is broken. Please Help Me Fix it. Please So it has The Following: Main.c
Code Snippet
#include <windows.h>
#include "menu.h"
#include "edit.h"
const char g_szClassName[] = "myWindowClass" ;
BOOL LoadTextFileToEdit(HWND hEdit, LPCTSTR pszFileName)
{
HANDLE hFile
-
- Any update on the final release date?
by AndrewBadera
- 2 Replies
- Last post
by Bret Grinslade
- I've been hearing Q3 or Q4 of 07 for months now ... has that changed at all
-
- Custom ServiceHost
by zuninet
- 5 Replies
- Last post
by JDPeckham
- We've built a custom servicehost for use in an IoC container (Castle), which works quite well. The issue we're trying to solve now is how to have the configuration loaded for the service. It's easy enough to hard code the bindings and endpoints in a class and start our custom ServiceHost. What we would like to do is have either an external config.xml file or possibly just throw the service config
-
- How to monitor SOAP message from WCF?
by Kitty Cute
- 5 Replies
- Last post
by Allan-Nielsen
- Hi All,
I am a newbie in WCF.
I have tried to get SOAP message using TCP monitoring tools, but it failed. I used that tools as intermediary. The client has to point to the intermediary rather than the original endpoint in order to monitor the messages.
But it's raised an Error :
"The message with To 'http://localhost:8888/Calculator' cannot be processed at the receiver, due to an
-
- How to close the window form when i press Esc Key
by S.John Hawkins
- 14 Replies
- Last post
by Tor Langlo
- Hi all,
I want to close the window form when i press Esc Key..
How can i do it ..
Waiting for the replies..
THanks,
S.John Hawkins.
-
- BadImageFormatException in System.ServiceModel
by Dirk Reske
- 2 Replies
- Last post
by Kala
- Hello,
I've created a wcf service (hosted in IIS) with VS "Orcas" March 2007 CTP on Windows Vista Business.
All works fine...
Now I want to run the Project on Windows XP (also in Orcas) and when I invoke the first method on the service I get a BadImageFormatException
Details:
Data:{System.Collections.ListDictionaryInternal}
Source: System.ServiceModel
StackTr
-
- Error in loading the serialized canvas object
by Dhruvesh
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- Hi,
I'm getting an error while loading a serialized object of canvas.
I have a WPF window on which user can create UI objects at runtime by drag-drop operation.
I have a Canvas object created by drag-drop operation. This canvas has few child controls.
It is then serialized using XAMLWriter.Save method.
While deserializing the same canvas object, following error comes
-
- How to show a SystemMenu on my titlebar?
by solomansdl
- 2 Replies
- Last post
by solomansdl
- I need to add a button to titlebar,so I override it,but i want to use SystemMenu when i click MouseRightButton on titlebar as a normal window, I handle a event of MouseRightButtonDown on the titlebar,and import windows API [user32.dll],but i do not konw how to show the SystemMenu,I am waiting for your help......
titleBar.MouseRightButtonDown +=new MouseButtonEventHandler(OnTitleBarRightButt
-
- Drag on control to increase or decrease value?
by DiamonDogX
- 6 Replies
- Last post
by lee d
- I forgot what the term for this is... you see it in applications such as Photoshop and Blend. When I drag on the opacity, width, height buttons for example in Blend it increases or decreases the value. Anything like this been done in WPF
-
- Generating client proxy for msmq service
by Kirk Lipscomb
- 14 Replies
- Last post
by Kirk Lipscomb
- I am struggling with svcutil (or "Add Service Reference") usage on a msmq service. I see examples with two endpoints, one for net.msmq and one for mex. When I try this, then hit the service.svc using a browser, I get an error of: "The protocol 'net.msmq' is not supported".
What is the best way to expose the metadata on an MSMQ service so that I can generate the code that I n
-
- wsdl and load balanced environment
by jvshore
- 4 Replies
- Last post
by Christian Weyer
- Considering that the wsdl document is produced automatically by appending wsdl to the .svc file, does load balancing affect this wsdl generation In other words, the wsdl is created automatically and uses the machine name for the import schemaLocation. In a load balanced environment this machine name will be different for the different nodes in the load balanced configuration. Is there any way to f
-
- XamlWriter How to serialize Generic class ?
by Zohrab Broyan
- 5 Replies
- Last post
by Marco Zhou - MSFT
- Hi Everyone,
I know Xaml has limited support of generic types, but I've found some workaround on Mike Hillberg's blog ( http://blogs.msdn.com/mikehillberg/archive/2006/10/06/LimitedGenericsSupportInXaml.aspx ). There's a way to instantiate generic classes using Markup Extensions. But I couldn't find a way to Serialize generic classes using XamlWriter. It throws InvalidOperationException say
-
- How do I get the base table from an EntitySet (or EntitySetBindingList) in order to delete a record?
by The_Tourist_
- 2 Replies
- Last post
by The_Tourist_
- Since deleting an item of an EntitySet will only remove it's association (by setting the primary key to null), I need to delete items from it's base Table to actually delete them. But how do I generically determine the base table from an EntitySetBindingList
-
- Automatic windows service self-hosting a WCF service hangs on ServiceHost.Open
by bderemer
- 2 Replies
- Last post
by bderemer
- Is anyone aware of any problems self-hosting WCF services using an automatic windows service If we set it to manual, so a user has to log in, then everything is fine. But if we set it to automatic, the ServiceHost.Open call hangs and eventually times out when the machine is restarted.
We have a WCF service that is self-hosted in an automatic windows service. When the machine starts the fir
-
- Setter Enumeration problem ...
by Euclidez
- 2 Replies
- Last post
by Euclidez
- Hello, may be one of you could help me with this. I've a Figure styleand I want to assign the VerticalAnchor property. The value is an enumeration value. My problem is the assignation of a enummeration value to a property in the setter. The exception tell me that it can't convert to the FigureVerticalAnchor type
< Style TargetType = " {x:Type Figure} " x:Key = " styleFig