|
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.
|
|
|
|
|
Please post this in the Visual C++ forums - you'll have more of a chance there. This forum is for Windows Presentation Foundation, Windows Communication Foundation and Workflow Foundation.
"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
|
|
|
|
|
sorry i have some mistake
|
|
|
|
|
Im trying to write a poker application in WPF and Im having trouble figuring out on how to animate "dealing of cards" from dealer to player seats.
The dealer position is located on the topmost-center position and each chair is located on every edge of the table.
The chairs are positioned and aligned using Grid using Grid.Column and Grid.Row this way when the window resizes all elements in the window follows up.
-How can i animate a card object from dealer seat to players seat position?
-What if the window resizes?
-how can i set the target for the animation?
for example, I would like to deal card at player seat 5 located at Grid.Row = 3 Grid.Column = 2?
by this the card animation will target the grid location of the said player..
Can you guys give me idea on how to do this?
Thanks,
|
|
|
|
|
Hi
Maybe you could switch the grid with something else, wich will give you more granular control over the position of the elements - maybe canvas. The other aproach I can think of is to animate the ScaleTransform of each element.
Uros
|
|
|
|
|
How can I set the Visual Studio as the default external editor in Blend 3?
I know that by right clicking on C# or XAML file I can get a context menu in which VS is one of the items. But I mean something different: in the Properties panel, under "Events", when I write the event name and then want to jump to VS in order to edit the event.
Thanks,
David
|
|
|
|