|
Try doing a "clean solution" and save again.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Hello.
I had already tried to clean the solution and the problem subsisted. I fix it by deleting the obj folder where the mainpage.g.cs is stored.
Thanks any way for the tip.
regards jonatan.
|
|
|
|
|
jonatan_556 wrote: I fix it by deleting the obj folder where the mainpage.g.cs is stored.
Great .
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Hi, I want to create a MDI application in WPF which will contain some "x" tabs each having their own set of controls such as "Text boxes", "Combo boxes", "IP Address control" etc.
The no of tabs and the list of controls to be displayed in each tab are available in a XML file.
How to implement this?
Any help on this is highly appreciated.
|
|
|
|
|
In the mean time I am giving here steps. If you stuck anywhere then free to ask here. Thanks.
Step: 1- Arrange all data into XML properly. I am assuming each item having it's all required information.
Step: 2-
Crate a class contais that contains all required properties which can contain the XML item data.
Step: 3-
Load all XML tab item data using Linq in Generic list (Like: List<tabliteminfo>)
XDocument xmlDoc = XDocument.Load("TabItemsData.xml");
List<TabItemInfo> tabItemInfoList= (from tabItem in xmlDoc.Descendants("TabItems")
select new TabItemInfo
{
TabItemID =int.Parse(tabItem.Element("TabItemId").Value),
TabName = tabItem.Element("TabName").Value,
}).ToList<TabItemInfo>();
Step: 4-
On WPF window. Creat a Tabcontrol without any tabitem.
Note: No need to take Tabcontrol at design time. You can also take at runtime and add it into Grid or Stack Panel whatever panel are using.
Load all controls items as tab item.
foreach (TabItemInfo tabItemInfo in tabItemInfoList)
{
TabItem tabItem = new TabItem();
tabItem.Header = tabItemInfo.TabName;
moduleTabControls.Items.Add(tabItem);
}
Hope so it will help you.
Thanks for your patience
Parwej Ahamad
ahamad.parwej@gmail.com
modified on Tuesday, March 30, 2010 11:18 PM
|
|
|
|
|
Thanks Parwej. I will try this and let you know.
|
|
|
|
|
Dear friends
i have some clarification
i have Image in xaml ... i want to bind command for "double click" of the image ..
and i have the command in my view model.. how to do that?
can some one give me with example
thank you
|
|
|
|
|
Have a read of this thread[^]. You need an InputBinding, and this explains what you need to do.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
You can use a behavior or dependency property for double click instead of command.
|
|
|
|
|
Hi all,
I am new to the WPF arena and am trying to get started. I have created a simple winform containing a treeview and an elementhost containing my XAML. The XAML contains a textbox. When I select a node in the treeview I want to pass the node name to the textbox.
Everything is running fine but I do not know how to reference the controls within an XAML from the hosting winform. Any ideas, pointers, references I can look at?
|
|
|
|
|
Use this code:
Text="{Binding ElementName=treeViewControlID,
Path=SelectedNode.Text}"
I am not sure "SelectedNode.Text" is available but it may be kind of property. If it is not workable then post here.
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
You can samply convert the child control to TextBox. Try this:
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{
System.Windows.Controls.TextBox tb = (System.Windows.Controls.TextBox)(elementHost1.Child);
tb.Text = e.Node.Name;
}
modified 27-May-14 4:38am.
|
|
|
|
|
i want to animate the ListBoxItem while Scrolling. Any body have any Idea How i can do it Plz plz Give me some hints;
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
I got the Answere. Just Create a custom Panel and implement iScrollInfo interface.
Here is the Link
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
hi ..
I have added a user control to my aspx page & my aspx page take long time for a loading page.
any solution??
thnxx
|
|
|
|
|
Just adding a user control to a page should not slow down your application.
I can think of three things
1) There might be lot of stuff on your user control (converters etc) that could be slowing you down.
2) Your user control might be accessing a web service that might be slowing things down.
3) Once you deploy your application, the xap file is downloaded to your local machine. This could be taking some time. However, if you are running through your app through Visual Studio, it should not very slow.
|
|
|
|
|
yes m using web service to load my data from database & yes here is alot of staff that might be slowing down User Control.
Any solution??? how to prevent User Control slowing down???
|
|
|
|
|
Hi urooj_mahmood,
First thing, call web service asynchronously inside your Loaded event & not inside the constructor. This will load the application & then call the service. Always try to use Async call else, the app will get hang if response is not coming fast.
Second, if your XAP is big enough try to split your whole solution in multiple silverlight application. This will generate multiple XAPs instead of a single XAP. Then use On Demand Download to load your require XAP files.
If you do those steps, your application will load first enough than your current one.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets
|
|
|
|
|
|
hi.. can anyone solve my problem.
I've already following an e-book about silverligth. I've been installed all software that they need on a project. Here I've got a problem while open test.xaml that must be shown an object/image. But in IE 8 (support silverligth) report : an error occured in the application uou were using, bla bla bla...
on e-book, the instruction is convert an image .png to .pdf, and than change the extension pdf to ai, and than open the .ai in expression design and change this file to .xaml..
But i can't load this file.. help please..
|
|
|
|
|
dwi mustikawati wrote: test.xaml that must be shown an object/image.
Not sure I understand your problem.
A xaml file is not an image.
You can open it in Visual Studio or a text editor like notepad.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
in this project I make a game.
I've been downloaded an image with .png extension that edit it's vector with Inkscape than to make it compatible with the newest AI format so I change this .png into .pdf extension...
expression design can read this .pdf, but it requires the file to have ai. format. that's way, I needed to rename the file exported from Inkscape as PDF.
However, I didn't export to XAML from Inkscape because there are some incompatbilites in that conversion. The most secure way to export to XAML these days is using Expression Design.
But when I load this XAML in browser, it can't shown my file..
|
|
|
|
|
Can you open the XAML using Expression Blend and see whether it is opening perfectly or giving some errors. If so, there might be some issue in XAML, may be one reason of issue in conversion.
Let me know what happen after opening it in Expression Blend. If you don't have Blend installed, try to download the trial version from Microsoft Site.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets
|
|
|
|
|
I'm sorry for the late reply.. I decide to change the image with image control..
i'd like to use button template. thx for your respons.. help me if i have any problem.. i'm newbie. here..
|
|
|
|
|
Hi i am using VC7 and i want to connect mysql 5.1 through odbc driver mysql 5.0.
i have conncect database by cdatabase class . after successfuly open the database we called open method of Crecordset but it give exception.
CRecordSet rs(m_db);//
rs.open(CRecordSet::Dynaset,"Select * form Tablename",CRecordSet::none);
above line guve exception aboiut dynaset. we are unable to call open function of Crecordset.
|
|
|
|