Ok, I shall try to explain as thoroughly as possible the problem I'm experiencing.
I have TextBox in a tab on the left of my window (Text1). The rest of the window has another TextBox (Text2). As I type into Text2, if I press F12, I grab the current word and try to put it into Text property on the TextBox Text1. Although the TextChanged event fires and I can see its Text property has been set, visually it isn't set and the code dependant on the new value runs and then 'unruns' if you follow me.
I don't know if this is a focus issue or something, but there are no exceptions in the output window and no more major breakages.
Does anyone have any idea what I might be missing here?
Yeah, this is WPF. I know what you mean, but I don't set the Text property anywhere else or set e.Handled to true or false anywhere.
When I set the Text property, TextChanged fires on that TextBox as normal. In that handler, I read the value out to use it for other purposes. All this code does run ok, but visually, it's as if nothing happened!
This is odd. I'm going to try and create a simple WPF app with 2 TextBoxes and do something similar.
If you have any other ideas, I'd love to hear them.
I have a maintenance database table(having ColA(primary) and ColB(varchar)) being records inserted using asynchronous web service.Before inserting a new record into table on save button click event,i have to check uniqueness of record.So, When i send query request to check with given record Webservice completed event is raised after the save button click event.So, I am not able to check the uniqueness using asynchronous web services.Please help me in finding a solution for this.
I am altering my existing application developed using MS Access + VBA. I have created new window (wpf) which handles some tasks. I want this window to be loaded on button click from old MS Access application.
I'm pretty sure my recommendation will fix both your issues.
When Silverlight 3 was released, I uninstalled Silverlight,
the silverlight VS tools, and the toolkit. Then I downloaded and
installed (in order) everything on the Get Started Building Silverlight 3 Applications[^]
page. Except for some namespace shuffling (they keep changing stuff for WPF
compatibility and when controls get migrated from the toolkit to the
framework) everything works correctly.
The toolkit is essentially beta, so I highly recommend keeping
up the latest version. They are fixing stuff every few months.
July is not the newest.
I am working on a silverlight application. In this I need to access session variables in silverlight application.For this I created a WCF service to get the session variable. For this I used the following code:
In web.config file:
but I am getting the following error:
System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid. Check InnerException for exception details. ---> System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
If any one have any idea to solve this or directly access the session variable in silverlight application please reply me.
I am getting an exception while calling a WCF service in silver lght application.This exception is as below.
An exception occurred during the operation, making the result invalid. Check InnerException for exception details. ---> System.InvalidOperationException: The underlying channel factory could not be created because no binding information was found in the configuration file for endpoint with name '*'. Please check the endpoint configuration section with name '*' to ensure that binding information is present and correct.
If anyone have idea to solve this please reply me.
First idea is this: follow the suggestion of the exception and verify your binding information. You have to have a basicHTTPBinding in order to use WCF with Silverlight. Try Googling "Using WCF with Silverlight 3.0" and you will discover a wealth of information.
I have datagrid control being data bind from database using webservice in which there are two columns called ColA and ColB.
ColA is HyperlinkButton(DataGridTemplateColumn) and ColB is DataGridTextColumn. There is Click event for HyperlinkButton(ColA),in which I am trying get the content of both Column values(ColA and ColB).It is able to read ColA but not ColB from Code.Can anyone help me regarding this.
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-23 9:14