|
ha...
yes, I will use a combobox.
It would have been interesting to build my own combobox.
|
|
|
|
|
I've changed my mind and now I need a DataGrid displayed as a popup by the ComboBox.
I would like to do this only with xaml. I try to put the datagrid inside the ContentPresenter but it is not possible.
Any ideea how to do this?
Is it a good Ideea to have something like this:
inside
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBox">
to put a StackPanel with a text box and a DataGrid by default hidden.
Only when I put text inside textbox to activate it?
like:
<Style TargetType="ComboBox" x:Key="newTemplate">
<!--Set the Background, Foreground, FontSize, Width,
Height, Margin, and Template properties for
the Button.-->
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBox">
<StackPanel>
<TextBox>
Here is the text box, to be added a button down
</TextBox>
<DataGrid
<DataGrid.Columns>
</DataGrid>
</StackPanel>
modified 12-Mar-12 11:31am.
|
|
|
|
|
Hi,
I have a silverlight 3 application, which calls Workflow service to send mails to students (say 10 students).
Calling the workflow service to send mail to 10 students works fine for the first time. And this fails when I hit the service for the second time.
The exception which I get is the "CommunicationException() was unhandled by user code: The remote server returned an error: NotFound."
The exception occurs in the generated Reference.cs file :
public bool EndMailingDetails(System.IAsyncResult result)
{
object[] _args = new object[0];
bool _result = ((bool)(base.EndInvoke
("MailingDetails", _args, result)));
return _result;
}
I have doubt that the workflow instance which got intiated when I called the workflow service for the first time still exists which blocks me from calling the the same workflow service for the second time.
However I am not able to figure out where this workflow instanace gets created and how to destroy the already existing instance, to call the service without exceptions for the next time.
Any help would be of great help.
Thanks
|
|
|
|
|
Hi there, in my app, I want to allow user to change the style of the individual WPF element, say Button, Label etc and when it is changed, the app should show the modified style for that element. Additionally, I want to load these modifiable elements as the user chooses to modify.
For eg. consider there is a listbox listing all the style modifiable UI elements.
When user selects MyStyleButton, the app should show the button with last customized style. Then the user should be able to customize the look and feel say color using the color picker.
When the user opens the app next time, he should see the changes color.
The same can be though of if the user selects say MyStyleLabel from listbox, and changes the porperty say Font. So how should I load the desired Label, how should I store the changed style values?
Also how can I load those customization UI, like ColorPicker given say I have stored "Color" in the Tag property of the button and "Font" for label.
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. Thank you.
|
|
|
|
|
|
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.
|
|
|
|
|