|
Mahesha999 wrote: I didnt got reply on msdn.
I'm not surprised you did not get a response, do you actually have a business case for this interface or is it something you have thought up? To me it sounds like a nightmare, but then I'm a LOB developer.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mahesha999 wrote: Please help. I have started learning WPF. So I am not a Pro in WPF, but good at
C#.NET, ASP.NET and ADO.NET. I didnt got reply on msdn. I am in hurry. So
pleaseeeeeeee help.
Unfortunately, what you are trying to achieve is actually quite complex, requiring quite a bit of plumbing work; including storing and retrieving these values, managing binding to the items, and much, much more. You may be in a hurry, but I doubt anyone is going to have the time to help you come up with a complete solution here.
|
|
|
|
|
Thanks alot for atleast commenting. Actually late but finally I got some response on MSDN here: http://social.msdn.microsoft.com/Forums/en/wpf/thread/abc3c8e2-2105-4d2e-9276-de6ff9c22475?prof=required[^]
Now what I have thought, I will create a custom styled WPF buttons, and store its properties in separate XML, when user selects any of them, I will retrieve the properties from XML and when user changes the properties I will change Xml. Rough idea. And yes I will be using list to store mapping between control name and Xml element.
Any thoughts? Anything that can help solve any of the part of my effort. Like in that MSDN thread, I got clue to use Xml Data Source. Actually nice suggestion. What you think. Should I use XML data source or XML API like XmlReader?
Thank you for your reply. You guys are seriously caring. 
|
|
|
|
|
How quickly do you need this? I am seriously slammed this week working on a couple of articles for Code Project, but if you could wait until next week, I could knock up a blog post on a simple way to do this using MVVM principles.
|
|
|
|
|
Thanks man, but I have very less time in hand. Hmm... just a week. Fine but I feel still it will be great to just do, since such scenario is quite rare and some people will surely come across it. Though I want to show the output within a week, I have a thought of extending my work for more time after I show the output, since I am seriously loving what I am doing and want to take things to perfection. If you get the time and you feel that other people will like it, just do that.
Anyway thanks a lot. And yes any quick advice to do this quickly 
|
|
|
|
|
If you want to see how others have handled theming, you might want to take a look at this[^] project. The code is freely available, and simple to understand.
|
|
|
|
|
|
How to config and upload/download file into the domain by filezilla?
Which is the folder in host site where the project home file will be uploaded?
|
|
|
|
|
Is this related to Silverlight somehow? If so, what code do you currently have? Without that, it will be hard to guide you further.
|
|
|
|
|
You can host Silverlight on a Linux server! Really...
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Is it possible to drag items (e.g. images) out of a Silverlight 5 application and drop it to another target (on desktop)? Any ideas if and how this is working? I guess this would be only possbile running the application out-of-browser with elevated trust settings enabled.
|
|
|
|
|
|
This example shows how to drop items INTO a Silverlight application and only mentions that "you cannot drag and drop objects between applications". I also think the link you posted is from 2009. Maybe in Silverlight 5 it is possible to drop FROM the Silverlight app TO another application?
|
|
|
|
|
Uhm how do you expect Silverlight to manage the target application, that is where you need to deal with the drop operation. If you could embed the target in the Silverlight app you may have a chance (like the old com object in winforms) but you can't do that anyway.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
how I can adjust the size of the iamge for what will be displayed in the picbox and does not appear with a large
if (newdialog.ShowDialog () == DialogResult.OK)
{
txtpiece.Text = newdialog.FileName;
PicBox.Image Image.FromFile = (newdialog.FileName);
PicBox.Enabled = false;
}
|
|
|
|
|
Good evening, I am trying to develop an application with c # for sending emails, I developed a small publisher in a solution at hand, and I develop the game of sending mail to a solution by dna, how can I integrate the editor in the area of text that is at the 2 nd solution, is what I added commme reference? and how can I put in the form of the second solution?
|
|
|
|
|
DON'T CROSSPOST!!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
You have been told many times now. Stop cross posting.
|
|
|
|
|
|
Hello guys!
First I want to say that I'm quite new to WPF and XAML programming languages.
I'm currently trying to make a calendar (Custom Control) in WPF and to be onest I'm not quite sure how to approach this task. Although I've searched all over the internet I couldn't find a pleasing answer. This is the link where I've found some ideas:
http://stackoverflow.com/questions/2125987/create-a-custom-full-sized-calendar-control[^]
Right now I'm thinking on making 3 diffrent Custom Controls which will get combined to create the Calendar. The explications are in the image below:
http://imageshack.us/photo/my-images/851/explicatii.jpg/[^]
I've chosen this approach because will be very easy to create the design and the effects on MouseOver and MouseClick events, but the main problem with it is that I'm not sure on how I can create the logistics of the Calendar:
1st problem: How to bind the data between all of this Controls in order to create the logistics of a basic Calendar;
2nd problem: If the appoiment is longer than 1 day is there a chance to bind the data between this and the next Custom Control (this day and next day, because every day will be a Costum Control).
My question is if this is a good approach? And, if it isn't could you please help me out with some ideas?
Thanks in advance!

|
|
|
|
|
|
Don't crosspost. Pick a forum and stick with it.
|
|
|
|
|
Hi all,
i have ListBox with menu and MenuItem_PreviewMouseDown:
private void MenuItem_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
if (listBoxFiles.Items.Count != 0)
{
Point point = PointToScreen(Mouse.GetPosition(this));
}
}
as you can see i already have the Point who represent the file who clicked on the mane, how can i find the index who represent the file from my ListBox ?
thanks
|
|
|
|
|
Use the VisualTreeHelper's VisualTreeHelper.FindElementsInHostCoordinates method[^].
|
|
|
|