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

WPF, Popup focus first element in listview

Hi, I have a custom control, consisiting of a textbox and a popup with a listview control. When the user enters some text in the tb, and hits enter, the popup is shown.When the popup is opened, the...

View Article


The name 'InitializeComponent' does not exist in the current context

I have created very small WPF application and facing one problem.  I have below classes.Employee.csusing System; using System.Collections.Generic; using System.Linq; using System.Text; namespace...

View Article


Table break detect end of page Flowdocument

hello,I am a beginner using flowdocument. I am trying to print but before printing I would like to check if what i'm printing will fit on the page and if not should be put to the next page and not be...

View Article

How to get the edited cell value in WPF DataGrid

Hi,I have two columns with check boxes in my WPF DataGrid.  I want to create a dependency between these check boxes.  As soon as I check Checkbox 2, I want to automatically check Checkbox 1 in my...

View Article

Using the "Ctrl + Tab" to switch between windows in WPF.

Hello All, I am sorry if this is a repeated question. I have a WPF application that consists of three windows, When i press Ctrl + Tab, the other windows of application should be shown in a Particular...

View Article


object reference not set to an instance of object

           int p = dataGridViewX1.Rows.Count;            int i;            for (i = 0; i <p; i++)                {                    string s = textEdit1.Text;                    if (s ==...

View Article

Image may be NSFW.
Clik here to view.

Implement Basic operations to a grid as in windows application

I have a grid like follows and buttons like follows(My windows application works in this way).It have add,modify,save,delete buttons. When add button is clicking one new blank row will come. The user...

View Article

How to check for valid drop target

Hi,In drag n drop event , i wanted to implement that if dropped item goes to valid drop target after dragging is started.for example: if i have control with AllowDrop=false then it shows with cursor...

View Article


Image may be NSFW.
Clik here to view.

Can we place an icon near the minimize, maximize and close buttons in a window.

In the highlighted area of the window i need to place an filter icon. Is it possible to place an icon near minimize, maximize and close buttons in a window.

View Article


How do I open a WPF form/template in V.S. 2012 to connect it with Entity...

Hi Team:I am using this video How Do I: Get Started with Entity Framework in WPF Applications?I am using V.S. 2012, but I have not found a link to WPF form opening. The example video was created with...

View Article

Draw border around Image when Image is Selected in Popup WPF

Hi,In my application im using MVVM Model. I have a button Called Color Effects. When Color effects button is pressed it raises a popup with all the color effects in it (around 20). When the color...

View Article

WPF datagrid new row event

Hi everyone I use Visual Studio 2012 with c# and wpf.I have a datagrid and in it I enabled editing and adding new rows. Now I have to distinguish between the two so I can direct them to the separate...

View Article

How to create multiple listviews programmatically that use the same...

I am trying to do something "simple" but don't understand the correct syntax to do it.  I have a List<> containing classes with data.  For each class, I want to programmatically create a...

View Article


Style Trigger Based on Bound Control Values

This seems like it should be easy, but I'm missing something.  I have several controls, each bound to different DataTable columns.  Here is an example:<TextBlock Name="EntryAirlockPressure"...

View Article

Finding which ListBox has clicked ListBoxItem

I have event handler on listboxitemx.Setters.Add(new EventSetter(PreviewMouseLeftButtonDownEvent, new MouseButtonEventHandler(Panel_PreviewMouseLeftButtonDown))); And I am trying to find out the Tag of...

View Article


Camera Capture WPF 4.5

I was wondering how to capture an image using a webcam in WPF 4.5I tried following the example at http://www.codeproject.com/Articles/285964/WPF-Webcam-ControlBut i think it may be a little outdated...

View Article

Problem with topmost window when SHOWINTASKBAR = "False"

I have a WPF window that sits on top of the Metro start screen, application is digitally signed with UIAccess= "true". It works fine until I set the WPF window property ShowInTaskbar ="false" and then...

View Article


WPF Image dispose

Hello everyone, I have a code snippet below which doesnt release the memory even after it goes out of scope. Any suggestions? Note all variables are local here as well.....          strPath =...

View Article

Desktop apps on top of Metro - Extended

Hi Rob,    I follow you at http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/8529357f-3ff8-4c83-baaf-5215ca9cc14a and success to write a desktop app(WPF) on top of metro. But I met a...

View Article

Details of ThemeInfo attributes in WPF

I am stuck with `ThemeInfo` attributes inside my `AssemblyInfo.cs` file. I am trying to write a custom control. The custom control is in a dll called "MyCustomControls.dll". Futhermore the control...

View Article
Browsing all 18858 articles
Browse latest View live


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