I want to be able to select a folder and search/print to a list the key phrase I've specified. Currently I can only do individual files. I'm a beginner.
This is a MSDN question asked by spum0n1, the source is I want to be able to select a folder and search/print to a list the key phrase I've specified. Currently I can only do individual files. I'm a beginner.. using System; using…
WPF Media Element - Weird Colors
This is a MSDN question asked by TheKapster, the source is WPF Media Element - Weird Colors. Hi, I've used different videos in different formats but for some reason the built-in media element is displaying weird colors. What's supposed to be…
TextBox. GetLineIndexFromCharacterIndex returns -1 when passing in large text
This is a MSDN question asked by moondaddy, the source is TextBox. GetLineIndexFromCharacterIndex returns -1 when passing in large text. The sample code below calls the GetLineIndexFromCharacterIndex method on the TextBox and it returns -1 when passing…
WPF How to load Dictionaries as Application does?
I am converting application in to DLL (CLassLibrary) and therefore I cannot use App.Xaml (Application). Inside my Dictionaries I use StaticResources for Storyboards and animations. Unfortunately it is not possible to use DynamicResources for Storyboards…
WPF tree view how do I add to the selected item
This is a MSDN question asked by WPF tree view how do I add to the selected item, the source is WPF tree view how do I add to the selected item. public List<TreeViewList> treelist = new List<TreeViewList>(); private void…
Starting a Program
This is a MSDN question asked by Warp_Speed, the source is Starting a Program. Hi People I am a beginner to programming and self taught, but I was wondering if people could give me there opinion: Best way to build a WPF C# Program 1) Build the Code and…
populate cascading combobox with Entity Framework
This is a MSDN question asked by zleug, the source is populate cascading combobox with Entity Framework. Hi All. I created simple WPF form with two ComboBoxes. I populated one ComboBox public List<Customer> GetApplication() { …
Why is the DataBinding on my Windows.Media.brush not working?
I ran into a strange error This is the control <UserControl x:Class="PHOWjection_Software_3._0.CustomControls.LyricsDisplay" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" …
Identify IPaddress/Hostname is of a printer and not a computer C# WPF
I have developed a application where user can add new printer and perform task with it, when adding new printer user needs to give IP Address or Hostname. If valid IP Address or Hostname is entered and is online then device is added to application. I…
UWP : Need Close Button in CustomEditControl and Mouse Events to be Active..
I have attached the project below.. Need Close Button in the textbox Need Mouse Events or cursor postion to be active in the textbox. https://1drv.ms/u/s!Ag8QU6ar3yRugYg7U-qDJ1o4VraieQ?e=8OnEqi s!Ag8QU6ar3yRugYg7U-qDJ1o4VraieQ …
What is the best approach for launching a modal window, in WPF?
Where I work we're having a discussion trying to determine which is the best approach for launching a modal window in WPF, using the regular .NET Framework. (We're using .NET 4.5.2 for this project.) It is a new project that we're developing. We…
Print with a printer that is not the one configured by default
Hi. I'm migrating from winForm to WPF and I have the following code which works very well: printDialog = new PrintDialog(); if (DialogResult.OK == printDialog.ShowDialog()) { try { PrintDocument pd = new…
Using an image for the top of a ProgressBar's Value
Basically, I want to have a vertical ProgressBar that represents water and I'd like for the top of the ProgressBar line to be a wave instead of the default line. Is there a way to use an image like that in the ProgressBar? I really just need to have an…
Canvas.Setleft sometimes not working in the same condition
I want to achieve the effect of moving the rectangle edge (one rectangle moves along one side of another rectangle) using Canvas.SetLeft to set the left border of the moving rectangle. **Under the same conditions**, it can be achieved, but…
WPF Treeview Binding Problem
Evening, My Continents are displayed in the treeview in this case, and in the second piece of code my country's are displayed but i cant put both together, can somebody help. Thanks Madaxe <TreeView…
Additional question about a user control loading more than once
Earlier I asked why a datagrid was causing the window to load more than once. I got the answer, and thank you for your responses! However, in a strange coincidence, the release version of the app still exhibits the same behavior. Although it does…
Combobox with dynamically created items for enum type with text coming from Attributes won't support binding of SelectedItem
I have a custom WPF combobox that generates its contents based on an enum type it's told about via a XAML attribute. When that attribute sets the corresponding property, the control calls the function below. private void OnEnumTypePropChanged(string…
INSERT INTO (OLEDB) RAISED NO ERROR BUT NO NEW RECORD INSERTED
Hello. I'm new to WPF migrating from Windows Form. I'm creating a non-profit system for my village management to store data related to the residents. I need to add new user for login before adding new residents data and accessing the sensitive data. …
How do I get the XAML Designer to show side-by-side?
I must have fat fingered something which turned off the XAML view. Now all I see is the Designer. I want to see them both, side-by-side in the window. How do I get that back? I'm using VS 2019 Enterprise Edition, version 16.5
Why does clicking on a datagrid cause the window to flash?
I'm working on a WPF app with a colleague at work. This app has a launch panel with 7 buttons. Clicking on any of the 7 buttons causes a new window to popup. These new windows all start with a datagrid, listing the contents of 1 of 7 tables,…