|
So...I've been looking for WF threads to see what kinds of questions ppl have been asking, and what the solutions were. I dug through like 10 pages or so of WPF questions and finally gave up. Could we split off the WF and WCF forums so that the questions don't get drowned in the deluge of WPF?
Thanks.
|
|
|
|
|
Hi,
deciding on new forums, and how to partition the topics, must be a challenge.
Initially a new forum risks remaining rather empty, after a couple of years a forum may be flooded
and deserving a split.
Anyhow, searching the all the forums for "WF" currently yields 35 hits; you ar familiar with the
"Search Messages" button, are you?
|
|
|
|
|
How many ways can you search for all the variations of WF? WF, WWF, Windows Workflow, Windows Workflow Foundation, Workflow Foundation, Workflow. Throw in more targeted questions like sequence, action, etc., and searching becomes a royal pain. Hence the request.
|
|
|
|
|
As a request, you better post in the "Site Suggestions and Bugs" forum.
|
|
|
|
|
|
I am working on a project which requires Globalization, and have run into something I'm really not sure how to address. Any thoughts would be appreciated.
For the sake of brevity, let's say my solution has two projects, a WPF application for the GUI and a standard class library for the DAL.
The WPF application has a ResourceDictionary containing all of the strings I will need to Localize. I would like this ResourceDictionary to contain the Strings used for displaying validation error messages to the user.
The DAL class library contains my Business Objects, which implement IDataErrorInfo to supply validation logic.
The question, then, is what is the best way to supply my localized strings (which exist in the WPF project) to my business objects (which exist in the standard class library)?
Thanks,
Keith
|
|
|
|
|
|
I have read the article you are referencing. It is using resx files for the WPF application's resources, not ResourceDictionaries. Therefore, it is not relevant to the problem domain of my OP.
Thanks,
Keith
|
|
|
|
|
Hi All,
We have to develope a desktop App. using WPF. Our application will be requesting a web service by posting requestAction and requestType .
The response from the web server is somewhat like this {
"TotalCount": 0,
"Data": [
{
"ObjectInstanceID": 1,
"LocationID": 3001,
"ObjectDefinitionID": 1,
"Name": "Boiler",
"Location": {
"LocationID": 3001,
"CompanyID": 3007,
"Name": "Name",
"Description": "Description",
"County": "",
"FIPSCode": "FIPSCode",
"SICCode": "SICCode",
"IsActive": true,
"AccessInfo": "AccessInfo",
"AddressID": 1036,
"HouseNumberLow": "lowHouse",
"City": "city",
"State": "st",
"Street": "street",
"Suite": "suite",
"HouseNumberHigh": "HighHouse",
"Zip": "12345",
"Company": {
"CompanyID": 3007,
"Name": "wunder",
"AddressLine1": "593",
"AddressLine2": "kdfk",
"City": "fair",
"State": "bh",
"Zip": "12345"
}
}
},
{
"ObjectInstanceID": 5,
"LocationID": 3027,
"ObjectDefinitionID": 1,
"Name": "Boiler",
"Location": {
"LocationID": 3027,
"CompanyID": 3007,
"Name": "hhg",
"Description": "hgghfd",
"County": "",
"FIPSCode": "hgdh",
"SICCode": "hgdh",
"IsActive": true,
"AccessInfo": "hgd",
"AddressID": 1139,
"HouseNumberLow": "l",
"City": "l",
"State": "ll",
"Street": "l",
"Suite": "ll",
"HouseNumberHigh": "l",
"Zip": "ll",
"Company": {
"CompanyID": 3007,
"Name": "wunder",
"AddressLine1": "593",
"AddressLine2": "kdfk",
"City": "fair",
"State": "bh",
"Zip": "12345"
}
}
}
],
"success": true,
"GeneralError": null,
"StackTrace": null,
"ItemID": 0,
"errors": [],
"stackTraces": [],
"IsLoggedIn": true
}
We would like to deserialize this response into a dictionary, but because of syntax "Data[", it thinks that it is an array.
I would like to generate wpf controls based on this out put. Does anyone know how to proceed?
Thanks in advance for your help,
Veena
|
|
|
|
|
Why not take the data, load into class objects and binding the object to a form or the collection of objects to a ListBox. The ListBox would use a WPF DataTemplate to render the controls. Lots of examples here on Code Project for data binding and data templates.
This is very straightforward in WPF and should be fun to code.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Hi All,
I'm just doing some reading on backwards compatibility for WCF services to enable them for use over the wire by ASP.NET and .NET2.0 clients.
I'm getting some conflicting info from blogs posts and wotnot (isn't that always the case?)
Obviously BasicHTTPBinding doesn't have the nice built in security contexts that you get with WSHTTPBinding but as I understand it as long as you configure the basic binding to use SSL Transport security (with certs) you should be fine using basicHTTPBinding. Considering that we need this backwards compatibility we don't really have any options other than BasicHTTPBinding ...
Has anyone got any real world use in this kind of setup? How did it go? Are there any gotchas to watch out for?
Cheers,
|
|
|
|
|
When we used it, it was fairly painless, but you may want to read this[^] article to allay any fears.
|
|
|
|
|
|
Probably not relvant, but if you want to consume them from Silverlight, it only supports httpBasicBinding as well.
|
|
|
|
|
I'm trying to do a simple thing and WPF doesn't allow me to. I want to show a login form before running the main form. The login does run but the main form doesn't. It throws an ExecutionEngineException with message “Exception of type 'System.ExecutionEngineException' was thrown.” with no inner exception.
I hope someone tell me the right way to do it before I turn to a workaround. Thank you in advance.
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
var login = new Login();
if (login.ShowDialog() == true)
{
var main = new MainForm();
Run(main);
}
}
}
Eslam Afifi
|
|
|
|
|
It turned out to be a low memory issue since I was running a virtual machine on a 1 GB RAM . Sorry if I wasted your time.
.Show works so does .ShowDialog
.Run doesn't since it's not what it is intended to do.
Eslam Afifi
|
|
|
|
|
Hi Everybody,
I have Silverlight application and WCF Service under one solution.In my application i'm bionding some data ( from sql server ) to DataGrid. If i run this application in my system result is coming properly i mean data was binding to datagrid correctly.
If i publish this website in my IIS by using new -> virtual directory. Error is coming like " Unhandled Error in Silverlight 2 Application An Exception occurred during the operation, making the result invalid ". For reference i'm giving my web.config file also here:
<system.servicemodel>
<behaviors>
<servicebehaviors>
<behavior name="TestProject.Web.TestSilverLightServiceBehavior">
<servicemetadata httpgetenabled="true" />
<servicedebug includeexceptiondetailinfaults="false" />
</behavior>
</servicebehaviors>
</behaviors>
<servicehostingenvironment aspnetcompatibilityenabled="true" />
<services>
<service behaviorconfiguration="TestProject.Web.TestSilverLightServiceBehavior" name="TestProject.Web.TestSilverLightService">
<endpoint address="http://localhost/TestSilverLightService.svc" binding="basicHttpBinding" contract="TestProject.Web.TestSilverLightService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.servicemodel>
endpoint address i tried in different ways also:
like
1. <endpoint address="" binding="basicHttpBinding" contract="TestProject.Web.TestSilverLightService" />
2. <endpoint address="http://localhost/TestSilverLightService.svc" binding="basicHttpBinding" contract="TestProject.Web.TestSilverLightService" />
3. <endpoint address="http://wm8bgfhos-062a(mySystemName)/ TestSilverLightService.svc" binding="basicHttpBinding" contract="TestProject.Web.TestSilverLightService" />
Please help me to solve this issue.
Thanks in advance from core of my heart
|
|
|
|
|
Publish the WCF service on your host, and then check you can access the metadata. (the .svc file)
|
|
|
|
|
Hi All,
I'm having horrendous problems getting a WCF service secured and available outside our network domain.
I've got little to no IIS experience to boot making this whole process really painful at the moment. Does anyone know of any good links on how to show a dummy what is actually required in order to make this work?
|
|
|
|
|
|
Thanks so much for this Mark, I'm going to work my way through the links you provided this morning.
I'm on IIS6 on Server2003 ... do you think it would be prudent to upgrade this to IIS7 before moving forward?
|
|
|
|
|
Well - IIS7 was introduced with Vista. You can't run it on Server 2003.
|
|
|
|
|
Wooo!
I love it when things are clear cut!
Thanks Pete.
|
|
|
|
|
Dear All,
I just want to redesign one of our unmanaged VC++ apps.
I have drilled WPF for several weeks,but no solution has been found.
Because I can not play video stream from our unmanaged VC++ apps in UI.(I want to use CCW for communication between the managed WPF UI and unmanaged VC++ apps)
I am a beginner in programe, and thirsty for a solution.
Any hint and suggestion will be appreciated!
|
|
|
|
|
I don't know what the best solution for you is, but in my opinion
WPF isn't the best solution if you stay with C++.
First, WPF is managed. Second, you'll get no designer support in
Visual Studio or Expression for C++.
If WPF's features and programming model suit your needs, I would use
C# for the UI, keep your existing native C++ in DLLs if necessary, and
use C++/CLI to bridge between the managed and native code.
In fact, that's what I did/do
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|