-
- Problem with xsd element with maxOccurs > 1 when generating the DataContract using svcutil.exe
by rsantos
- 5 Replies
- Last post
by Timothy Wilson
- Hi there, I have this xsd: < xml version="1.0" encoding="ISO-8859-1" > <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:my="http://www.localhost.pt/MySchema" elementFormDefault="qualified" targetNamespace="http://www.localhost.pt/MySchema"> <element name="reply" type="my:TypeReply" /> <
-
- Using ComboBox as a selector for a collection
by NoSuchThingAs2
- 2 Replies
- Last post
by Yi-Lun Luo - MSFT
- I have a ComboBox in my app that's bound to a collection. I would like to use this in a master-detail scenario where selecting the item in the ComboBox updates the field values below it. The thing is I don't see an "IsSelector" property like the one on ListBox so I'm not sure this is going to work. I guess I could work around it if needed but I wanted to see if anyone knows a clean way t
-
- serialize usercontrol
by hanuman523
- 5 Replies
- Last post
by globbe
- How can I serialize a usercontrol I am getting the exception "usercontrol not marked as serializable" when using binaryformatter.
-
- Bind Image to single xmlelement
by bes7252
- 10 Replies
- Last post
by bes7252
- I'd like to bind an Image's datasource to a single element in an XmlDataProvider. Each element in the Xml has a unique ID and the image knows the ID it needs to bind to.
Is there a way to set the binding of my image so it searches for the appropriate element
Brian
-
- WCF, XBaps, and 2 way communication
by RyanC2
- 4 Replies
- Last post
by RyanC2
- I am using Visual Studio 2008 and .NET 3.5. What I would like to implement is a simple chat application, using an XBAP and WCF.
Lets say that there are two clients connected to the server. When one client enters a message, that message should appear in both clients.
I think this could be accomplished by having the clients poll the server for new messages, but naturally for performan
-
- Information about sub items in a ListView
by Neil Duncan578286
- 2 Replies
- Last post
by Neil Duncan
- Hi All, I have a ListView item bound to a DataTable on my form. The DataTable has the following columns: LangName, Flag The ListView currently displays: A checkbox | the name of a language | a picture of a flag (bound to LangName) (bound to Flag) So what I am trying to get across here is that the checkboxes are unbound, while the other two columns are bound! Basically, as the program
-
- Using routed events
by Quimbo
- 3 Replies
- Last post
by Rei Miyasaka
- Hi!
I was really looking forward to the routed events mechanism.
But is it possible to use routed events from classes which don't derive from UIElement If so, how Because AddHandler and RemoveHandler are methods of the type UIElement...
Thanks!
-
- SelectedIndex of ComboBox is not serialized.
by YiannisY
- 3 Replies
- Last post
by Zhou Yong
- Here is my problem:
I create a ComboBox:
System.Windows.Controls. ComboBox UICombo = new System.Windows.Controls. ComboBox ();
UICombo.Name = "MyCombo" ;
UICombo.Items.Add( true ); UICombo.Items.Add( false );
UICombo.SelectedIndex = 0;
Then I save it:
FileStream fs = System.IO. File .Create( "MyCombo.xaml" );
System.Windows.Markup. XamlW
-
- How to reverse item flow?
by Daniel Schl&#246;&
- 7 Replies
- Last post
by Yurec1986
- I have an ItemsControl with items shown horizontally inside a StackPanel. How can I change the direction of the items in that StackPanel, so that one time items 0...n go from left to right, another time from right to left (nothing to do with FlowDirection for text). And how could I bind that to a property at runtime
-
- FindResource() not finding resource defined in XAML
by Brett Hitzel
- 4 Replies
- Last post
by Josh Smith
- Hello everyone.
I am a relative n00b with WPF (and somewhat with .NET in general) with a rather tight deadline on a WPF project and have hit a wall with FindResource(). I am at the beginning stages of development so the setup of my application is still fairly simple. I have the following structure in my XAML code:
Code Snippet
<Window xmlns=" http://schemas.micros
-
- .Net 3.5 Beta2 and WCF PartialTrust
by V&#237;tor
- 2 Replies
- Last post
by Vitor
- Now, with Beta 2, is possible to use WCF in PartialTrust, how Are there examples
-
- newbie: centering window from non-window owner
by Naftis
- 6 Replies
- Last post
by Naftis
- Hi group, sorry for the naive question: how can I center a window on top of its owner, when the owner is not directly another window For instance, say I have a user control with a bunch of elements into it, and among them there is a button which should open a dialog window. Now, in the user control code I cannot set the dialog window Owner property to "this", as "this" refers t
-
- Defer loaded associated classes not packaging query into single SQL statement anymore?
by Joe Rattz
- 6 Replies
- Last post
by Joe Rattz
- I am not sure how to word this, but here goes.
Associated classes (such as Orders for the Customer class for the Northwind database) are defer loaded by default. So they are not actually retrieved until they are referenced.
In the May 2006 CTP, if you appended a query onto the EntitySet reference for the associated classes, the query would be packaged into a single SQL statement and
-
- ImageBrush with video
by Dvlnblk
- 9 Replies
- Last post
by lee d
- Hello all,
I know how to brush an object with an image:
Brush:
<ImageBrush Stretch="Fill" x:Key="elipse1Brush"> <ImageBrush.ImageSource> <BitmapImage CacheOption="OnLoad" CreateOptions="IgnoreImageCache" UriSource="building.jpg"/> </ImageBrush.ImageSource> </ImageBrush>
Object:
<Ellipse Fill=
-
- Streaming mode for sending Large Dataset or Datatable
by Chintan Parmar
- 3 Replies
- Last post
by BenK
- Hello,
I am not sure how the streaming works in WCF application, but let me still just in brief explain you. What happned in streaming mode is that, when send the data from service , the data will be sent by composing the stream object and client will keep reading the data from the established stream. Is that correct Is it also true if i m sending the byte[] from the service
If this
-
- Sample WPF Database Application
by artificer
- 3 Replies
- Last post
by artificer
- I have to write an accounting application. I want to know if there are good sample database applications. I am looking for something like the northwind sample on Microsoft Access. I need all the basic functionality expected on line of business applications like master/detail or at least a similar functionality. Someone could please help me!
-
- Wrap first, then scroll
by bes7252
- 5 Replies
- Last post
by ivolved_Mike_Brown
- I've read several posts regarding this topic, but haven't quite figured this out yet. I'd like the black squares in this WrapPanel to wrap first, then show the ScrollBar if it's still necessary. I have a working example where the Vertical ScrollBar only shows when necessary, but not the horizontal one.
Code Snippet
< Window x:Class = " WrapTesting.Window1 "
-
- Window Shape
by Alan Z
- 4 Replies
- Last post
by Alan Z
- Hello,
I want to create an application within WPF that is octagonal. However, I only want the users to be able to move the window if they click within the octogon. Is this possible with WPF, if so, can some please provide me with some links or a high-level description of how to do this
Thank you!
Alan
-
- [BUG]Collection initializers& extension methods
by XASD
- 4 Replies
- Last post
by Peter Ritchie
- It seems I can't define extension method for a class with name "Add" and use it with collection initializer for the class simultaneously: Collection initializer requires its type 'System.Xml.Xsl.XsltArgumentList' to implement System.Collections.IEnumerable" ,how about "duck" typing I thought I need "Add" method only.
It would be useful feature to fix "
-
- How to set environment variable to Vista
by moondaddy
- 6 Replies
- Last post
by Ben Carter - MSFT
- I have a wpf windows app that will be running mostly on winxp machines and I want everything to look as much as possible like vista. How can I set the environment variable to Vista so system objects like windows, buttons, etc. will have the Vista look and feel
-
- Easy Question #2
by Alexey Lavnikov
- 4 Replies
- Last post
by Alexey Lavnikov
- Hi there,
I'm trying to accomplish the following tasks using WCF.
1) Authentication
I want to:
a) submit username/password from client side and validate them using my own mechanism.
or
b) use Windows built-in authentication.
Some requirements to authentication:
c) do not use based-on-certificate solutions because of the deployment complexity.
d) do not us
-
- Enquiry regarding skinning in WPF
by Parimal Jisaheb
- 1 Replies
- Last post
by Marlon Grech
- Hello Geeks,
I am facing a difficulty about skinning of the WPF forms. As explained in the WPF unleashed book by Adam Nathan, we can change the skinning configuration on the fly but there is given the example of reading from the outer resource dictionary file and assigning settings to resource at the form load. But what if I want to change the font properties at the run time after loading t
-
- TextBlock.FontSize ...how does the text block know where to "grow" the font from?
by ZomCoder
- 6 Replies
- Last post
by ZomCoder
- TextBlock.FontSize ...how does the text block know where to "grow" the font from
I've noticed that if I scale a text block using its render transform, with a render transform origin of .5, .5, the "top left corner" from which the font size grows seems to remain in the same place (sort of the top left corner as though the text block were never scaled). Is there any way t
-
- Print contents of an ItemsControl
by Adrian Heath
- 10 Replies
- Last post
by Adrian Heath
- Can anyone help me with how to print the contents of an ItemsControl (actually a listbox). Each item in the list is a fairly complex DataTemplate and I would like to print it just as it appears in the template. Both the following approaches failed. Should they have worked or is there a better way that I've missed First I tried creating a flowdocument and added each item in the ItemContainerGenera
-
- Binding visible & enabled to bools - What's the best way?
by NoSuchThingAs2
- 3 Replies
- Last post
by Foovanadil
- I have a property typed as bool and it gets used in a few places in the app. The simpler question is binding it to the IsEnabled property. On some controls it's a direct binding, but on others I'd like to bind to the opposite of the value (if indeed the bool has a value). Is there a way to do that with binding syntax I would hope for something like {Binding Path=!MyProperty} but that doesn't seem