What I want to do is to kill the explorer.exe main process (which will result in killing the Windows gui programatically and then open the gui again. I can achieve that by manually killing and then starting the process through taskmanager, but I can'
The application I'm working on uses a DataGrid to present entries to the user and these entries are grouped. The grouping is not tied to a single property of each entry, a single entry can be in multiple groups. The user is able to create groups at w
I want to add a row using data from a ExpandoObject, which is similar to a Dictionary<string, object>. The string is the header of the column and the object's value is value of the column. Everytime, when I get new data I'm creating a new GridView,
I want to Implement special button and i don't know even how to start with this. I want my Button's content property to be: Play. When clicking on it, I want 2 other Buttons to pop up in the left and in the right sides: Single Play and Parallel PlayA
I created a custom header for my GroupBox like the following image: I want also to set a Binding on the Backgroud of this header, so I wrote the following code: <GroupBox Width="130" Height="80" BorderBrush="Black" Margin=
Is it possible to get the text of a button , that has been clicked in a WPF application from another c# application.... Tried SendMessage with the button handle , but it does not seem to workYou dont provide much info but I will try to provide some p
I have a function I would like to run on after update of a lot of different text boxes, is it possible to listen for a generic after update event rather than the specific events? So rather than 100 individual calls to the function, just one listener?
I have a loop with children of a grid. For every child, I want to know which properties have been specified explicitly in the XAML code. Do I have a chance to find out? For example: I have a TextBox <TextBox Height="150"/> Only the propert
I have a textBlock <TextBlock Width="180" Text="{Binding Details, UpdateSourceTrigger=PropertyChanged}" and in the viewModel public string Details { get { string strInfo; strInfo = Resources.SharedOn+": " + DateString; str
I have sliders with twoway binding enabled at startup. But when I move them, moving is not smooth enought. So, I decide to change binding mode from twoway to onewaytosource after Thumbs.DragStarted event is called, but this lead to immediate changing
I'd like to know how to disable (not remove/hide) the Close button in a WPF window. I know how to hide it which makes the window's title bar look like this: But I want to disable it meaning it should look like this: I'm scripting in C# and using WPF
I build WPF program , And i use this code to save a List of objects to a File: var list = new ArrayList(); list.Add("item1"); list.Add("item2"); // Serialize the list to a file var serializer = new BinaryFormatter(); using (var stream
I want to be able to select an item and then edit its label: Select an item Item is highlighted Click on it's label Label's TextBlock is replaced with TextBox Modify the label Only one item can be edited at a time End the editing: Click onto item's i
It's actually a physical paper - an "insurance form" - in which the insurance customer fills in their information. So far the customer had to write all the asked information in the blank fields on the paper, using a pen of course. But I decided
I have the following interface: public interface IModuleTile { void AddEvent(/*Type here*/ methodToAdd); void RemoveEvent(/*Type here*/ methodToRemove); } And I want to do this: public partial class TestControl : UserControl, IModuleTile { public Tes
I'm starting to get a little confused as I delve further into WPF and I feel like this example will help in better understanding things. My requirement is this: I have a ListView that is using a binding to a collection of plain .NET objects, I want t
I am trying to achieve an effect of overlapping the main window boundary with a control. It's hard to explain this in words which is also maybe why I am having difficulty finding information on how to do this or if it is even possible. Below is an ex
I want to have a singleton that holds some values S1 and S2 that I can bind to. The goal is to have some UIElements update when its value changes. The problem is that I want to use the value inside of a reused DataTemplate. That means that I cannot b
I would like to bind a checkbox list to a collection of enum values in WPF. The enum is not [Flags]. Context: It is for filtering a datagrid, in which each item has a instance of my enum. It doesn't necessarily need to bind to an List, a fixed size c
I have a WPF Grid with four columns containing only one GridSplitter. Two of the columns (0 and 3) are scalable, but one scalable column is not directly adjacent to the GridSplitter (column 2). Columns 0 and 3 must have the same initial size. So I ca
I have a WPF markup extension in charge of retrieving images by name, returning a BitmapImage object. <Image Source="{my:ImageProvider ImageName=myImageName}"></Image> Since retrieving an image is an operation that can possibly take
Is it possible to bind to a value in Properties.Settings.Default in a way that will keep my UI current with the value stored there? I have a class: public class FavoritePlayer { public string Name { get { return wpfSample021.Properties.Settings.Defau
I am trying to do an editable ListView in WPF with a List View, so I found this tutorial with full code on windowsclient.net: http://windowsclient.net/learn/video.aspx?v=83530 And It works great! But, I need it to connect to a remote mysql database o
Just as there is "treat warning as errors" set in our projects to catch early possible problems, I would love to have a runtime exception to catch them early. I have recently been bit by this problem and I would have been glad to have this. Can
I'm currently using a library that implements Menus and ContextMenus for Silverlight 3 and 4. This library defines a MenuItem class in the System.Windows.Controls namespace. No problems with SL3 because there is no MenuItem class elsewhere in the Sil
I just found myself a new challenge: Make a Word Processor that is in handling more like the web than plain text. Designing a nice framework for this is what i cant wait to start with, but i do need to know what the possibilities are at the GUI side
When I create a user control in WPF it would appear that all the children of this control are declared as internal? I've not been able to verify this, nor finding any resources discussing this matter at all. I can access the controls in the same asse
I have several similar user controls which display listviews of respectively different data entities. In the code-behind files of these controls there is quite a bit of common business logic. How can these common methods be combined in a single "supe
In my custom button I need to show that it had focus(provides some tactile feel to tabbing to the button) and show that its pressed but what I have found is my focused state is displaying rather then my pressed state. How can I correct this. I would
This question is fairly straightforward -- I am trying to debug a memory leak in a silverlight application using s.o.s. I was able to get some good info using !gcroot to determine what objects have open references to the one that should be getting cl