-
- Toggle button in toolbar
by Alex Farber
- 1 Replies
- Last post
by Douglas Stockwell
- How can I make toggle button in WPF toolbar Button should be in checked and unchecked state, like it is possible with ToolStripButton.Checked property in Windows Forms.
-
- Error svcutil tool
by Boris Mueller
- 9 Replies
- Last post
by Boris Mueller
- Hi I want to consume a web services. When I ran svcutil against the wsdl I got the following error.
------------------------------------------------------------------------------- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin>SvcUtil.exe /ser:Auto n:\ECC_CU STOMER002QR.wsdl Microsoft (R) Service Model Metad
-
- Help to convert xaml into csharp
by Joymon
- 4 Replies
- Last post
by JoyK
- Hi Everybody,
Could anybody please help me to convert this code into csharp code
Thanks in advance.
Joy
< Button Name = " btn " Content = " Click " Grid.Column = " 1 " >
< Button.Template >
< ControlTemplate >
< Grid >
< Grid.ColumnDefinitions >
< ColumnDefinition />
< ColumnDefinition />
-
- How do I find the containing window for a page within a frame?
by JoeWirtley
- 2 Replies
- Last post
by Bragi
- I have a window that contains a frame, which contains a page. From the page, I would like to be able to access the Window. How do I do this
In WinForms, I know I can walk up through the parents until I find the Window. However, this doesn't work since the Parent property of the page is null. I also tried using the LogicalTreeHelper and VisualTreeHelper classes, both of which also return th
-
- How can I change a style setter using code?
by AndreaNa
- 2 Replies
- Last post
by AndreaNa
- I have several Labels using the same Style:
< Canvas.Resources >
< Style TargetType = " {x:Type Label} " x:Key = " TitleStyle " >
< Setter Property = " FontSize " Value = " 24 " />
< Setter Property = " FontWeight " Value = " Bold " />
</ Style >
</ Canvas.Resources &g
-
- Exception invoking DataContext.ExecuteQuery
by Corrado Cavalli
- 4 Replies
- Last post
by Corrado Cavalli
- I'm getting an NullReference Exception when invoking this code:
DataContext db = new DataContext(connstring); var ret=db.ExecuteQuery<Customer>(@"SELECT FirstName FROM CUSTOMERS WHERE City={0}","Milano"); Nothing changes even using a "SELECT * FROM Customers" w/o parameters
Using Beta2, Any Hint
-
- Bug in WPF 3.5 - Popup control
by Tomas Bouda
- 9 Replies
- Last post
by Laurent Bugnion
- Hello,
I have just found a bug in Popup control using WPF 3.5.
The code is very simple (see below) - one button opens and hides Popup, the second adds item into ListBox within Popup.
Using WPF 3.5, when a new item is added, Popup is enlarged, but instead of item, just a blank area is shown.
After Popup is hidden and shown, the control is shown properly.
Well, using WPF 3.0 e
-
- Custom Window
by Khookie
- 5 Replies
- Last post
by Martin Knotek
- Starting to learn WPF so plz bear the newb question. For the login form of one of my WinForms applications, I used a custom window with rounded edges. I did this by creating a graphics path and setting the form's region to it in the Paint event.
Now I'm migrating this app to .NET as an exercise in WPF, and hopefully to use as a proof of concept.
Question is, is there a way to do custom windo
-
- Zoom in Listbox?
by narouto
- 2 Replies
- Last post
by narouto
- Hi,
I need to zoom on a element of a listbox, so I must have the element which is selected. How can (in XAML) I do it
thanks.
-
- System.Net.WebException: The remote server returned an error: (400) Bad Request.
by Goldielocks
- 4 Replies
- Last post
by Martin Petersen-Frey - MSFT
- Hi, I have a created a wcf webservice that has a method that takes a base64string and a string as parameters. When I call the method I get the following error: System.Net.WebException: The remote server returned an error: (400) Bad Request. I have done some research and found that the reason for the error might be that the base64string is to large (155412). I don't have any max values set in the W
-
- mp3 player-like content browser?
by -JM-
- 0 Replies
- Last post
by -JM-
- I'd like to build a content browser similar to the type you see on mp3 players, where you can browse hierarchical data one level at a time. Selecting an item clears the list and displays the next level of data.
I've done this with a listBox by manually inserting listBoxItems through c# code when something is selected, but I'm wondering if this can be done by binding to an XML file. Here's some
-
- Programmatically generated paths and Silverlight
by King Ragu
- 1 Replies
- Last post
by King Ragu
- Hi All,
I have a function which generates a PathFigure containing arcs and lines and now I want to use this in a Silverlight application I'm working on. Now, the pathfigure once created won't need to change in the Silverlight app so I was hoping to just write a xaml file to disk which contains the Path data as a xaml string.
Is there an easy way/function already available which will
-
- Alignment of GridViewColumn Header in ListView
by Ted12893
- 5 Replies
- Last post
by Patrick8639
- I must be missing something really obvious here, but how do I align the content of the header of a GridViewColumn in a ListView
I tired applying a DataTemplate for the header like so:
< GridViewColumn Header = " MyHeader " Width = " 80 " DisplayMemberBinding = " {Binding TrDt} " >
< GridViewColumn.HeaderTemplate >
< DataTem
-
- Beginner SQL Binding Question
by Lawrence 007
- 6 Replies
- Last post
by Lawrence 007
- Hi,
I have a dataset that returns all my Items in my Database. 960 of them. In my XAML this is what I have so far:
Code Snippet
< Grid Height ="310">
< StackPanel Margin ="0,29,20,175" x : Name ="MyStack">
< Grid Width ="442" Height ="213" x : Name ="MyGrid">
< Grid.Colu
-
- a:ActionNotSupported - fault while browsing WCF service
by DjHall
- 5 Replies
- Last post
by FlemmingLaugesen
- Hello,
I get the error below when I try to browse a WCF service with IE. I have double checked my .config file and cannot seem to find the problem. Honestly, I am having difficulty understanding the message below. I have checked my contracts and binds but I am not sure what is causing this.
< faultcode xmlns:a =" http://schemas.microsoft.com/ws/2005/05/addressing
-
- XBAP Web Service Call
by Rick Glos
- 6 Replies
- Last post
by Matt Galbraith
- I've been attempting to get a WPF XBAP app to call a web service and return a simple message all day and cannot.
System.Security.SecurityException was unhandled Message: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
It's the same problem, referenced these p
-
- Writing events with XAML writer?
by gbshaw
- 2 Replies
- Last post
by LesterLobo - MSFT
- Hi, XAML writer doesn't write event listners assocaited to a particular control. I have seen the an alternate method of XAMLwriter even that doesn't write events. Is there any way we can write the events as well. Any help will be appreciated. thanks
-
- Cannot install visual studio 2008 beta 2 on vista business edition
by Sajiv Thomas-Identitymine.com
- 7 Replies
- Last post
by Dave Chemistry
- The setup for Visual sudio 2008 beta 2 fails on .NET 3.5 . The error log has the following information: [08/21/07,14:44:29] Microsoft .NET Framework v3.5: [2] CreateProcess Failed with error code 193
[08/21/07,14:44:29] Microsoft .NET Framework v3.5: [2] d:\en_visual_studio_team_system_2008_beta_2_team_suite_dvd\setup\..\wcu\dotnetframework\dotnetfx35setup.exe could not be launched successfully.
-
- Will there be any more releases before RTM?
by Daniel Smith
- 0 Replies
- Last post
by Daniel Smith
- Hi folks,
I'm using beta 2 at the moment, and just wondering if anyone knows if there are any more betas or RCs planned before RTM
Cheers,
Dan
-
- Creating & Centering WinForms Form over WPF Window
by Patrick Sears
- 10 Replies
- Last post
by Patrick Sears
- I'll try to keep this short - What I want to do is create a WinForms Form as a child of a WPF Window and keep it in a specific position over the WPF Window. The WinForms form will contain a WinForms control that I need to use for this project. This approach is suggested, but not expounded, by Ashish's answer (and #4 on another of his posts further down) here: http://forums.microsoft.com/MSDN/Show
-
- WCF Hosting and deploying Applet into User's Browser
by milax
- 9 Replies
- Last post
by Christian Weyer
- Hello,
I'm using WCF self hosted Windows Service for my Web Services.
Some of clients are Java Applets. The question is that can WCF self hosted
Windows Service also deploy jar files needed to run Applet in Browser
Is this possible and how
Thanks,
MiLa
-
- No LINQ with Orcas beta1
by brettromero
- 4 Replies
- Last post
by brettromero
- I've installed Orcas beta1 (9.020404.0) March CTP on Vista Ultimate and there aren't any LINQ related DLLs. I see System.Data.Linq.xml and System.XML.Linq.xml in the .NET 3.5 folder but no DLLs. I've searched my machine and can't find anything related to LINQ. Does Orcas require another seperate download to use LINQ Or is there some place to download the above related DLLs
Thanks,
Brett
-
- Sliding Panels
by Baffa
- 3 Replies
- Last post
by Baffa
- Hi,
I am new to WPF and I am trying to implement a Sliding Panel, just like Visual Studio does in Solution Explorer and Properties Panel.
Have you ever implemented something like this
Is there a place where I can find a piece of code to help me
Thanks in advance
-
- Form content to UIElement
by lpx
- 7 Replies
- Last post
by Dr. WPF
- Hi, I need to convert the form content to a UI element. How can i do that Thx, Nuno
-
- Problem with painting of ContextMenu
by Jeremy Chaney
- 3 Replies
- Last post
by Jeremy Chaney
- I have the following ContextMenu attached to a TreeViewItem and when it paints it draws most of the menu black, but there is a white band going down the left side that I can't get rid of. The white area is in the spot that a check mark or icon would go in if my menu had one, but it doesn't. Does anyone know how I can lose the white strip
Code Snippet
<ContextMenu x:Key="Cat