Quantcast
Channel: Windows Presentation Foundation (WPF) forum

Webview 5.11 presenting blank window from local intranet site, C# WPF

I'm trying to set a very simple WPF application that will only pull a local HTML page that is a live and functioning as expected, hosted in our work place. we have no internet connection within the...

View Article


WPF Listview touch issue on window 10: "an event of another datatemplate is...

Before we start:- (links will be provided later)Detailed information of the problem can be found on stackoverflow.We have created a simple test-project, which is used to simulate the problem on windows...

View Article


SharedSizeGroup not working between MenuItem and Separator

I have successfully styled/templated ContextMenu and MenuItem. In particular, my approach uses the sharing of sizing properties between grids (Grid.IsSharedSizeScope). Nothing really fancy; basically...

View Article

App won't come to the foreground when started

I have a WPF application that when I start it from Visual Studio, its main Window goes to the background rather than becoming the foremost window.  I tried adding the code below to the Window, but had...

View Article

Combobox binding question

I'm racking my head with the following:When I run the code and make selection: Item1 I get the result:  System.Windows.Controls.ComboBoxItem: Item1 Instead of just: Item1What am I doind wrong?The...

View Article


Image may be NSFW.
Clik here to view.

Removing line chart datapoints where dependency property is null

I have a line and bar chart showing the monthly movement in a bank account and the account balance (cashflow) as illustrated:The account in this example was only opened in December.  I want to have all...

View Article

ERROR: System.Xml.XmlException: 'Name cannot begin with the '

Whenever I try to send a POST request to my API it gives me this error in my WPF application. I've tried to search for "<<<" in my application but there were no results for this. I've been...

View Article

C# Application : modify a cs configuration file

Hello, In my C# application I have a cs file which containing my ftp parameters : class FtpConfig { public string ServerAdress = "10.10.100.100"; public string UserName = UserName = "usertest"; public...

View Article


populate cascading combobox with Entity Framework

Hi All.I created simple WPF form with two ComboBoxes. I populated one ComboBox        public List<Customer> GetApplication()        {            using (CustModel customer = new CustModel())...

View Article


WPF Grid MouseUp Event(s) not working

I have tried all the following events: MouseUp, MouseLeftButtonUp, Preview<> ...I also tried to use the this.AddHandler(UIElement, <delegate>, true) so as to demand that my event get...

View Article

Get all tray icons (in taskbar) and display them in wpf.

I have been googling for this one for ages but I don't understand how to do this. I am making my own task bar and i want to get all of the icons and click events for the icons. Thanks.

View Article

How to remove history/navigation from a WPF Frame

Hello,i have a WPF Window, and on pressing Button A i want to display some content in a certain area of my window.when pressing "Button B" the content shall disappear and other content shall appear on...

View Article

Starting a Program

Hi PeopleI 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# Program1) Build the Code and program, then add the...

View Article


Help with WPF LIST and datagrid

hi, iam creating a WPF for create a new clients. (Name, age, etc), and put that info on a datagrid. Its work fine if i do only in a single WPF window. The problem is i need show that datagrid on...

View Article

WPF tree view how do I add to the selected item

public List<TreeViewList> treelist = new List<TreeViewList>();private void AddFolder_Click(object sender, RoutedEventArgs e)        {            if (list.SelectedItem != null)             {...

View Article


Image may be NSFW.
Clik here to view.

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 in text 55,000 or larger.  Is this a bug and is there a work-around for this?public...

View Article

I am using visual studio 2019 c# wpf Help me quickly

When  I click to window I see wizard(propeties) button,I can see it but wizard(properties) button doesnt't apper what can I do

View Article


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 pitch-black is somewhat greyish and when I open the...

View Article

Image may be NSFW.
Clik here to view.

Memory leak issue in WPFcustom textbox control

Hi Team,I have created custom textbox control which was derived from TextBox control. In CustomTextBox, the memory leak exists even after disposing all the instances of CustomTextBox because base class...

View Article

I want to be able to select a folder and search/print to a list the key...

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>