In WPF I want to change default close behaviour of some window, so that when user clics red close button the window does not close, it merely hides (and call some method as well). How can I do that?
I have a WPF ListBox control and I'm setting it's "ItemsSource" to a collection of item objects. How can I bind the "IsSelected" property of the ListBoxItem to a "Selected" property of a corresponding item object without having an instance of the object to set as a binding.Source?
Hi,
I have the DataTable with following columns:
id, Name, Description, ParentId
and would like to create a WPF control (.NET 4.0 framework) which implements a combobox which displays the names which are bound to values of id. So when the user selects a name displayed in the combobox the behind logic has to retrieve its id value.
I would be very thankful if anyone could show the way of doing the described above.
Hi All
I've just started using WPF. But I'm trying to add my code that (from Winforms) enables the user to drag any control whereever they wish at runtime. But I can't seem to get the current Location of the mouse... Eh? There is no Location for Mouse? :(
We have an WPF Application build on .net framework 3.5.
Some testers find if they uninstall .net framework 3.5, but install .net framework 4.0, our APP fails to launch itself.
Dose this mean that .net framework 4.0 does not include all 3.5 libs, and users have to install .net 3.5 even though they have 4.0?
I see here are some migration issues listed by Microsoft
http://msdn.microsoft.com/en-us/library/ee941656.aspx#windows_presentation_foundation_wpf
Are they all breaking changes so that the backward compatibility is ruined?
Thanks
I'm relatively new to .Net 4 and I am creating my FIRST WPF application using a MDB as a backend datasource.
I designed my UI. I have a TextField (called Name), a Combobox (called Division) and a DataGrid (called dataGrid1).
The only problem I'm having is figuring out how to link my DataGrid to display data from the DataSource. and load the data in the Windows1_Loaded method.
Thanks
Using C# and WPF under .net (rather than WindowsForms or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some mythical thing called a mutex, rarely can I find someone that bothers to stop and explain what one of these are.
The code needs to also inform the already running instance that the user tried to start a second one, and maybe also pass any command line arguments if any existed.
Hi,
I'm writing an application in wpf that uses MVVM. I wondered if I could use ado.net entity data model as a model in MVVM? Is it the same? If not, why?
Thanks for any help.
Regards,
Ev.
I understand the View and ViewModel portions of MVVM, but what I'm still really fuzzy on is how you connect your application to data sources on the Internet (say you're grabbing some XML or JSON from the web), and specifically, where that code goes in your application. Can someone provide or link to some example code or a tutorial that walks you through setting up a simple WPF (or Silverlight) application that fetches data from the Web?
I would like to develop a small notifications application for Windows in .NET that docks on the right/left side of the screen (not consuming more than 300px), should always be visible and force the rest of windows to not overlap this application (something like the old Office taskbar or Vista's Sidebar). I have no idea where to start. Can it be done using XAML/WPF? Since I haven't even started coding any option is valid at this point.
Thanks!
Hi all,
I am using wpf listview horizentally. When i fixed the width of listview the horizental scrollbar is shown automatically.
I want to change its appearence.
like my listview shown on middle and both corners have scroll buttons left and right.
How can i achive this please let me know its urgent....
I'm writing a C# WPF application that creates a video capture of the active window. What I want to do is overlay a transparent .png file in the corner of the active window while a capture is in progress so that all the videos created by my application are watermarked.
If I have the IntPntr handle of the window I am capturing and an image file - what is the best way to go about this?
Thanks
Hi all. I can't figure out the formula to compute the bank (roll) angle from the up and lookat vectors, though I feel this angle must be measured in tha plan normal to the lookat vector. Any hint appreciated. FYI I use WPF.
Does WPF support multiple binding expressions in one statement?
Something along the lines of the following:
<TextBlock Text="{Binding Path=OrderID} shipped on {Binding Path=OrderDate}"/>
I'm guessing that it does but I think I just don't have the correct syntax.
We have a Prism/WPF application and are using an expander to animate a menu.
When the expander expands, the content is rendered behind the main region's content.
The menu is in a different region than the content it is supposed to overlay (since the menu governs what items go into that region) which is why this is occurring. We have tried setting the Z-Index of the ContentControls to no avail.
I am using Eazfuscator.NET 3.0.41 to obfuscate a (VS 2010) WPF 4 application. After obfuscating, when I double click the exe file it's throwing an error message like this.
"Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException"
Is there a way I could enable some sort of a logging to check where it's going wrong ? How can I solve this problem? please advice
Let's consider a WPF client-server application.
What is the best practice to create the client, so that every time it is launched, it checks for updates and if any available, update the client application?
Our performance testing team is running test on our WPF-WCF-Sql Server application and they are facing connection timeout after the load goes above 75 users
Error -27796: Failed to connect to server "81.171.180.119:4567": [10060] Connection timed out
I would like to know what can be steps to look at bottlenecks which may be causing issues like maybe some setting in Load Runner or identify the code bottlenecks.
Thanks
I am working on a (WPF + C#) application. I have to implement search functionality. It will search all the occurrences of a particular string on the specific part of Window. What can be the best way to do this?
Hi,
I want to study new .NET 3.5 concepts like WPF, WCF for work as well as for interviews. I am aware of .NET 2 but do not have any detailed knowledge of .NET 3.5 and newly added features in .NET 3.5 and C#.
is there any good book/ online resource which would help me?