-
- How to change ToolStrip Dock Style in Model
by dixsonwang
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- Recently I am learning about SCSF, and I want to change the ToolStrip Dock Style in Model.I only know how to change it in ShellForm.cs.
THamks very much!!
-
- From WCF to WWF
by rnby
- 4 Replies
- Last post
by rnby
- I have the folowing code at my server
Server
string Server = Properties.Settings.Default.Server; string Port = Properties.Settings.Default.Port; string EndPoint = Properties.Settings.Default.EndPoint; Uri baseaddress = new Uri(Server+":"+Port+"/"+EndPoint); MyServiceHost host = new MyServiceHost(typeof(Data), baseaddress); //host
-
- Safe to install EF Beta2 on metal (don't want to have to repave later)
by Julie Lerman
- 6 Replies
- Last post
by Julie Lerman
- I'm getting ready to install VS2008 directly on my laptop and my main development machine. This will be side by side with VS2005. I'm okay with doing this.
But I walso want to put EF beta 2 and the tools ctp on there as well. Should those be safe They seem stable enough at this point that when it's time to move to a newer beta/ctp/whatever, it shouldn't require a repave, right
(And y
-
- WPF + Visual Studio
by obrienkev
- 3 Replies
- Last post
by JamesChambers-rvng
- Hi all,
Does WPF work with Visual Studio 2005
Is WPF used for styling windows applications, etc
Thanks.
-
- How to get the location of context menu?
by Pradeep T
- 2 Replies
- Last post
by Pradeep T
- .NETters,
In my Canvas based application, the user right clicks, selects "Insert Image" menu item, and I insert the specified image within the canvas. However, I need to insert the image at the location where the menu item was clicked. How do I get this location
Thank you in advance for your help.
Pradeep
-
- Svcutil generating "Partial Public Class Exception"
by DeBiese
- 4 Replies
- Last post
by DeBiese
- Hi,
I'm having kind of a problem here.
When I generate a client proxy class from my wcf service, this proxy class contains a partial class with the name 'Exception'. This causes every 'Catch ex As Exception' to be wrong because now 'Exception' is ambigious.
One solution could be to go and change every catch to 'Catch ex As System.Exception', but I prefer not to do it like that. Is there a
-
- Can't create .NET 3 DLLs !
by Sylvestre
- 3 Replies
- Last post
by Marcelo Guerra - MSFT
- Hi everyone, I have some trouble using the VS2k5 extensions : I have no "Class Library" template (I mean no .NET 3-specific template), and the old .NET 2 template won't work : when I try to add, for example "using System.Windows.Media", the assembly is just not found. Any idea Thanks by advance !
-
- Cant Get MetaData.
by TheCPUWizard-2007
- 1 Replies
- Last post
by Srilatha Inavolu - MSFT
- OK, I admit it, I broke something, and am sleep deprived. Can anyone take a look at the config below and tell me why I cant get meta data for my service
Code Block
< system.serviceModel >
< client />
< diagnostics wmiProviderEnabled = " true " performanceCounters = " All " >
< messageLogging logEntireMessage = " tr
-
- Dynamic ToolTip in TreeView
by mkb2006
- 7 Replies
- Last post
by mkb2006
- I am new to WPF.
I have a treeview. TreeView contains textblock in TreeViewItem.
There is a ToolTip for each leaf .
I want to display the tooltip only when the full text is not visible due to small size of the window.
Is there any way to do it
-
- Sorting a ListBox of strings
by Adam Miles
- 4 Replies
- Last post
by Sam Bent - MSFT
- Hey,
This really should be incredibly easy to do but all I can find is huge explanations of how to use CollectionViews, Observable whatnots, SortDescriptions etc.
In code, I want to be able to add ["Cat", "Dog", "Ant", "Bat"] to a ListBox, then be able to sort them... I've looked at SortDescriptions but have no idea what the first argument needs to be.
-
- FaultException detail contains no values?
by Welsh-Wizard
- 14 Replies
- Last post
by Brian McNamara - MSFT
- I am using FaultExceptions to throw a specific generic error class back to the client. The class is called TestFault and when i catch the error on the client the detail part of the TestFault contains nothing, just empty strings
Code Snippet
[DataContract] public class TestFault { [DataMember] public string errorcode=string.Empty; [DataMember] public string
-
- Data binding to a class vs. an object
by Rubio
- 14 Replies
- Last post
by Laurent Bugnion
- I have a bit of trouble understanding classes in XAML. Suppose I have a business class MyData that has a property called Color (and the class implements INotifyPropertyChanged).
Code Block
<Window1 ...
xmlns:dp="clr-namespace:DataBindingTest">
<DockPanel.Resources> <dp:MyData x:Key="myDataSource"/> </DockPanel.Resources>
-
- Printing to "Fit to Printable Area" and to "Fit to Margins"
by desay
- 7 Replies
- Last post
by Nelis Bijl
- I have a grid control in which I have placed some text, drawings, and images in it using XML.
Now, I wanted to print everything I placed in the grid (which are what I'm seeing on the window I have created) to fit to the page's printable area and/or to the margins I have set for the media. Can anybody help me on how could this be done I'm actually new to WPF and C# so, pardon me if my question
-
- UserControl Issue
by Sam Andy
- 11 Replies
- Last post
by Marco Goertz - MSFT
- I have a userControl, I need to know how can I add it to the toolbox if its possible. and how can I set its Icon(ToolbooxBitmap Icon).
-
- Set Window Title to resources value
by Trev72
- 2 Replies
- Last post
by Trev72
- Hi,
I'm trying to set the title of my window to a value in resources.resx. I know I can set it in the code behind but I'm sure it must be possible to set it in the Xaml.
Here's my best attempt to date.
< Window x:Class = " TitleResources.Window1 "
xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns:x = " http://
-
- Mouse-driven rectangle overlaying image
by Tim_Arnot
- 2 Replies
- Last post
by Tim_Arnot
- I'm very much a newbie at WPF, and finding the learning curve rather steep...! What I'm trying to do is this: My window contains an image (it's a map), amongst other elements. When the user moves the mouse across the image, with the left button pressed, I'd like to draw a rectangle over the image, centred at the mouse position. As the mouse moves, so the rectangle moves. Release the button, and t
-
- WCF performance
by dimetc
- 2 Replies
- Last post
by Tom Frey
- Hello,
I tried to compare WCF and TIBCO.Randezvouz performance using simple Order Entry Service. I used netTcpBinding and all defaults. I beleive netTcpBinding should be fastest binding in WCF.
Unfortunately, WCF was able to process 2,000,000 orders per second. But TIBCO.Randezvouz received 14,000,000 orders per second.
Can somebody help me to improve WCF performance Can I disable securit
-
- Overriding template functions
by DRD32206
- 1 Replies
- Last post
by Nikola Dudar - MSFT
- For the longest time we've override the default behaviour of:
template < class ARG_KEY>
AFX_INLINE UINT AFXAPI HashKey(ARG_KEY key)
{
// default identity hash - works for most primitive values
return (DWORD)(((DWORD_PTR)key)>>4);
}
in afxtempl.h with our own for int in our own header file:
template <> inline UINT AFXAPI HashKey<
-
- When switching between 2 styles I lose listview grouping...??
by PlaTyPuS8
- 14 Replies
- Last post
by PlaTyPuS8
- Hi!
In my application it is possible to switch between 2 styles (the both are displaying the same listview!!), but when I switch between these 2 styles, I lose the grouping in listview....
Here is my XAML code :
http://test.duotone.ch/Capture.JPG
And my C# code-behind :
Code Snippet
public partial class Test3
{
CollectionViewSource _listing
-
- Referencing a Resource file from another library
by Luis D. Rojas
- 1 Replies
- Last post
by Benny Tops
- Hi, I'd like to know if it si posible to appy a style to some element ( control or window ) from a Resource File included in another library. If so, How should I put the reference in the style tag
Style = " {DynamicResource ButtonBackground} "
Best Regards
-
- XAML property initilization order and databinding
by Glg
- 2 Replies
- Last post
by Michael Shim - MSFT
- Hi here is my problem :
I have an object whose correct initialization depends upon another object beeing initialized.
In the source PngSequence x : Key = "pngtileset" is used by
< l : KeyFrameAnimationFromPngSequence PngSequence = "{StaticResource pngtileset}"
but the RectList property is initialized unsing binding ( and the reason for that is that i used a c
-
- MediaElement MediaOpened event problems
by Webmills
- 0 Replies
- Last post
by Webmills
- Hi
I have created a MediaElement programmatically and added it to an ElementHost within a windows form. I am attempting to load the video in the background before making it visible and playing it.
I have created a AutoResetEvent which I use to determine when play may start. That is, I set the MediaElement source property, then call WaitOne on my AutoResetEvent. I expect the MediaElem
-
- Dataset object
by Kce
- 6 Replies
- Last post
by Kce
- Hi Rafik,
You responded to my query on another group about email data(sync) transfer where you recommended an ftp dump. Our remote sites have an added complication that the working pc is separate and not networked to the communication PC, files will need to be transferred by a flash drive to the comms pc, hence the email idea...
Would greatly appreciate it if you could point me in th
-
- Message Filters in WPF ?
by DLR_
- 2 Replies
- Last post
by DLR_
- Hi,
Is there a substitute for System.windows.Forms.IMessageFilter in the WPF world I have a Forms application that is power aware, it listens to and handles WM_POWERBROADCAST and all its details for XP and Vista. My problem however is that the architecture I originally wrote intercepts the message with a IMessageFilter based class registered in the Application class and then passes the info
-
- Access WCF with IXMLHttp
by sibitg
- 1 Replies
- Last post
by Carlos Figueira - MSFT
- Now I can access a WCF service from a non-WCF client using IXMLHttp. I am sending data in XML format and in WCF Server I declared the method parameter as System.Xml.XmlElement. Carlos Figueira - MSFT helped me a lot in achieving this.
Now I want to know, in WCF Server can I replace the System.Xml.XmlElement with a Complex object, which is equivalent to the XML schema send by the Cli