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

Classic.xaml PresentationUIStyleResources?

Dear ExpertsI getting an error in wpf  vb. net while apply classic.xmal theme and I have already added reference asSystem.Windows.Formshow to salve it?rror 3 The name "PresentationUIStyleResources"...

View Article


Windows Application

Hi,I have created a windows application which has multiple screens. I am using WPF to develop windows application. While I have a button as 'Next' on each screen. I want that while switching between...

View Article


Canceling changes in a datagrid bound to an observable collection

So I have a datagrid bound to an OC and I make some changes in the grid and if I click save those changes are saved to the database, but if I click Cancel I want all the changes I made to be canceled...

View Article

Checkbox resets when dialog result for messagebox is no

So I have a checkbox in my datagrid. I click it and a messagebox opens up: public void Checked(Opcina opc) { opc.Status = 0; if (MessageBox.Show("Želite li ukloniti općinu?","Potvrda",...

View Article

Trigger on Lisibox list is not working

Hi,       I dont want to show the Checkbox,in a listbox list  if the content is empty,Actually i am binding the grid column names to a  listbox<ListBox ItemsSource="{Binding Columns,...

View Article


How to override a ControlTemplate trigger

I have ComboBox Control and we have a base style with below ControlTemplate Triggers<ControlTemplate.Triggers><Trigger Property="IsFocused"...

View Article

MVVM: Populate a view (with listbox) when an item from another view (with...

I have a list of Topics, and for each topic there are some Examples. What I want to be able to do is that when a topic is selected then I will populate another view with all Examples for that selected...

View Article

Listbox SelectedItem in MVVM

I'm trying to get my head wrapped around MVVM and have just run into a wall.  I have a ListBox with ItemsSource bound to a property on my viewmodel.  I need to have my viewmodel notified when the user...

View Article


how to Add TreeViewItems into temporary TreeView in wpf?

Hi folks,             I have a TreeView with 3 Items in my User Interface.I want to Add One more TreeViewItem in the TreeView as First item.so my logic is just Adding all 3 Items to one Temporary...

View Article


Add control to class inherited from Canvas

This is a tough problem for me and make-or-break for this project. I want to add a textbox (or other control) to a canvas dynamically at any location on the canvas. Xaml is of no use to me. I can do...

View Article

Sort Data in ComboBox with TextSearch

Hello, I have a question about sorting Lastname and Firstname in an Combobox with TextSearch.TextPath=Lastname. If I type a Lastname in the combobox I see in the drop-down Listbox and all Lastnames...

View Article

Multilinetextbox with Linecounter

Hi!i have a Multiline TextBox like this:<TextBox Canvas.Left="157" Canvas.Top="248" Height="363" Name="textBoxTextBS" MaxLines="99" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"...

View Article

Application not running without visual studio 2012

i have developed wpf application using mvvm light framework and extended wpf toolkit,this application have main window and popup window, the application break after i opening the popup windows, this...

View Article


Image may be NSFW.
Clik here to view.

Change the focus of button,capture enter key from scanner

 In the below snapshot,the user clicks on scan,and below popup appears(grid with two columns item,barcode)..The User uses barcode scanner...When the user finishes scanning last item i.e 2nd item (in...

View Article

display data in multiple color in multiple lines

Can  I use WPF RichTextBox into normal web application to display data in multiple color in multiple lines ?Is it possible ? Can you please give me detail steps that I have to follow ?

View Article


Output data to the user - how?

I'm new to C# (coming from Javascript) and I have a problem. When the user press my button, it hits a function and I want C# to return something to the user - how can I do that?My script is like this:...

View Article

Error: Cannot create more than one System.Windows.Application instance in the...

I am creating a visual studio plugin which will analyze code for WPF project. I am doing reflection activity to get metadata info and also to invoke some methods or constructor. As we know wpf project...

View Article


Testing a WPF Application using NUnit causes...

HiI'm have a problem testing a WPF Application. In my setup I'm using NUnit to run a set of tests where each test creates a WPF Application that executes a number of tasks. At least thats what I want...

View Article

DockPanel and a sqeezable element

I have a DockPanel in which I am adding elements through code, but there is a xaml element in there which has width of 500, and I want other elements to be able to squeeze it until it's size is 50. Can...

View Article

Image may be NSFW.
Clik here to view.

Control has to automatically go to OK button once the barcodes are scanned

Here the user scans barcode consider item1 has "1111111" after which cursor will automatically got to next row now item2 barcode will be scanned..After which the contro(focus)l has to automatically go...

View Article
Browsing all 18858 articles
Browse latest View live


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