check value when end edit cell in datagrid wpf c#
in cheque details datagrid when i want to add a new:(dep, branch, account, idshek, munt, date)in a column "idshek" when end edit i want to check:- check if exist in my database. >> I know that...
View ArticleWPF ContextMenu Style
Hello, I need advice on how to achieve a similar style context menu, as shown. Thanks a lot.
View Articlefacing Problem regarding Remote Connection to Database...
Hello Every one,I am new in C# and i created a POS previously, now i want to improve it and database can be placed at any server and others can access the database through remoting, i need help in...
View ArticleStop a StoryBoard
Hi,I have a story boards with some animations and a repeat behaviour which is set to forever.I want to stop my storyboard at a point in my programm,but it doesn't work.I created a function/object and...
View ArticleError: Unable to add event handler (button) (c#)
I double click on the button, and it displays the error message.Do I need to add another class?
View ArticleHow to create a custom cursor which change is color due to the given...
Hey,i've just created a custom .cur file and need one think more. The cursor don't change its color from black to white like any given cursor. I've the cursor over a black background, he doesn't switch...
View ArticleJumpTask argument not working when it starts with @ symbol in Windows 10
When I add an JumpTask to the JumpList of my WPF application everything works fine, except when the arguments string of the JumpTask starts with the @ symbol. While debugging I can see the arguments...
View Articlebegin edit cell in datagrid without double click mouse to edit
my code in Grid_PreviewKeyDown event:var uie = e.OriginalSource as UIElement; if (e.Key == Key.Enter) { e.Handled = true; uie.MoveFocus( new TraversalRequest( FocusNavigationDirection.Next)); } then...
View ArticleGeneral questions about deriving from Window
I've created a class that derives from Window, in my solution I have the new class and a demo/test app.I've gotten most of what I want to do - all of the override logic is coded in the class, the only...
View ArticleHow to synchronize multiple datagrids with single scrollbar?
Hello,I am having five datagrids inside a stackpanel. First datagrid contains five columns and remaining four datagrid contains single column.How can I synchronize these datagrids with only one...
View ArticleHow to highlight date in a textblock from viewmodel using MVVM Light
i want to highlight the foreground or background color of the dates based on current date. How can i do it in my viewmodel? what are the codes i can use to highlight the currrrent date in the...
View ArticleWhy use await and RunAsync instead of just starting a normal thread when...
In the Accelerometer class specification The way they get the values they use this:asyncprivatevoid ReadingChanged(object sender, AccelerometerReadingChangedEventArgs e) {await...
View ArticleUserControl
Hi I'm new to programming, I have make a form (Form1) and an UserControl (UserControl1) Form1 having a panel and a buttonand button set to call UserControl1 into panel, this is the code using System;...
View ArticleEnable treeview scrollbar when treeview is disabled
Hi ,Is there any option to enable scrollbar in treeview ,when i disable treeview using stylesPls let me know regarding this,Thanks in advanceEfforts may fail but don't fail to take effort...
View ArticleUnable to transfer data between WPF main window and hosted winform user control
Hello everybody,this question is continuous to my previous question.so after that question with some testing, I came to know that, I can add winform user control to WPF window.But the Problem is in...
View ArticleProperty value is not set and call back method is not invoked - Windows store...
Hi All,I have a dependency property of type object with default value 0.0 and a property changed call back method for it(custom control).When I set it's value (two way binding nullable int property) as...
View ArticleWebbrowser control requires JavaScript
Hi,We've a window which uses WPF web browser control in it. It suppose to show SSO login page. However it's displaying message saying " Java Script Required" as shown in the attached image.The same SSO...
View Articleneed help to run files from unknown sources in windows 8.1
i have downloaded R language setup in pc but it is not running as it says you "this app can't run on your pc,unknown publisher".please help.
View ArticleDifferent behavior in Visual Studio 2012 and 2013 verses 2010 on Color Property
I have a custom WPF Control that has a System.Drawing.Color property. The control works in Visual Studio 2010. for example if you select White the XAML generated is Property="White" but in 2012 or...
View ArticleUI Response on heavy loading Data from Database
Hi All,i am looking to find out solution if i am using data loading into grid from data base my screen take 20 seconds with total 300 records and 50 columns +.Store proc it self taking 7 seconds and my...
View Article