|
|
Hi ,
I plaved a combobox and a listbox in a .xaml page. I used LINQ to fill combobox. I want the selected value to be displayed in the textbox. But i am getting object and not the exact value.I used like this,
var value=additem.selectedItem;
text1.text=value.ToString();
Pls help me!
Gomathi R
|
|
|
|
|
GomathiR wrote: text1.text=value.ToString();N/blockquote>
Because you are doing a ToString() on the object. You would need to use the objects porperty value.
e.g.
var value=additem.SelectedItem as YourObject;
text1.text = value.PropertyInYourObject;
You can do it in XAML itself also, databinding the Text property of text1. See if this works,
Text = ="{Binding ElementName=additem,Path=SelectedItem}"
|
|
|
|
|
|
Hi,
thank u very much for your help. Its working now.
Gomathi R
|
|
|
|
|
|
Hi all,
We develop classic business applications (relational DB, GUI etc.). We are considering implementing our business processes using WF.
We consider WF as a means of simplifying development and making maintenance of complicated logic easier (Persisting, multiple async users, etc. are not relevant. The WF replaces a synchronous call to a static method).
During the few weeks we have tested it we found out it does have some quirks and we also learned about the expected, totally different, ver 4 (though we cannot wait for it).
We have not been able to find someone with actual working experience that can tell us weather working with this technology actually pays back.
Can anyone help from their own experience?
Thanks,
Asher
|
|
|
|
|
Asher Barak wrote: Can anyone help
I don't know that you are going to get very many responses but here's mine. About 2 years ago I had to implement several business processes in MFC. It was a nightmare and took a couple of months to get it worked out. My latest project is using WPF, WCF and WF. I decided to try WF for the processes that I had to do before and see if it would work for us or not. The first workflow took maybe 3 days to create and worked the way I expected the first time out. I have had to add things to it but the core has remained the same since. Worked out really great for me. The second workflow took less than 1 day to create the base. I had to shift to other priorites so it's not quite finished but I expect that I could finish it in a couple of hours. So the WF has worked out fine for me and I think that I am going to stick with it unless I discover some really compelling reason to switch.
The big caveat here is that that I am not using any of the more advanced features of WF as yet. I am just doing some really basic stuff.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
Help humanity, join the CodeProject grid computing team here
|
|
|
|
|
|
Hi friends,
I have a MFC dll which i m trying to load in Wpf. My Dll consist of a dialog which i
am trying to embedd in WPF Browser. i have done following steps.
a)Build my dll using /clr option
b)I have created a namespace in DLL and added a class which is being derived from
HWNDHost.
c) i have overridden
protected override HandleRef BuildWindowCore(HandleRef hwndParent)
{
}
in this function i have created a dialog and returning the handle of the window.
In the Main application(WPF) i am adding the reference of the Dll, then creating the object of it and then making it as a child control of WPF panel
my applications gets the handle of the window but it crashes..
Can anyone correct my steps if they are wrong
Thanks in Advance
Regards
Samir Satardekar
|
|
|
|
|
Did you look at this[^] ?
|
|
|
|
|
|
|
|
you will need to declare the 'ctrl' namespace in your XAML namespaces.
|
|
|
|
|
Stop reposting in different forums. I seen your post in the C# forum also. Stick to a forum.
|
|
|
|
|
I have a WPF application (client/server). i had created .exe file. when i install it on my client box it will install all the the dll's in the program files/manufactuere/ productname folder.It will install dll's of different languages also( spanish dll's in ES folder, portugese dll's in pt folder in program files/manufactuere/ productname)
What i need is when client is installing it i need to give him an option to select the language. based on the language it should install the concerning dll's in the client box.
Setup project is not giving any option to select language.
Please help thanks.
|
|
|
|
|
|
I couldn't run the vbscript in that post its giving me error.
API Error in this line set basedb = wi.OpenDatabase("C:\SetupEN.msi", 0)
Please help
thanks.
|
|
|
|
|
yes i did whole steps accordingly but when i try to install setupEn.msi its displaying in chinese.
i was wondering how would i get the options.
|
|
|
|
|
|
Hello everyone,
I made some progress. I use ItemsControl, DataTemplates an I can move my nodes over canvas.
Code:
public class NetworkNode
{
string Caption;
string Type;
int ID = 0;
int X = 0;
int Y = 0;
}
public class EndNode : NetworkNode {}
public class RouterNode : NetworkNode {}
public class Connection
{
int StartNode = 0;
int EndNode = 0;
}
Xaml:
<ItemsControl>
<ItemsControl.Items>
<cc:EndNode ID="0" Caption="Node" X="70" Y="20"/>
<cc:RouterNode ID="1" Caption="Router" X="220" Y="120"/>
<cc:EndNode ID="2" Caption="Router" X="120" Y="50"/>
<cc:Connection StartNode="0" EndNode="1"/>
<cc:Connection StartNode="1" EndNode="2"/>
</ItemsControl.Items>
</ItemsControl>
Now I try to solve how to connect the nodes. The problem is I want to data bind two nodes according to their ID's. This functionality provides for example Graphite for WPF (http://www.orbifold.net/default/?p=1326) but the source code is not available. I guess some binding converter will be required as well as multiple binding. But for me as beginner is hard to put all pieces together. Any ideas? Thank you.
|
|
|
|
|
|
Is anyone using Moonlight 2.0?? I'm looking at using it for my next project instead of Silverlight and was wondering if anyone had any comments re Moonlight/Silverlight compatibility..
Thanks in advance
Stuart
appSynergy.com - blur the boundaries of your devices
Capture public beta now open! Assisting our users to Get Things Done
Sign-up here
|
|
|
|
|
Moonlight 2.0 doesn't exist yet unless you're talking about alpha.
|
|
|
|