Answer Questions
sahridhayan Hyperlink in a ToolTip
When I put a Hyperlink inside a ToolTip, I can't click it. The hyperlink doesn't get any mouse events. Setting the ToolTip IsHitTestVisible to True doesn't seem to help. When I put a Hyperlink in a PopUp, the Hyperlink is clickable, but I'd need to make it look like a ToolTip and style it with a drop down shadow. Any ideas Kevin I don't know the answer for sure, nor do I have access to WPF right now, but one thing pops into my head which might be relevant. I assume that by default a ToolTip would not receive input focus, which would prevent mouse messages from being directed to any controls contained within it. It might be possible to use the attached properties of the FocusManager class to indicate tha ...Show All
auto WPF Validation
Paul Stovell has post a good article Validation in Windows Presentation Foundation about Validation in WPF. But, when I test the demo, I find a limitation to validate data in that way. Suppose I have 10 TextBoxes and many other UIElements on a WPF form. For the first time, I binding these elements to null-value data object, so all the TextBoxes are empty. The simple validation is to make sure all the TextBoxes are not empty. Then I click on a Button "submit" directly. Since the TextBoxes are never focused, and the Text in them never be modified, UpdateSourceTrigger.LostFocus and UpdateSourceTrigger.PropertyChanged can not be used. But if I use Explicit, does that mean I should write tens of codes to vaidate the Bindin ...Show All
Steve_j_maas Which Files in Source Code Control
I am using SVN for my source code control as not everyone where I work has access to VSS. The benefits of VSS that I found was that it automatically chose which files to include under the source control. I am using TortoiseSVN and recently Ankh SVN as it is an addin. However, I can't work out which files should be versioned. Just like this guy here . When I open my VB solution I see the following: Test - My Project - AssemblyInfo.vb - modMain.vb - modWord.vb - frmMain.vb Now it obvious that the last 3 need to under code control. However, even though I have added Test.vbproj and Test.sln to the SCC, the top three don't appear to be under control. Which files should you put under control What about the extra directories that get created ...Show All
Curtis the Analyst of Doom Accessing parent project from invoked child project
When a project calls msbuild on a child project - is there any way to access anything in the invoking/parent project Is there any way to determine the project filename, or anything about the parent project This could be either via the msbuild XML or from a custom task, ie via the object model. I've been looking at the object model and at the internal classes but haven't found anything appropriate. /marcus Richard, What you did in your very first post is correct. You should not have to resort to ItemGroups and metadata for such a simple thing. Do the following - Restore your parent and child projects to the way they looked in your first post. Make sure you define a value for $(BinaryRoot) in parent p ...Show All
ekkapop Disaster Recover Features?
Has VSS 2005 introduced ANY features to support disaster recover requirements Systematic data replication to a duplicate database instance as one example Unfortunately not. VSS is remaining to be a simple SCC program with file based database Analyze tool was significantly improved for fixing errors in the database. Overall reliability of working over the network was also improved. However new tools to create systematic the backup of the database were not added. These functionality is still expected to be provided by other tools. ...Show All
Johan Overbye Bug when MouseLeave Event in ControlTemplate?
Hi, I have a control template that has an event that is being triggered on MouseEnter and MouseLeave. < Style TargetType = " {x:Type Expander} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type Expander} " > ... < Grid x:Name = " grdHeader " Background = " {TemplateBinding Background} " > < Grid.Triggers > < EventTrigger RoutedEvent = " Grid.MouseEnter " > < EventTrigger.Actions > < BeginStoryboard x:Name = " FadeHalfIn " > < Storyboard TargetName = " tbnToggler " > ...Show All
Jeff Stouse Help!Why can't I access the WCF Service from a client winform application?
First I created a WCF service Website,the code is below: 1.The file service.cs under the folder "App_Code" is like this: [ServiceContract(Namespace="http://www.ailayer.com")] public interface ILoginService { [OperationContract] bool Login(string userName,string password); } public class LoginService : ILoginService { #region ILoginService Members //[PrincipalPermission(SecurityAction.Demand, Authenticated = true)] public bool Login(string userName, string password) { return true; } #endregion } -------------------------------------------------------------------------------------- 2.The file service.svc is like this: <% @ServiceHost Language=C# Debug="true" Service="LoginService" ...Show All
Bobs18 sample service doesn't work on Windows XP 64
Hello, I tried to make a windows service that hosts a WCF service. Naturally, I've tried the sample first. It crushes raising an error: System.ServiceModel:Incorrect function at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen() at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.DatagramChannelDemuxer`2.OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelLi ...Show All
zingsb1 I can see https site but not able to download by svcutil
Hello. Well, a couple of days ago, I put a post concerning this sample. . Since Vista was released, I'm using IIS7. (over http, I've been running the samples successfully)And I'm trying WCFSamples\TechnologySamples\Basic\Binding\WS\TransportSecurity sample. Before I just couldn't get to see the page that had https. Now I can access it by IE. But it always says that there's certification error. I don't know why cause I used the setup.bat that came with it. Anyway, I think because of it, when I try the following command svcutil https://localhost/servicemodelsamples/service.svc , I cannot download the metadata because of the certification error. Is there any solution to this How can I make this certification error disappear ...Show All
nate-d-o-double-g Creating a Solution and Project file Programmatically
HI All Relativly simple but I am not able to Get it. I want to create a .sln file and multiple .csproj files programmatically from a Windows Application. I tried using the EnvDTE80 namespace, However all the samples in there looks like they are creating the template OR new Add-in. I just want to Create the Solution with the name Given in the Text Box, Then add 2 Projects to It, 1 console app and 1 windows app. The Projects will be blank Initially Please let me know If anyone has any Idea. It would be great If you can Give some psudo code or Sample code. Thanks in Advance Amol Well Thanks. I got the Answer and I am doing good now We will follow this question in the thread "How Can I create a soluti ...Show All
NytewolfAU2k7 Scanner object
The Visual J# we have presently installed where I teach does not have many of the objects found in the java.utils package found in JAVA 5.0 Among other objects that were not found is Scanner , one used extensively in the text that we have adopted. Does the Visual J# upgrade address this problem at all is there any projection date for Visual J# to include the scanner object i like to use the visual J# but i wish i could use the scanner object. Heard Sun Java has just been opensourced (most of it) under GPL license v.2, see below: http://www.sun.com/2006-1113/feature/story.jsp https://phoneme.dev.java.net/source/browse/phoneme/ https://openjdk.dev.java.net/sourc ...Show All
mrmrjr Cancel a long process Async call
Hello all, I have a method taggued in the contract as "IsOneWay=true". This method have a long process. I m currently develop an windows application. I want to may user can cancel his request. So i do this : ChannelFactory<IWSSignIn> iSignInFactory = null; IWSSignIn signInProxy = null; iSignInFactory = new ChannelFactory<IWSSignIn>("WSSignIn"); isignInProxy = iSignInFactory.CreateChannel(); iSignInFactory.GetData(); // IsOneWay method with a long process I think that i must use abort method as this : iSignInFactory.Abort(); This work but the channel goes to close state. There is another possiblity Thanks for your help Nicolas On the ...Show All
Herru Perdana ListBoxItems and Multiple Children.
I have a custom style applied to my ListBox so that each ListBoxItem has several child controls attached to it. Once an ListBoxItem is selected, I need to access the data contained within each of the child controls. I remember reading somewhere a way to cycle through controls in situations like this, but I cannot find where the documentation was. Additionally, one of these controls is an PasswordBox. I would like the PasswordBox to get keyboard focus once its ListBoxItem has been selected. Is there away to set the focus via XAML Triggers, or can this only be done in code Thanks It might be a timing issue. Try using the PasswordBox's Dispatcher to post a call to a method which then calls Focus (or whatever works) on the ...Show All
Madhan Unit testing WPF controls with NUnit
Hi there, Has anyone had experience testing WPF controls using NUnit There are a few problems I've come across that seem to make it a pretty time consuming task: - The problems that NUnitForms tries to solve - ie. simulating a button click etc... - NUnit uses MTA Threads - in some cases WPF controls require STA threads. There's a 'CrossThreadRunnerHelper' solution out there that allows you to run a test in a separate thread. But this also makes things even more complex. Does anyone have any ideas on making this process a bit simpler Samples/Examples would be appreciated. Thanks, Ashley We've been using MbUnit happily for this task, which lets you put an attribute like this ...Show All
Lee Jensen Support tableless class inheritance
Hi, all! Given: Public Class AbstractProduct Private _ID As Integer <Column(Name:= "ID" , Storage:= "_ID" , DbType:= "int NOT NULL IDENTITY" , ID:= True , AutoGen:= True )> _ Public Overridable Property ID() As Integer Get Return _ID End Get Set ( ByVal value As Integer ) _ID = value End Set End Property Private _Name As String <Column(Name:= "Name" , Storage:= "_Name" , DbType:= "char" )> _ Public Overridable Property Name() As String Get Return _Name End Get Set ( ByV ...Show All
