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

Updating WPF Datagrid on changing ItemsSource

I currently have some XAML defined like this:... ItemsSource="{Binding BomHeaders, NotifyOnSourceUpdated=True}">AND this  _vm = new ViewModels.BomHeaderVM();AND thisthis.DataContext = _vm;If I...

View Article


How can I set a gridviewcolumn to have TextWrap = Wrap when the column is...

I am binding a blank WPF gridview object to columns in a table at runtime using C# Binding and GridViewColumnobjects to manipulate the gridview. I need one type of column to have TextWrapping turned...

View Article


How to show lots of data at the same time in WPF

Hi all,We are converting an MDI based application to WPF. I have read many posts on the subject.  The most common are to use 1 of the codeplex solutions or find a 3rd party library.  Ok, that's fine if...

View Article

A user control with 2 controls that autosize?

Hi,I am new to WPF, but have been using Winforms for a while.  In my winforms app, I have user controls (used extensively) that contain both a label and a data entry class (textbox, combobox, etc.)...

View Article

How to Change TreeViewItem color when cut

Hallo,I have the below treeview. I use a hierarchical datatemplate. I am add commands like cope and paste for the treeviewitems. Im trying to change the colorof the treeviewitem's background when it i...

View Article


Getting scale factor

Guys, is there a way to find out what the current scale factor  or magnification? I'm talking about the one you can set in Control Panel\Appearance and Personalization\Display with values 100%, 125%...

View Article

wpf popup Dispay on the Chart

Has to define a chart control in the other panels show there is no problem, but can not be displayed in the popup. seeking what are the solutions

View Article

Operation is not valid while ItemCollection has no inner collection.

I got a user control 'SubForm'When click a button on the main form, the 'SubForm' will be added and default data will load to the grid SubForm subform = new SubForm();...

View Article


custom MultiDataTrigger support for Grid and StackPanel?

Hello,i need to use DataTriggers in a lot of pages, that have also be edited by customers in a simple way. In default Control Triggers i can only use EventTriggers. I dont want to use DataTemplate on...

View Article


Navigating to pages within the app

Hi,I want to navigate between pages within my WPF application in C#, but I am not sure if I am using the correct way.Currently I am using this: private void Register_Click(object sender,...

View Article

Image may be NSFW.
Clik here to view.

WPF: i want a control or code as same as wpf XAML file

Hi Everyone,I want print the string in XML format just like WPF Xaml  in VSin    Please help me Is there any control like ?

View Article

Page Navigation

I am using a Frame for page to page navigation. I am doing this navigation using the page objects.If I want to move back to a certain page with all its state of controls retained, how can I do it using...

View Article

Close Login window and open mainwindow on Login

Hi, I have a WPF app using MVVM with a login screen, on login, I need the login window to close and the Mainwindow to open. Here's what I'm trying to do to achieve that: In App.xaml.cs: protected...

View Article


drop and drag Eventhandlers are not getting called for treeviewitem with...

Hello, I have created a TreeView with a custom HierarchicalDataTemplate to display my items on the tree. The items are being displayed just fine but I can't get the events of TreeViewItem to fire when...

View Article

Set Document in DocumentViewer Async

Hi Experts,i have a small problem with the DocumentViewer control. I am Rendering my document in a different thread, so far everything works fine, after that i want to display the fixeddocumentsequence...

View Article


Image Slider in WPF Surface 2.0

I want to build the image slider gallery in WPF Surface 2.0 (Pixelsense) such that when i move my finger from right to left or from left to right only one image should move at a time in the respective...

View Article

Header nodes in a treeview bound to a dataset

Hello!I've relational data in a dataset that should be displayed in a treeview hierarchically (e.g.  datatables "customer", "orders", "shipping notes" and "invoices" with parent-child relationships...

View Article


Image may be NSFW.
Clik here to view.

Database Conection Issues.

Hi,I am getting the following error when I attempt to connect to a database using the following from my WPF app. I have attached a screenshot of this error.<?xml version="1.0" encoding="utf-8"...

View Article

Why it is slow to load a Addin UI in WPF+MAF

why it is slow to create a new WPF Control in this example?Is there any way to speed it up?The related code is under that page. From Line 1 to Line 3 takes about 1-2 second.1. this.wpfAddInHostView =...

View Article

Image may be NSFW.
Clik here to view.

Filtering a Collection WPF

Hi Guys,I'm creating an application that allows a user to enter some Employee data into a EF entity model, using CRUD operations. So far, I have two ListViews. Here is an image to help understand what...

View Article
Browsing all 18858 articles
Browse latest View live


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