Bulk update and delete from table
Hi, We have delete 8000 records from DB at same time. While going for...each loop and obj.delete(), we are facing performance issue. Can someone help for bulk insert and delete from DB.We found chunk...
View ArticleValidating Extended TextBox on LostFocus causes the validation infinite loop...
Hi, I am writting an extended TextBox (class) to handle all validations like Numeric, AlphaNumeric, allow special chars...and I am going to use this in all my .xaml files through ot my application.In...
View ArticleHow to make listbox thinner than its largest item ?
Hi, I'm facing a problem that looks simple but I can't figure out how to solve it, maybe you could help me.I want to display a vertical list of items. I use a listbox, in a sizeable area (a grid...
View ArticleUser Control size to content
Hello!I've created User Conrol that contains 2 images on the distance between them. Distance is set like DependencyProperty in MyControl : UserControl class.I got 3 more DependencyProperties: 1st image...
View ArticleError: Cannot evaluate expression because a native frame is on top of the...
I am using one unmanaged dll in managed application. and calling functions of unmanaged dll in application. Unmanged dll function bool test(HANDLE hResource, char* file, char* pfile, float* size, float...
View ArticleWPF vs WinForms
Okay,I have very complicated project to do,currently I am using windows forms,but I am forced to switch to W[F due lack of animations in win forms.Can I use the same code in WPF asd I used in win...
View ArticleConverting 2D to 3D in WPF
Is a Viewport necessary to convert 2D to 3D?I have images ready to display in a 3D environment, and all I need to do is create the "quad"
View ArticleRadio Button and Grouping !
Hi Everyone,I have a strange requirement.I have a group of RadioButtons.They are distributed into two containers (two separate views)View 1:RadioButton 1RadioButton 2RadioButton 3View 2:RadioButton...
View ArticleRemove dotted line around checkbox or other control in WPF
Hi,I wouldremove the dotted linearound the controlcheckbox (when selected)and I wonder ifthis can be donefor othercontrolssuch asradio buttonsorlistbox.I searched onlinebutwhat I foundis not...
View ArticleWPF Designer is blank for Visual Studio 2013 and 2015 RC
Dear Team,Visual Studio 2013 Professional and 2015 Enterprise RC are showing a blank screen in the Design viewof the custom WPF application. There are no errors if we build the project and run it....
View ArticlePracticing using MVVM, having some very minor issues
Essentially, I have finally understood how to use MVVM in theory and trying to make a practical application that utlizies MVVM. I was able to get about half of the program to work correctly, however,...
View ArticleAligning & scaling a nested ItemsControl's content relative to parent
I've got a ScrollViewer that is the content of an Expander, which is the template of an ItemsControl that is the content of another ScrollViewer. I'd like to stretch the inner-most ScrollViewer to the...
View ArticleCommand Line Argument Problem: Drag-drop file working, double-clicking not...
Hello!In my WPF application made using Visual Studio 2015 Community, I'm handling the command line arguments as follows:if (Environment.GetCommandLineArgs().Length > 1) { string[] path =...
View ArticleHow to pass data from the Windows Forms control to WPF application?
Hello folks!I've created a WPF form hosted a Windows Forms control (MDI forms with Emgu image processing library). http://shevaspace.blogspot.nl/2007/02/how-to-host-top-level-hwnds-in-wpf.htmlIt works...
View ArticleWPF WebBrowser custom scrollbar?
I know this is an old question, but I still want to know, is these any way to re-style WebBrowser scrollbar in new version .Net Framework?I don't want to use invoke js or css to hidden scrollbar in...
View ArticleWPF datagrid right alignment for particular column how?
Hello Exports,I have a wpf data grid and below code is working fine but when I change default alignment to right alignment then change back colour of the column, How to set default back colour? or how...
View ArticleSelecting a file using double click in FileOpenDialog
Hi,I have observed a weird behavior of double click on FileOpenDialog is actually handing over the 2nd click to the control that is behind the dialog. I have checked the forums and it is said that we...
View ArticleRefresh my datagrid with MVVM Light
hello,I must remove from my grid an item of this collection:public Dictionary<string, string> Associations { get; set; }My associated command (RemoveCommand) remove item from collection but not...
View ArticleDefect background
I have a problem with the background color of my WPF application. Here's the code of MainWindow.<Window x:Class="Sample.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
View ArticleGood practice to put all global/common objects & methods in App class?
Hello!I was wondering if it is a good practice to keep the globally required objects and methods inside the App class (public sealed partial class App : Application). If yes, should I make these all...
View Article