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

Image may be NSFW.
Clik here to view.

Xml Exception during update.

Hi: I am getting a Xml Exception error when I try to update an X:Key value. As you can see from the attached error it will not let me use a ':' character in my string which should be "x:Key". I am...

View Article


Progress bar and button of wizard - how to do it

I need to create wizard with 4 navigation pages and I wonder what is the best way to do it.how to do it right. Create window that include the 4 pages and the window will include the progress bar (which...

View Article


got a error : calling a wpf from a console apps and how to pass a value to wpf

Hi Am new to wpf and C#, so any comments are big welcome. I am trying build a wpf form, and two issues for now, The wpf form need a input from parents like MainWindow("This is inout string")so my 1st...

View Article

sort list box observable collection

hi,my listbox itemsource is "sourceList" - which is MultiSelectCollectionView<string>i want my list box to be sorted using sort description.but we need to add property with the sort description...

View Article

How to open a XPS in a specified bookmarks

in a WPF app, im using a manual.xps file that has bookmarks. I can load the file , click on bookmarks and document actually scrolls to the target bookmark, so till there everything works...

View Article


WPF window flickering with DirectX during resizing

I have an issue with WPF window.Now I use C++/CLI to create code for my DX11 engine. In this code I create WPF window and use it for D3D11 output.I make rendering in another thread and everything works...

View Article

save isExpanded state

Hallo,I have a listbox wich i populate with several items. I group these items by placing them in an exapnder. Problem is that when i refresh the listbox all the expanders get closed. Im trying to find...

View Article

navigating to second page after validation of username and password in visual...

Hi,I have created one login form having username and password ,I have restricted username as only number and password as special character ,length greater than 8,(a-z),(A-Z)these all should be there.i...

View Article


Validating data before new object added

I'm not quite sure how to ask this.  Given this code: Dim newPatient As New tblPatientDemographic() With { _ .PatientName = txtPatientName.Text, _ .MedicalRecordNumber = CType(txtMedicalRecord.Text,...

View Article


How to reduce duplicate DependencyProperty code patterns

Hello,I am coming from a DRY, SOLID type coding practice, and doing some WPF user-controls that require extensibility through DependencyProperty, and I have quickly found that the static-readonly...

View Article

WPF Ribbon Error? (VS-2010)

Hi!I will use the WPF Ribbon a second Time but i become an error... <Window x:Class="FlyerPro.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article

Show BOLD text in ListBox

I want that row with the word 'Total' in BOLD, how do I do that? see http://imagedrop.co/img-52c6703a72af5 also, I want the Average value of both of the Utilisation. How to get the average of...

View Article

Problem with Walkthrough: Binding WPF Controls to a WCF Data Service

Hi, I am having problems with the msdn walkthrough Binding WPF Controls to a WCF Data Service,I have followed all of the steps and then about a third of the way down when it asks me to create a Service...

View Article


ComboBox selection: interaction between SelectedItem and SelectedIndex

I have a ComboBox that is bound to a list of items, and initially the first item in the list is selected:<ComboBox ItemsSource="{StaticResource items}" SelectedIndex="0" IsEditable="False" />This...

View Article

How to detect duplicate data that is not a primary key

I have a situation where a table represented by EF (database-first) contains a primary key and another field that can be left blank but cannot be duplicated.  How do I validate that non-primary key...

View Article


Binding a stackpanel

I would like to bind a stackpanel to an ObservableCollection(Of Grid), but I don't know how :-(At the moment I use CollectionChanged event and NotifyCollectionChangedAction, in this way I can...

View Article

Image may be NSFW.
Clik here to view.

Question about sorting a detail table

I originally posted this question here and was referred to this forum.  I'm just going to start fresh here and ask this question again.  Using WPF and EF, I used the EF wizard to create a master/detail...

View Article


How do I shrink the margin around the DataGridColumnHeader in the DataGrid

I am trying to shrink the margin between headers in a DataGrid. I tried styling the DataGridColumnHeader and setting margin/padding/min height to 0 with no success. I think that the...

View Article

How to connect Web Camera with WPF application ?

Hi All,          I  want use web camera by wpf application. How it's possible hardware devices (Web Camera) attached by WPF application.I want to use web camera in my wpf application so please replay....

View Article

If I place CommandBindings in a parent container control, my command ceases...

Hi there:I implemented ICommandSource on a Slider, which I named CommandedSlider:public class CommandedSlider : Slider, ICommandSource { // This is the implementation of ICommandSource public static...

View Article
Browsing all 18858 articles
Browse latest View live


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