-
- movable rectangle
by kris9542
- 2 Replies
- Last post
by kris9542
- Hi
How can i achieve a functionality where a user can move a rectangle where every he wants on the canvas
Thanks
-
- Accessing Window.StaticResource in another XAMl file
by John Dunn
- 1 Replies
- Last post
by Sam Bent - MSFT
- What's the proper syntax to access a Resource defined in a Window.XAML file from a custom control .XAML file. I have a converter defined in my window.xaml that looks like this
< Window x:Class = " WindowsApplication1.Window1 "
xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml &qu
-
- HitTest via Geometry broken with strokes of 0 width
by John Dunn
- 3 Replies
- Last post
by John Dunn
- When I use the VisualTreeHelper.HitTest method passing in a GeometryHitTestParameters, an object drawn with a 0 thickness pen always returns 'Intersects' when it should return FullyInside. The following code shows an example of this - the rectangle stroked with a 0 thickness pen should be FullyInside a 400x400 rect, but the HitTestResultCallback passes in Intersects. The other 2 rects with thickne
-
- MessageContract question
by Bravo2007
- 2 Replies
- Last post
by Bravo2007
- I have a simple question...
Is it required to name message contracts for operation as <OperationName>Requuest and <OperationName>Response
e.g. if the operation is Add, the contract would be
AddResponse Add(AddRequest request)
I tried to use a common response in couple operation and it didn't work for some reason when I tried to consume the service from ASMX clie
-
- WCF config file under WAS hosting
by Serge Calderara
- 4 Replies
- Last post
by Serge Calderara
- Dear all,
I have been face to an interresting situation that I will try to explain :
I have a set of WCF services which are implemented within different assemblies as follow:
Alarm services in : Maillefer.Nomos.Plateform.EventSys.DLL
History services in : Maillefer.Nomos.Plateform .HistoryService.dll.config
In order to get a better package deployement, each service as
-
- Guidelines for WPF Forum
by Rob Relyea
- 11 Replies
- Last post
by SerialSeb
- I took a stab at some forum guidelines . (forum goals, guidelines for questioners, guidelines for answerers)
Please read and help me evolve them to be the list of our recommended forum usage...
Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.live.com
-
- Bindings lost when navigating
by Neil Mosafi
- 12 Replies
- Last post
by Neil Mosafi
- I have been experiencing this issue for a while in my application but hadn't yet got round to diagnosing it. The problem is that some bindings on a page are lost when I navigate to and from that page within a Frame. I've finally made a simple sample application which is conveniently posted here: http://blogs.wdevs.com/neil/archive/2007/03/27/19657.aspx The code is all there but unfortunately I co
-
- X2P :How to : Xaml to png file conversion?
by logN
- 1 Replies
- Last post
by digitalnetbizz
- Following is code iwritten for xaml to png file but ... i am not getting correct Png file ... Pls reply ....
Code Block
void btnX2P_Click(object sender, RoutedEventArgs e) { try { MemoryStream ms = X2P (ToCanvas(AppDomain.CurrentDomain.BaseDirectory+@"Xaml.xaml")); FileStream fs = new FileStream("a.png",FileMode.Create);
-
- Label ToolTip problem
by Cornel Gav
- 5 Replies
- Last post
by lee d
- I activate label's tooltip on mouse enter. The code is listed below:
Code Snippet
ToolTip tooltip = new ToolTip(); tooltip.Content = labelText; tooltip.IsEnabled = false; tooltip.BorderBrush = label.Foreground; tooltip.Foreground = label.Foreground; tooltip.Padding = new Thickness(3); tooltip.Background = (Brush)Ap
-
- Need your .NET Framework 3.0 apps for backward app compat testing for Orcas Beta2
by Kavita Kamani - MSFT
- 2 Replies
- Last post
by suyog dabhole
- Hello Community!
We need your help. We are doing backward app compat testing for our Orcas Beta2 release. We would like to use a handful of real .NET Framework 3.0 customer apps to make sure they continue to work to .NET Framework 3.5 Orcas Beta2 bits. If you would like to help and share your app with us, it will help us immensely and it will help you as well =)
This request is spe
-
- DataContract versus Serializable
by TrevorW
- 5 Replies
- Last post
by TrevorW
- Okay, I LIKE and PREFER Data Contracts versus Serializable. I have built and tested many scenarios and the tests work great and I like the level of control.
Now I am looking at converting some existing functionality and am also looking at 'backwards' compatibility and the question I am going to ask does not seem to be clearly answered (at least where I looked).
If I use the DataContract to e
-
- UsernamePasswordValidator certificate
by Matt Kemmerer
- 7 Replies
- Last post
by Pedro Felix
- I'm trying to setup a custom username validator as described here: http://msdn2.microsoft.com/en-us/library/aa702565.aspx which caused me to run into the problem described here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=2004987&SiteID=1
If I set up my code exactly the same, but use Windows instead of Username as the message clientCredentailType I don't need a certificate.
-
- [LINQ to SQL beta 2] EntitySet is not bindable in WPF?
by jods
- 14 Replies
- Last post
by BACHRATY Gergely
- Binding an EntitySet (basically an association) to a list in WPF works well. That is, until you try to modify to add or remove entities from the set. The GUI doesn't get updated. As I understand it, it's because the EntitySet doesn't implement INotifyCollectionChanged. Am I missing something Not being able to databind my LINQ entities is a HUGE limitation.
-
- ListView and SelectionBackground
by Ralf_BFOREST
- 3 Replies
- Last post
by Ralf_BFOREST
- Hello, i am new to WPF and have a question about setting the background of a selected item in a listview. In a ListView i display UserControls as the ListViewItems. I do this, by creating the ListViewItems and then apply the UserControl to the content-property of the ListViewItem. Everything works fine. My problem is, that when an item in the listview is selected, there is a blue background. I wan
-
- The maximum nametable character count quota exceeded
by jan.haug
- 3 Replies
- Last post
by jan.haug
- Hi
I have a WCF-Environment with the configurations below. The client throws an FaultException while calling a function with a System.Data.DataSet as Parameter. The Exception looks like this:
MyCompany.MyCompanyGateTest.Data.WcfDataTest (TestFixtureSetUp) : System.ServiceModel.FaultException : The formatter threw an exception while trying to deserialize the message: There was an erro
-
- Advice: Long running process
by RichBower
- 10 Replies
- Last post
by TrevorW
- I¡¯m currently trying to work out the best method of handling long running processes (could be anything up to a minute to execute). My current design is a WCF Web service layer that passes messages to a Service Broker queue, which in turn returns a unique token that is then sent back to the caller of the service. The caller then polls the web service to check for completion of the task.
I pr
-
- Shared ObjectDataProvider in ResourceDictionary
by stephenV
- 7 Replies
- Last post
by stephenV
- I'm attempting to put an ObjectDataProvider in a ResourceDictionary, so I can use it between multiple configuration windows. I'm editing a collection called GroupsCollection and I want the changes made in one window to be reflected in another. The GroupsCollection is an observable collection.
How can one go about ensuring that it is the same collection used between windows, without passing
-
- Login to Orca Oct CTP (UK) slight change to Sep login
by OldDrongo
- 2 Replies
- Last post
by Matteo VS
- I logged in to Sep CTP using password P"ssw0rd [" = UK keyboard @]. However could not login to Oct CTP. After much trial and error eventually found this worked P2ssw0rd (just dont shift the 2 to get ").
-
- where have my netMsmqBinding messages gone?
by Steve1999
- 13 Replies
- Last post
by Sorin Alexander - MSFT
- continuing the msmq net binding adventure my client is sending messages to (no errors detected): NetMsmqBinding binding = new NetMsmqBinding(); binding.Security.Mode = NetMsmqSecurityMode.None; EndpointAddress address = new EndpointAddress( @"net.msmq://localhost/private/WorkflowStateChange" ); ChannelFactory<ISymyxWorkflowServiceCallback> channelFactory = new Ch
-
- Offline Applications with WCF
by JDTal
- 8 Replies
- Last post
by JDTal
- What is the best way to architect a system that must operate both online and offline, using WCF
I need to interact real-time with my middle-tier WCF service(s) whenever possible, but I also need the ability to take my entire application "offline" for days or even weeks at a time (Windows Forms client app). Any changes that I make to the data on my laptop (or PC) during this time
-
- Change key of a dictionary entry?
by DiamonDogX
- 4 Replies
- Last post
by Marlon Grech
- Is it possible (without removing and inserting) to change the key of a dictionary entry Say I have a dictionary that has strings as keys and some other object type as values. If I have an entry with key "apple" and I want to change that key to "orange" without changing the value, is that possible
-
- VSTO 2008, Office 2007: Dynamically creating Excel worksheet host items / adding buttons
by Shaun Logan
- 7 Replies
- Last post
by siamsimon
- background
I have an Excel doc-level solution developed for Office 2003 using VS 2005 Team Suite (with VSTO 2005 SE applied). My requirements are that at runtime, the end-user can insert as many worksheets as s/he wishes into the customized workbook. My doc-level code creates Microsoft.Office.Tools.Excel.Worksheet object host item wrappers around those worksheets -- so that I can programatical
-
- how to let TextBox Control only show number ?
by bruce.du
- 2 Replies
- Last post
by bruce.du
- hi,
In winform app, textbox can be set to show number only,but in WPF app, I don't know how to set it!
it still has this kind of property please give me some tips!
thanks! ^_^
-
- XLinq Attributes
by f00sion
- 2 Replies
- Last post
by Anders Hejlsberg
- Is there a slicker way to handle retrieving attributes that may or may not exists Currently I do:
if(imageNode.Attribute("creationdate") != null) creationDt = (DateTime)imageNode.Attribute("creationdate"); else creationDt = DateTime.Now;
I have a whole bunch of attributes to go through and that is painful. I tried with the operator but get an error when compiling tha
-
- Problems with simple binding
by Anton Yaroshchuk
- 7 Replies
- Last post
by Dr. WPF
- Hi everyone!
I've got a problem trying to implement a simple binding of dependency properties.
I have a UserControl (HostControl), it has another custom control (ChildControl) inside (inherited from Canvas).
Those HostControl and ChildControl both have a property of some type (e.g. MyType) named 'prop'.
I'm trying to bind them. I tried doing this in cs code (inside of HostControl's OnI