-
- Easy question
by Alexey Lavnikov
- 4 Replies
- Last post
by Alexey Lavnikov
- Hi there,
How to configure WSHttpBinding to use plain HTTP (not HTTPS) and authenticate user using Basic authentication
I use the following code on the client & server side to initialize my binding:
Code Snippet
result = new WSHttpBinding ( SecurityMode .None);
result.Security.Message.ClientCredentialType = MessageCredentialType .None;
result.Security
-
- ListBox - SelectedItem style
by Alan Z
- 4 Replies
- Last post
by TorLanglo
- Hello,
This is probably a basic question, however, I have defined a ListBox as follows:
Code Snippet
< ListBox x : Name ="myListBox" ItemsSource ="{Binding Source={StaticResource myXMLData}, XPath=/People/Person}" Width ="100" Height ="50" Canvas . Left ="10" Canvas . Top ="10" BorderThickness ="1
-
- Exception trying to call service with UserName security
by Paul Arena
- 4 Replies
- Last post
by Todd West
- I've been struggling with this for quite a while, hopefully someone can point me in the right direction. Here's the details of how I have things setup currrently.
**************CERT INFO***********
Created the certs with:
makecert -sk testRootCA -sky signature -sr LocalMachine -n "CN=RootTrustedCA" -ss TRUST -r RootTrustedCA.cer makecert -sk testServer -ss MY -sky exchange -sr L
-
- Is it possible to insert data in to database by Using DataContract Attribute in Service
by ramkasarla
- 1 Replies
- Last post
by Brian McNamara - MSFT
- hi,
to insert data in to a sql server database table from client using WCF service , i mentioned the columns of the database in to which i want to insert the data in WCF MessageContract Attribute, it is perfectly running but when i do the same by using Data Contract Attribute i am getting error,
So, here my question is insertion is possible only using MessageContract or can i do insertio
-
- Databinding to Expression
by nightski
- 9 Replies
- Last post
by nightski
- I apologize if this has been asked before, but I could not find any sources. Basically imagine I am databinding a TextBlock's Text property to a collection of doubles using a CollectionViewSource. However, instead of simply binding to CurrentItem, I want to display a delta, or in other words the CurrentItem's value - the previous items value. Anyone have any ideas on how to go about accomplishing
-
- Maximizing Response Stream Performance
by Tyke
- 8 Replies
- Last post
by Kenny Wolf - MSFT
- I've successfully tested a WCF client & service using both basicHttp and netTcp bindings with Streaming enabled. The code on the client looks like:
using ( Stream stream = client.GetImage(ir))
{
...
int readbytes = stream.Read(image, offset, 10000000);
...
}
However, when using HTTP the readbytes are always 4K, and when using TCP the readbytes are ~64K. My ul
-
- Re-usable code Best Practice / Method with UserControl
by astrocrep
- 8 Replies
- Last post
by Mungale
- I have written a little framework that allows me to control "mini windows" in a canvas.
Allow me to further explain. I have a usercontrol I wrote, that includes a titlebar with title, and two button minimize and close. Below this titlebar is the "content" of this "mini-window", labels, textboxes, etc etc. There is also some initial handshaking that occurs when a mi
-
- ComboBox + Data binding
by WPF - I think I like it
- 2 Replies
- Last post
by Maik Liebing
- Hello,
I have an XmlDataProvider that is the data source for a combo box. The value of the last selected combo box item is stored in a text file. I do this so the NEXT time the user LOADS the application, the previously selected value will be selected.
How do I set the selected index of the combo box The problem I am having is based around the following:
When the ComboBox
-
- Styles problem
by bradutz01
- 11 Replies
- Last post
by bradutz01
- Hi,
I have created a Style for the NavigationWindow ... but it doesn't apply it. The style is a general style that should apply to all NavigationWindows, The same problem for Window.
for example the style i defined it
< Style TargetType ="{ x : Type NavigationWindow }">
< Setter Property ="Foreground" V .....
-
- Port Sharing problem
by PaulT
- 2 Replies
- Last post
by PaulT
- Hi, I'm having problems with net.tcp port sharing on a Vista machine. I've modified the basic service self-hosted sample to use the net.tcp binding with port sharing. This runs fine on all machines except one where i get a CommunicationException on the client side. The service config is as follows: <configuration> <system.serviceModel> <bindings> <netTcpBinding> &
-
- ShowDialog() behavior
by Richard Morgan
- 6 Replies
- Last post
by Richard Morgan
- I've got an application that uses several modal dialog windows. Early on, I discovered that displaying the window was a little slow, apparently because the XAML had to be parsed each time the window was displayed. In order to circumvent this delay, I create each of the modal dialog windows at the beginning of my application, and I never call Close() on them (nor do I set the DialogResult property,
-
- Vertical Separator
by Trevor Hartman
- 10 Replies
- Last post
by Trevor Hartman
- Hi, I need to use a vertical separator inside a StackPanel with Orientation="Horizontal". I know Separators are vertical inside StatusBar because of the template, but I'm not sure how to mimick that template. Pretty new to WPF and still trying to figure out how styles and templates work. Thanks, Trevor
-
- WPF designer for C++ (From: C++/CLI great, but, w/o full WPF and WF support in the VS 2005, C# only alternative)
by devdude
- 13 Replies
- Last post
by Cygnus X-1
- So does all that mean there will be a WPF designer for C++ or there wont. And if so, when, and in what product
-
- WPF Grid Row/ Column adding Item Template
by Lawrence 007
- 12 Replies
- Last post
by Lawrence 007
- Hi,
I am working on a small project trying to get to know WPF. I created a XML File That contains information About my Item. I have a Description and Image as well. The following code displays what my grid looks like.
Code Snippet
<Border BorderBrush="Black" BorderThickness="4" CornerRadius="5" Margin="6"
-
- Change item position in a listview
by Kurtl
- 3 Replies
- Last post
by benskynet
- Hello! - How can i change the item position in a listview
E. g. i have 2 buttons (a upward- and a downward button). If the user press the upward button, the selected item in the listview should move one position higher. - thanks in advance!
-
- get notified about childdren propertychanged
by bitbonk
- 13 Replies
- Last post
by bitbonk
- Is there a way to get notified about dependency property changes of children in the logical tree I want the a Grid to notify me (fire an event or something) in case one of its children that is a Textbox changed its TextProperty . Note that children of the grid change at runtime and it might well be possible that there are no children that are textboxes.
-
- ComboBox w/ IValueConverter
by Polaris408
- 7 Replies
- Last post
by Marco Zhou - MSFT
- I have a ComboBox that I want to populate with DateTimes, however, I'd like them to be formatted in this way: date.ToString("h:mm tt").ToLower(); So I made TimeToStringConverter which implements IValueConverter and setup my XAML like this:
Code Block
<ComboBox x:Name="time_cb" IsSynchronizedWithCurrentItem="True" IsEditable="True&
-
- What is it in VB
by rhansen
- 6 Replies
- Last post
by rhansen
- I am struggling to figure out which dependency properties that can be used in .BeginAnimation in VB
There seems to be a real difference between C# and VB in this respect. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1152919&SiteID=1
Not sure why VB is different and there does not seem to be any list of .BeginAnimation dependacy properties I can use. The documentation is e
-
- Drag and Drop - How to interchange Tab Item positions
by jk67
- 7 Replies
- Last post
by blackghost
- Is it possible to re-arrange tab items on a tab control using drag and drop assuming that the TabControl sits on a standard container such as a Grid Appreciate anyone's inputs on this.
-
- version compatibility
by kushwahavijendra
- 3 Replies
- Last post
by Dave Michel
- Hi all,
I am using sql server 2000 , dot net framework 2.0 and visual studio 2005.
Can I use Microsoft Sync services with these versions or should I upgrade the versions
Thanks & Regards
kushwahavijendra
-
- Setting FontWeight in code?
by DiamonDogX
- 5 Replies
- Last post
by DiamonDogX
- In XAML, font weight can be set to bold by simply doing <TextBlock FontWeight="Bold".... />
How does one do the equivalent in C#
-
- Correct method of rotating text
by John Dunn
- 5 Replies
- Last post
by Josh Smith
- I've searched the forums but couldn't find a definitive answer. What's the correct way to rotate text 90 degrees I get weird results when using LayoutTransform. First of all, the text doesn't look very good. Secondly, the extents are calculated pre-transform so the text will clip incorrectly. Is there any way to rotate text and have it behave as one might expect For example, the following XAMLCod
-
- Exceptions and self hosted services
by P.Johansson
- 14 Replies
- Last post
by P.Johansson
- Hi I'm using a ServiceHost to host my service, and when an exception is thrown in my listener it dies, and ends up in a faulted state. Ok, so far, so good. But how the heck am I, on application level, to know what exception was thrown In my trace log I can see it without problem, but let's say my application starts up a ServiceHost, and the host dies... how will I tell my user what went wrong I
-
- Double click a grid or canvas?
by DiamonDogX
- 5 Replies
- Last post
by DiamonDogX
- The Grid, Canvas, etc. controls do not have a MouseDoubleClick event associated with them. How would I find out of a user double clicked Thanks.
-
- Curious about WPF & Expression Blend
by LJM89
- 5 Replies
- Last post
by Laurent Bugnion
- i just happen to go to the Expression Web Site as i am designing a site for my school project. Just went to the Expression Blend site too as i also learn programming, but i was kind of blur after reading the site, is it a design software or a programming site/program I am currently using Visual Studio for programming VB & ASP. and of source i want to make nice programs, so Blend does this isi