wpf

Xaml Designer (# Develop) vs Aurora Xaml Designer (Mobiforms)

Could someone point out the better designer among Xaml Designer (by #Develop) and Aurora Xaml Designer (by Mobiforms). At which areas do you think #Develop is better and at which areas is Aurora Designer better? ...

change image source by xaml code?

How can I change an image source continuously by xaml codes?? ...

Host excel file in wpf application

Hi all, I am having one excel file that i need to host or embed in wpf application. that file need to open inside wpf application.. and user can do modification into that. is there any solution for this.... Thanks Brijesh ...

Case-insensitive FilterCell for "XCeed DataGrid for WPF v4.0"

Is there any way to make FilterCell case-insensitive for 'XCeed DataGrid for WPF v4.0'? Any pointers will be helpful. ...

Do you have an open source example for saving data in RFID smart card reader..

I am starting an open source project by using RFID card readers for saving data from an hotel information system. heres my scenario, i will be using rfid to save the data from the database and store it into the rfid cards. and then they can use the card as an id to their room. btw my platform is wpf vb2010 ...

How to convert an assemblies BAML to XAML?

How do I walk through an assemblies BAML resources and convert them back to XAML? ...

Visual Studio: "This document is opened by another project"

I spend most of my time developing controls for both WPF and Silverlight using the same codebase. To do this I add existing files from one project (say Silverlight) "as links" to the other (say WPF). For minor differences I use preprocessor directives like #if SILVERLIGHT ... #else ... #endif The code in these blocks is grayed out dep...

Simple date computation in C#

Hi experts, do you happen to have a sample code on how to subtract day tomorrow or 2 days from today? And then I will multiply it by a number depending on its reserved value. I am figuring how to operate a hotel checking in and show its price by asking when the customer checks out, so the price will be ready upon checking in ...

WPF ObservableCollection Edit Mode

Hello, I am using observables collection all around my applications. My problem is that when i use a popup window for editing those entities, my bound lists are getting changed when the user changes those corresponding fields in the window. How could i simply freeze the observable changes norifications, and release them only when the e...

wpf - commands , contextmenu

How can I put the ContextMenu in a resource xaml file and bind it's commands to my current window's commands ? ...

scrollviewer issue with tabcontrol

Hi, I am struggling with a weird scrollviewer issue in tab control. One of my xaml page having a tabcontol and again tab item will contain a xaml with another tab control. Inside the second tab control i have a scrollviewer which in turn holds a treeview. once user searches for specific data treeview will populated with search resul...

How to convert a ViewBox to an ImageSource?

I'm using a Viewbox to create a set of icons that I will dynamically bind to a WPF view. I'm binding to the resource name and using a Converter to convert the resource name to an ImageSource. I know how to do it if the resource is a Path, but how to do it with a Viewbox? This is how I convert the resource name, if the resource is a Pa...

ViewModel in Class project

I'm building a WPF application which is based on the MVVM pattern. Later on we are going to build a Silverlight application of the same type, and also a Web application. I want to use my ViewModels in all three UI:s, so my idea was to move the vm:s to a class library, but then I lost my ICommands, is there an easy way to get around t...

Possible to pre-empt the Windows message loop?

I have a wpf application that populates an Infragistics XamDataGrid by the usual method of binding an observable collection to the grid. As each data item is populated into the collection, one at a time, the grid updates. I also have a cancel button that I would like to immediately stop the population if the user clicks it. However, it ...

Custom Control not displaying correctly

The Suraface SDK exmaples includes an exmaple which creates a ScatterViewItem which contains an Image and allows the user to annotate the image using a InkCanvas, it also contains two buttons which changes modes. <!-- Photo Pad - Transparent InkCanvas with transparent background overlaid on an image --> <s:ScatterViewItem Height="256"...

ListViewItem style in ResourceDictionary

I have the following window, which displays a listview. I defined a style for the ListViewItem: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <W...

WPF , contextmenu

I have a listview with contextMenu on each ListViewItem that has Click event, how can I detect in the event handler witch Item was click in his contextMenu ? I need the item ID. <Style TargetType="{x:Type ListViewItem}"> . . . <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate T...

Reference to another Brush from one Brush in xaml

Is it possible to directly reference to a Brush value from another Brush in my resource dictionary, without using a Color definition (or to be exact, copy one brush resource into another)? For example, I have a Brush definition: <SolidColorBrush x:Key="PanelBackgroundBrush" Color="White"/> And I have a couple of other brushes I'd lik...

WPF Databinding to ComboBox and also toggle its visibility

Hi There are two issues that iam facing. One is binding a collection to combobox In code: private ObservableCollection<string> errList; Initially its empty and then i add items to it. In XAML: <comboBox ItemsSource="{Binding errList}" IsSynchronizedWithCurrentItem="True" Isnt this enough to get it done. But no items are seen in...

MVVM. Is adding code to View justified in some cases?

I have a View which has a list of items bound to my ViewModel (MVVM pattern). Let's say it looks like that: <ScrollViewer Width="Auto" Height="Auto"> <ItemsControl ItemsSource="{Binding Path=MessageLog}" Grid.IsSharedSizeScope="True" ScrollViewer.CanContentScroll="True"> ...