For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
is it true that MS stopped developing Silverlight? what is the last version of Silverlight was release by MS ?
i like to know if some one discuss what is the reason for which MS stopped development of Silverlight?
I bining data to datagrid using wpf user control i don't know how to set pagging in datagrid.i saw many sites for datagrid pagging but controls are available but i need usercontrol in datagrid with pagging also same user control like asp.net gridview pagging.
Do you actually need all the direction detail on the binding, I would think the code behind is the datacontext for the UC and a simple binding to the property should suffice. Obviously I have not tried this
Never underestimate the power of human stupidity
Silverlight/C# project, I added an image object with a default image, the following code was created
How can I change the image when a button is clicked?
I tried this
image1.Source = new BitmapImage(new Uri("http://tpsa11/images/shi.bmp", UriKind.RelativeOrAbsolute));
but does not seem to work
I'm working on a WPF app. The DAL is behind an MVC 4 WebAPI hitting SQL.
I have a one-to-many collection of Addresses & phones. The Address object contains a list of Phone objects. Each address can contain one or many phones.
If I create the phone list using List then the UI doesn't see new phones when added. If I create the list using ObservableCollection then when I return the collection from the DAL the phones list is null. The list of phones doesn't serialize coming back from through the API.
What's wrong here? What's the right way to do this?
publicpartialclass MainWindow : Window
System.Windows.Forms.PropertyGrid grid = new System.Windows.Forms.PropertyGrid();
grid.SelectedObject = this; // Display the entire MainWindow's properties in the PropertyGrid
grid.Width = 200;
grid.Height = 100;
System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost();
host.Child = grid;
StackPanel panel = new StackPanel();
obj.ToolTip = panel;
Don't forget to reference to System.Sindows.Forms and System.Windows.Forms.Inegration DLL-files.
In the XAML code, notice I use a Button to be the host of the ToolTip. Any recommendation for a better object to host the ToolTip?
I then create the WindowsFormsHost object to host the PropertyGrid. Finally storing the WindowsFormsHost in a StackPanel which I assign to the Button's ToolTip property.
I was not able to assign the WindowsFormsHost to the Button's ToolTip property. obj.ToolTip = host; // Will Fail
That failed and throwed an ArgumentException when I hovered the mouse curser over the button. With a StackPanel it didn't crash.
When hovering the mouse curser over the button the result is just a white box and the PropertyGrid is not visible
Iam trying to configure a service for access over both https and http from a silverlight 4 application. I am able to access the service over https but not over http. I have made some research over the net but can't seem to get the configuration right.
Below is my current settings in the my web.config file.
What do i have mis-configured above that is making the calls to the service fail on http.
I cannot access the service via http but it works fine over https. And i have a requirement to support both https and http
Please help on the approach on how will I be able to create an WPF application with requirements below:
- The tool should allow the user to open an image file and draw rectangular areas on top of it that correspond to clickable portions of the image.
- Once the rectangular areas are already placed on top of image, the app will capture the Left, Top positions and Height and Width of rectangular areas.
I do wonder what your expectations for this message are?
Create a project
add a image control to the main form
add the controls to allow the user to select an image file
place the image on the form
create the controls to begin positioning the rectangles
record the position of the rectangles.
Just like you said!
Never underestimate the power of human stupidity