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

WPF CheckBox with Default True IsChecked Value Cause NullReferenceException

I faced with the same error on my application and a newly start testing application.The test is simple, two checkbox on WPF. When CheckBox1 is checked, IsChecked of CheckBox2 will be set to True...

View Article


Exporting DataGrid to Excel

I am Exporting data from DataGrid in WPF to Excel. This is the code I am using:public string ExportDataGrid(bool withHeaders, Microsoft.Windows.Controls.DataGrid grid) { string colPath;...

View Article


3D Animation for card game...

Hello Ladies and Gentlemen,I've been pushing the limits of the WPF 3D capabilities and have read everything I can get my hands on from Mr. Petzold and others on the subject of 3D animation.  Here's the...

View Article

Using Grid in custom windows control

I would like to write a custom window in wpf which contains grid rows and columns. From my child main window (using the custom window) I have to add controls inside the grid rows and columns that is in...

View Article

Linq to Xml Mystery

Hi: Sorry about the title but I really do not know how to qualify this problem. I am writing code to create a xml element and it all works. Then I refactor the code and want to put the linq to xml in a...

View Article


Image may be NSFW.
Clik here to view.

For nested StackPanels scrollbar doesn't appear for inner stackpanel

Hi, I am creating dynamic controls and at runtime they are out of window even though the main window Grid has only one row and column each set to '*' To help demonstrate, I created equivalent static...

View Article

How to use Background Worker in WPF?

I have tried this example of Background worker (http://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx), and it works perfectly, showing the percentage of progress from 10% till 90%, and...

View Article

Vacation Calendar / Scheduler in VB.net WPF?

Hi All, I've got a question regarding Calendar or Scheduler. Maybe first I will describe you, what I would like to achieve. My application is some kind of employee management tool, and my idea is to...

View Article


Change validation Attribute's parameter at runtime

hii am using a custom validation attribute with IDataErrorInfothis class is:   [AttributeUsage(AttributeTargets.Property)] public class ValidateAttribute : ValidationAttribute { public bool IsRequired...

View Article


my horizontal and vertical scrolls are not working please help

<StackPanel Height="150" Width="500" HorizontalAlignment="Left" VerticalAlignment="Top" Margin=" 167,240,0,0" Name="SP_LocationGrid">            <DataGrid    AutoGenerateColumns="True"...

View Article

Set VirtualizingStackPanel properties for dynamically created StackPanel

Hi, for a dynamically created StackPanel how can I set the properties VirtualizingStackPanel.IsVirtualizing and VirtualizingStackPanel.VirtualizationMode ?The code-behind intellisense doesn't show...

View Article

Datagrid

how to dynamically add row in datagrid in WPF???like in Windows form we use datagrid.rows.addis there anything like this is WPF datagrid???

View Article

WPF text box is not fully visible in Windows 8

Hi all,I'm developing a desktop app using WPF for Windows 8 tablets. Our application need to be in full screen, and need to be able to use touch keyboard for inputs. I've managed to bring the touch...

View Article


Image from resource to display in UI using XAML and code file...

Hello All,I have few images which are used across various projects. I want to add these images as a resource in one my DLL project and let all other projects use this resource DLL to display images in...

View Article

WPF TreeViewItem HierarchicalDataTemplate

Hello,In my application, I have one class which is having some complex properties in it. This class i want to bind to a treeview to display some data in Hierarchical order.Below is the code for model...

View Article


open a page linked to button with swiping

hiIs it possible to open a page that is linked to a button,but clicking?such as swipeI want to open page linked button with swipe.is it possible?in visual studio windows phone!sorry for my bad English

View Article

Canvas element not supported and ManipulationDelta events not getting fired

I have registered ManipulationDelta in usercontrol which is mine scatterviewitem but for some reason it is not getting fired and canvas element is not supporting as if i keep any simple png or jpg...

View Article


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

Help counting time down...

hello... i am working on a simple media player in a 2012 VS C# WPF project. The media element works fine... a little glitchy but i'm working on that, but i am having problems with my count down timer....

View Article

Image may be NSFW.
Clik here to view.

Auto-hide parent containers

The attached screenshot is for my WPF app with expander controls open and closed.Now, when I am working in Tab 'Task1' (say on hitting the 'Submit' button) I want this tab item to take the entire...

View Article
Browsing all 18858 articles
Browse latest View live


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