Sending a key on window changed event
I have a Window state changed event in WPF. I want to send an ESCAPE key when the event fires. Can any1 help me out how to do that? ...
I have a Window state changed event in WPF. I want to send an ESCAPE key when the event fires. Can any1 help me out how to do that? ...
Hi All. I'm new to WPF/C#/NET but I have been learning by way of coding some small exercises. Anyway, I'm stuck. I have seached on here and google and can't find the answer or maybe more correctly can't find an answer I can make sense of. My problem is this... using the Entity Framework I have two tables. One for Employee details and ...
Hi Experts, I am unable to locate a property similar to WindowsForm "DropDownWidth" Property for the Combo Box in WPF. Is there a work around to achieve this functionality? Please help! Thanks in advance. Regards, Samar ...
Hi, I have one usercontrol where am showing the main categories as buttons from the database. By clicking on Main Category button, a new user control is getting opened with list of items in that respective category clicked. I am binding the Item Names of that category in a xaml using TexbBlock and also am showing the checkboxes with eac...
Does anyone know how to hide the [-] button for a treeview? The treeview will never be collapsed, and therefore I dont need the root node to have the collapse option. I know I could use a listview with a stye that indents the [0] element to act like a treeview root node. However the binding I'm using etc. kind of asks for a treeview, and...
Hi ! I have a property of type boolean presented with checkbox. I want to change that to two radiobuttons that bind on the same property presenting the value true/false. How can i do that ? thanx ...
I have reffered one sample posted in codeproject sample I tried this sample but splash screen taked 6 to 7 seconds to come up. I have core 2 duo Processor 2.80GHz with 2 GB ram. I also refferred to msdn article but it cannot help. I have to show the splash screen immediately as user click my executable to launch. My application tak...
Hi, I have a gridview ...with multiple columns. If I click on one column, it sorts the gridview based on that column values. I like to add an arrow in that "clicked" column header(when user clicks) to show that "this particular column is clicked and this is the sort direction" How can I do this? I saw a sample link http://stackoverflo...
Hi there, I need to perform the convertion RenderTargetBitmap -> BitmapImage. What is the way to do that? Thank you in advance! Cheers ...
Hi, Do WPF projects takes more time to load than WindowsForms? ...
Is there a way to display the error contents in a TextBlock below the control similar to how the following sets the Tooltip to contain the error text? <Style x:Key="textBoxInError" TargetType="Control"> <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate> ...
I changed the ControrTemplate of a button, gave it a border with CornerRadius and BevelBitmpaEffect. Looks decent enough for the minimal effort. Put it on a colored background and then the problem becomes apperent. The corner where the lightangle is coming from there is a white snip with a right angle corner. Possibly coming from the li...
How Can I remove all adorners of a listview? I mean all adorners related to all columns ...
I have a large number of ViewModel classes. For each of these classes, there is a corresponding .xaml file which is a 'UserControl'. In my App.xaml, I have them registered as DataTemplates, like so: <DataTemplate DataType="{x:Type viewModel:MainMenuViewModel}"> <view:MainMenuView/> </DataTemplate> With the idea being that WPF w...
Hi I have a largish application that uses MVVM. The Model is mostly in a C++ DLL. The ViewModel is in C#, and I've tied my WPF controls to the ViewModel in the usual way. The app is ready for integration testing. I can drive tests from within the application, but I'd like to move testing out into another process so I can minimize pollu...
I'm currently trying to make a log in for facebook users into my WPF application. It's using .net 4 and it's being developed in VS2010. After following the steps stated in the facebook developers page I cannot get it working. The success url should be followed by a hash (#) and the access_token after the login, but webbrowser.Source.toSt...
I'm looking for something like a pdf or anything else that would show a chart of available controls in SL and/or WPF. Ideally, the chart should have a drawing of the control, some succinct description and the hierarchy if possible. Has anyone seen such a thing? Freeware or Payware, can even be from a book I could buy. ...
Hi I have created my own button based on icrosoft_Windows_Themes2:ButtonChrome. I want to get rid of the default border and i've tried setting it to null or transparent but still i get a white border. Here's my markup: <Microsoft_Windows_Themes2:ButtonChrome x:Name="ibAero" Visibility="Collapsed" SnapsToDevicePixels="true" Height="{T...
I have the following custom Validation.ErrorTemplate: <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate> <DockPanel LastChildFill="True"> <Label DockPanel.Dock="Bottom" Foreground="Red" Content="{Binding ErrorContent}" Margin="...
I have 18 Buttons within a Uniform grid on my main WPF window. I need to modify many of the Button's Properties and Command both when the program loads and during operation. In other words, when the program first starts, a configuration is selected that affects the layout. Later that could change further depending on how the program o...