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

SelectedRow color for data bound datagrid

I have a 2 column datagrid which is bound to a list of key value pairs and I've set an AlternatingRowBackground to Gainsboro. So now the grid has while and gray alternating rows. But when I select one...

View Article


How to add trial version concept to in my wpf project

Hi,     I want to add 15 day trial version concept to my wpf project, i dont know how to do...please give an idea...

View Article


An attempt to attach an auto-named database for file in WPF

Using : VS2010/ 2012 , Sql Server 2008 R2 ,ADO.NET ,Winformapp /WPF appProblem :I am unable to connect to SQL Server local Database file (.mdf) through  SQL Server Authentication.Requirment : by...

View Article

How Do You Delete a Certificate Using CertMgr.exe CertMgr ?

I'm developing a Full Trust WPF Web App to be distributed on a corporate network.I have created certificates, and signed the app.I need the certificates to be automatically installed (I've created...

View Article

How to delete Client certificate or personal certificates using certutil.exe

HI , Is there a way i can remove or delete personal certificates or client certificates from IE using this Utility or is there another scrupting way i can delete that.thanktanuj

View Article


NullReferenceException in Window.Show

Hi,when starting-up my WPF application a splash screen in a separate thread is shown. Calling 'splash.Show()' (see code below) sometimes causes a NullReferenceException (see stack trace below). This...

View Article

Adding a property to all controls to use for styling

Hi all,My forms have basically 2 states - view only and read/write.  Some controls may be disabled when they don't apply.Since I need to indicate when a control is disabled (unavailable/not applicable)...

View Article

WPF XmlnsDefinition in .Net 4.5

Hi Everyone,   I had created a WPF Browser Application, in that I tried to customlly specify XmlnsDefinition Attribute to my Custom Namespace. and use the same XmlnsDefinition in the same project....

View Article


Changing a Background of a children(Rectangle) in a wrap panel

Hii am using a wrap panel whose width is some 1000 and height is 1000. i am filling the wrap panel with 100 rectanglesize of 100 (Width and Height).My Question is: can i change the color of a...

View Article


Cannot find the static member on the type

I have an application with external windows.  This application is complete, I am just revising it.  I have hit a snag and can't figure out why it is different when I copy/paste code and change the...

View Article

Image may be NSFW.
Clik here to view.

DataTemplate Items Event Trigger was not fired while binding from code behind.

Hi Friends,I have done sticky type of list box items by data templates,  I have used Event Triggers for animations, In the Listbox Checkbox work as sticky action, (Ex: If the user mark the checkbox it...

View Article

Listbox Scrolling bug.

I came across this crazy scrolling bug in wpf. Please fix this issue or let me know where I can log this bug.http://screencast.com/t/5t25NJPaci0Here is the reproduction...

View Article

How to implement Client Application Service in WPF with Windows Authentication?

I configured a lightswitch application with an aspnet membership database. I use it to add users and roles. Now, I want my WPF to use Client Application Services with Windows Authentication set up to...

View Article


Image may be NSFW.
Clik here to view.

grid row actual size problem

Hi, I have a grid with 2 rows. I'm adding them in a code (because it's dynamic grid). So, Each time I add them, I set the Value1* for the 1-st row and Value2* for the second row. After that I must be...

View Article

Custom authorization in wpf

hihow to use  Authorization  And Permission For every Window or UserControl in wpfThe sample code in this Project uses the MVVM design pattern and the solution consists of a simple window with basic...

View Article


Using the DbContext change tracking in multiple views

I am writing my first WPF application and I have a scenario where I want to use tab controls to handle views that allow the user to work with more than one "widget" at a time. I am still just...

View Article

Design Problem - Binding and different layers of code

Hello All.Phew, I have been cracking my head with this problem.Here is my dilemma: (Code is written in MVVM)BACKGROUND1. Communication layer code, starts up a WCF service, to make callback to a Java...

View Article


System.Diagnostics.Debug.WriteLine not working

I am looking for the equivalent of OutputDebugString that works for WPF in VS2010. I have tried System.Diagnostics.Debug.WriteLine and System.Trace.WriteLine and I even tried OutputDebugStringand...

View Article

WPF application - Garbage collection and memory allocation

I am seeing a high promotion rate of gen 1 objects. When i launch a window in my app, all objects in gen 1 are promoted to gen 2. I believe it is happening due to calling InitializeComponent(). If i...

View Article

System.Diagnostics.Debugger.WriteLine does not output to the debug window

Working on a WPF application and need to do some performance evaluation. I am trying to output time information to System.Diagnostics.Debugger.WriteLine in real time to evaluate how parts of the...

View Article
Browsing all 18858 articles
Browse latest View live


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