wpf

NEED Sample WPF Project with MVVM model

Dear All Please send me any wpf project sample with mvvm model ...

How to get a group of toggle buttons to act like radio buttons in WPF?

I have a group of buttons that should act like toggle buttons, but also as radio buttons where only one button can be selected / pressed down at a current time. It also need to have a state where none of the buttons are selected / pressed down. The behavior will be kind of like Photoshop toolbar, where zero or one of the tools are selec...

Disable WPF menu key tip on pressing Alt key

Hi, I want to disable KeyTips displayed on the Office 2007 ribbon theme Menus. How can i do that? Thanks in advance, NK ...

WPF FontSize style hangs / freezes / stops responding

Right, so on my desktop the following very very simple code hangs / freezes when compiled and run on the framework 3.5 <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Window.Resour...

Deployment project for WPF app - How do I stop the application before install?

I want to configure the installer to stop a WPF application if it is running before installing the new version. How do I do this in a Setup & Deployment Project. Thanks. ...

Shutdown WPF application after n seconds of inactivity

How do I shutdown a WPF application after 'n' seconds of inactivity? ...

Cancel Unloaded event in a WPF application

I implemented a WPF application which use NavigationService to navigate between pages. When I switch from a page to another one, the Unloaded event is raised for each graphical element that belongs to the former page. Is there a way to cancel that event without having access to the graphical elements but only to the container? ...

Can the WPF API be safely used in a WCF service?

I have a requirement to take client side XAML (from Silverlight) and create a bitmap merged with a server side resource (high res image) and can do this quite easily using WPF (DrawingContext etc). It has been mentioned that server side (hosted in IIS WCF) use of WPF is akin to running Office on the server and a really bad idea. Is WPF...

wpf app on dvd or cd

Is it possible to run the wpf app only on a CD/DVD that we sell and not install the application on any computer. Thanks N ...

WPF: Textbox width guidelines

Is there a formula for textbox widths as a multiple of max. characters? I assume that if my textbox holds 40 characters, I should be able to plug it into a formula that looks like F(40) = (40 * X + Y). ...

WPF access GUI from other thread

Hi, I am working through the requirement to make a WPF Application single instance only. However - I have to pass the command line to the first instance and then perform some UI action. I am using a Mutext to check for already running instances, I do use NamedPipes to transfer the command line to the already running instance. But of ...

WPF: Databinding to parameterized properties

Given this class/property, how would I write a WPF data binding expression to get myToken.DataItem("Phone")? Class Token Public Property DataItem(ByVal name As String) As Object Get If m_DataPoints.ContainsKey(name) Then Return m_DataPoints(name) Else Return Nothing End Get Set(ByVal value As Obje...

Get XAML source of WPF Window

Hi, I would like to get the XAML source of a WPF Window (MainWindow). Clicking on a button on that window would return the XAML of the window and I would save it in another file. Is this possible and how can it be achieved? Thanks! Satixx ...

WPF GridView: "Newspaper" Column?

I'm not sure how else to describe this, outside of calling it a "newspaper" column. Essentially I have a potentially long list of codes that I want to display in a grid, and I have limited vertical real estate. I would like to show these codes (which are all from the same database column) in multiple columns, maybe 3-5 columns across. ...

How can I avoid flicker in a WPF fullscreen app?

Hi all, I have a WPF application that is a fullscreen kiosk app. It's actually a pretty complicated app at this point, but here's some code that shows the basic idea. Essentially, whenever the user goes from one screen to the next, there's some serious flicker going on bringing up the new window. In severe cases, the desktop is displ...

Triggering an event every second

I have an application that needs to check a website feed every second. Sometimes the request to the server is longer than a second. In this case, the application needs to wait until the first request completes, then start a new request immediately. How could I implement this? Also, the request should not freeze the GUI. ...

Exceptions in ListView rows

I have a ListView with the first column components being RadioButtons and the third column being TextBoxs. The second column is just a Label. I have all this working fine. The problem is that I want the last row to be different. All I wanted was the second column to be a TextBox instead of a label. The content of the listview is binded w...

Set binding for DataTemplate components in code

Hi; sorry if I'm not clear, it's not really clear in my head too (especially after trying to find my way in other posts :p) What I'm willing to do is creating DataGrids in code, with zero to numerous columns containing a button, which will call one same function but with a "parameter" (different for each column). Here is what I got so...

Resize Datagrid Height after deselecting a RowDetailsTemplate

I am using RowDetailsTemplate to display a nested datagrid for a row. Now the datagrid expands in height when I select a row to show this nested datagrid. But it doesn't reduce its height when the row is deselected. Is there a way to resize the datagrid to its original height after the row details have been collapsed? Is it possible to...

WPF Reverse Binding OneWayToSource

I have a custom control which has the following dependency property public static readonly DependencyProperty PrintCommandProperty = DependencyProperty.Register( "PrintCommand", typeof(ICommand), typeof(ExportPrintGridControl), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.Inherits)); publ...