Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

URI for ResourceDictionary in Shared Project

Hi,   Consider the following scenario (I am using Visual Studio 2015 to build a WPF application on .Net 4.6 framework)   My solution contains 3 projects   ProjectA   ProjectB   Project.Shared...

View Article


Only manually check validation of wpf controls

Hi all,I find a good sample(http://blog.scottlogic.com/2009/01/26/bindinggroups-for-total-view-validation.html) to explain how to use bindinggroup and manually invoke"BindingGroup.CommitEdit()" to...

View Article


What can cause a WPF ComboBox's MaxDropDownHeight to be ignored based on...

I have this ComboBoxHelper class that registered an attached property to resize the height of the drop down list when you click on it. This works, but it appears that the ObservableCollection I need to...

View Article

Difference between win10 and previous versions when printing in landscape

Hi Guys,I noticed a difference between printing a page in Win10 than previous versions.Executing this code in Win7, no matter which is greater (if Width or Height), just setting landscape property is...

View Article

Why I have to click twice on the radio button to make it the changes? mvvm.

I have got the following property in JacketSelectW Window, private string _TypeSelectedShell; public string TypeSelectedShell { get { return _TypeSelectedShell; } set { _TypeSelectedShell = value;...

View Article


Font's in WinRT are not working

Hello, I have WINRT App and I have list of fonts, which i want to add. I added them to my solution and try to set FontFamily to TextBlock. And I found out that only part of them is working. Can you...

View Article

Multi-window solution

Hi, Can we have several windows on one WPF solution? If yes, how to show/hide the window?Many Thanks & Best Regards, Hua Min

View Article

How to display the name or label of custom pushpin below the pushpin

Hi,How do I get the label of my custom pushpins to display below it?  I implemented a draggable pushpin with custom image as background.  When I use,     pushpin.Content = vNamethe text is displayed...

View Article


image don't show at runtime ,while it works well in vs designer

I'm working on a web application in vs 2012 and I need to store the path of images found in a folder at desktop  in the sql database in order to retrieve them later in a gridview .I almost tried every...

View Article


How to temporarily highlight an item to indicate its value has changed?

I have a ListBox whose ListBoxItems are hosted in a WapPanel. Each of these ListBoxItems is contained within a grid that has a single row and 5 columns. The width of the columns is shared between all...

View Article

Powershell, WPF and RTBs

This was a simple task in winforms but wpf has proven to be quite stubborn. How do you change the text color for specific lines being added to the richtextbox?Two buttons in the code below, the first...

View Article

Make user able to connect to a desired database in app

Hello everyoneI have been searching for sometime now but without luck for an example or tutorial on how to make an app that allows the user to connect to a desired server-database (SQL) in the app and...

View Article

Datasource grid not showing any of the controls I could see in video tutorial

Hello All, I am building a wpf app in vs 2010; I have followed a tutorial on how to create a datasource and display it in your window. I have 3 rows of test data in my db table, but when i run the app,...

View Article


Cannot Drag and Drop .jpg into Window

I am using Community 2015, and suddenly I can't drag and drop .jpg files into my window.Do they need to be in a certain folder?

View Article

How to call method from button click in xaml?

I need to call a method, OrderPackage, which allows a package to be ordered by a dispatcher. I am creating an interface, and i would like the method to be called when a button is clicked, i have...

View Article


Image may be NSFW.
Clik here to view.

WPF Snapping / Sticky Window

Hello,I need advice on how to achieve snapping windows and at the same time be able to move the window.I found some sample code but it's not quite it: Snapping code. Thanks a lot

View Article

Add database functionality to existing WPF solution

Hello Everyone,I have an existing solution in WPF; The gist of it can be found in the part of this thread, that was marked as the answer:problem & solutionAs you can see from the code, I have...

View Article


Passwordbox validation error in tooltip in wpf

please help me to set passwordbox validation error in tooltip of WPF code

View Article

Add control to grid

Visual Studio 2015, WPF, C#I'm trying to add a nullable date picker to my project. I'm using the following code to add the date picker to my gridGridTableEdit.Children.Add(dtp);but I'm getting the...

View Article

Animation like Windows 8 waiting visual cue

Hi all,When I open a program or website which take a bit long to load, there is a waiting visual cue displayed which is either series of dot running horizontally or in circle(with easing).Have anyone...

View Article
Browsing all 18858 articles
Browse latest View live