WPF if else listbox
I have a project for my internship and i need to make something.i have 2 listboxes listbox 1 goes to a folder1 and picks up files from there and shows it on the listbox.listbox2 does exactly the same...
View ArticleActivating Focus Assist Windows 10 Setting Programmatically C# WPF
I'm building a C# WPF application and want the ability to automatically enable and disable the Windows SystemFocus Assist. I've tried researching how to control this feature programmatically but...
View ArticleUnhandled exception encountered during a user callback.
Hi, when I start my computer, without even opening Visual Studio, I get a pop up saying:Unhandled exception at 0x000000010000D6EE in sttray64.exe: 0xC000041D: An unhandled exception was encountered...
View ArticleScrolling vertical Items Control with Virtual Panel and horizontal items...
I wrote a custom virtual fixed height custom panel. Works great! However I have very wide rows with a lot of data. So I'm having to virtualize the rows as well. I'm not sure the best way to forward...
View ArticleGetting Error while exiting the app "Shutdown must be called on the same...
Hi, I have used CefSharp library to implement a browser in my app. But when I am closing the app I am getting the error "Shutdown must be called on the same thread that Initialize was called -...
View ArticleHow to import vector graphic as xml in Visual Studio 2015 or 2017
I know I can import AI files in Visual Studio 2013, but I have 2015 CE and there is no import AI files anymore.Now I use Inkscape for convert files to xaml, but this is time consuming if I have lot of...
View ArticleExport to xaml from richtextbox having images..
Hi Tean, Below code working for save the content.string rtbContent = XamlWriter.Save(rtb.Document); File.WriteAllText(@"C:\Temp\" + Guid.NewGuid() + ".xaml", rtbContent);while opening the file in...
View ArticleUsing ICommand in Windows Workflow Custom Activities
I have used Relay Commands quite a bit in WPF projects but I am currently working on Windows Workflows and I am making a custom activity with its own designer. I want a button on my design to add new...
View ArticleWinAPI function SetCursorPos issues. Win 10 version 1803
Hi, my name is Sergey and i have a question. I have Window 10 I have a code like this:WinAPI.SetCursorPos((Int32)(start.X), (Int32)(start.Y + 1)); Wait(); WinAPI.SetCursorPos((Int32)(end.X),...
View ArticleSilent crash when exception is unhandled
Made the simplest of WPF apps, just a button which, when clicked throw an exception.When debugging (with default exception settings) the exception helper window is shown as expected. However, running...
View ArticleAutoCompleteBox not displaying initial value
The WPF Toolkit AutoCompleteBox is not showing the initial value. If the user types in the it searches and update the value and displays the new value. A ComboBox and TextBlock bound to the same...
View ArticlePDF viewer
Hi All.I'm using VS 2017. And I would like to embedded PDF Viewer to WPF project window. What reference or library I need to use? Or I need to download PDF Viewer? If so what to download? May I...
View ArticleSetFinalSizeMaxDiscrepancy getting stuck in an infinite loop in .NET 4.7.1
I’ve received several dump files from my customers where the top of the call stack is in either in SetFinalSizeMaxDiscrepancy, or a function that SetFinalSizeMaxDiscrepancy is calling. It appears...
View Articleadding a database (using datagrid) manually in tab control
Hi guys,Let's say that I have made a tab control right now, and inside one of the tabs, i want to make a set of databases. How can I do it manually without doing any data bind? Cheers
View ArticleSolution Scrollbar for Grid layout
Hi In grid layout, We are using few control on Grid.row =0 , Grid.row=1 & Grid.row =2 and Flowlayout control have position on Grid.row=3We want to use the scrollbar at window level but only...
View ArticleHow to save WPF RichTextBox content (text + image) to the database
HiI want to save (and after that also to retrieve) the content of an WPFRichTextBox (text + image) to/from the database.I found this:...
View ArticleWPF Design view totally blank / No objects
Hi, i have this C#/WPF project, and now when i open it, all the wpf objects of the window etc etc are not showing at all in the Design part of the window in the editorBut when i start the program, the...
View ArticleImport 3D model to WPF
I want to import a 3D model for use in a WPF project. The Import 3D content guide for earlier Blend versions instructs you to add a 3D model to the solution and use "Insert" to use it.I have added an...
View ArticleWhen scrolling with the mouse in the ComboBox control, the value gets...
I have placed ComboBox inside ScrollViewer, When scrolling with the mouse in the ComboBox control, the value gets changed, but at the same time the ScrollViewer will scroll the page.When scrolling the...
View Article