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

Office 2013 Like DropShadow in custom window

Hi,I want to drop a shadow like in Office 2013 around a border less window without enabling Transparency, as it causes significant performance issues.I tried using DWM api calls for the job:- using...

View Article


Parameter passing from one xaml window to other xaml windo

i want to pass parameter from current window to next window.... public  KinectSensorChooser sensorChooser;sensorChooser object i want to pass on next page. below line, event fire to jump on next page...

View Article


CancellationToken callback was not executed immeditely

WPF application,  I have public CancellationTokenSource cTokenSource; public static CancellationToken cToken; cTokenSource = new CancellationTokenSource(); cToken = cTokenSource.Token; async Task...

View Article

Ancestor of event source control as Storyboard.Target

I have a DropDownButton (a component from the Extended WPF Toolkit) that has a ListView as dropdown content. I would like to close the Popup part as soon as the user selects an item (like ComboBox...

View Article

Foreach loop on listview items?

Hi, so i have declared my collection in my class like:ObservableCollection<User> items = new ObservableCollection<User>();i then have a method: public class User { public string First {...

View Article


Binding with ObservableCollection and Entity Framework

Hi!I have came across something that really gets my head spinning. I have created a ListBox to present data in order to Learn a bit about DataBindings. (See code below)If i try to populate my...

View Article

DataGrid binding to EventTrigger when a datagridcell's value has changed

Currently a have a DataGrid whose ItemsSource is bound to a DataTable.DefaultView.  I would like to setup an EventTrigger that gets fired after a cell's value has changed.  Initially I had used the...

View Article

is this description of "loosely coupled (mvvm) accurate/reasonable?

I am applying for a role as a wpf (mvvm) developer. They would like me to explain the difference between loosely coupled and not loosely coupled. I am thinking the following in terms of loosely coupled...

View Article


How to make individual cells in a datagrid "readonly"

I want to make individual text cells in a datagrid "ReadOnly" based upon a checkbox value in another column.  That same boolean value is available in the VM so it is easy to access.  I can figure out...

View Article


how can I check a checkboxcollumn in datatgrid? and after that to change...

i have an application how use database to take data. i have put this data in a datagrid. I have to make a fake auction so now how I can select a row from this datagrid and rise the price from price...

View Article

WP - Async Command MVVM show message 'Loading'

I have this code in the VM: public class MensajesTablonViewModel : NotificationenabledObject { ... public ICommand getMensajesTablon { get; private set; } public MensajesTablonViewModel() { mensajes =...

View Article

Zoom and Pan a Map Image with C# WPF

I'm trying to make a map from an image using the projection of Robinson. The idea is to give the image the same behaviors of a normal map, so the user should be able to zoom and pan on the map, it...

View Article

wpf to handle touch keyboard in windows 8 desk mode

I have tried to show touch keyboard using IInputPanelConfiguration interface.http://msdn.microsoft.com/ja-jp/library/windows/desktop/jj126267(v=vs.85).aspx  It worked on MFC project. but it not work...

View Article


convert to vb

Hi All.I unsuccessfully tried to convert that code on some web site. Most problem on 4th procedurepublic class DatePickerHelper { public static object GetWatermark(DependencyObject obj) { return...

View Article

WPF TextBlock static string from Resource file

I have 2 WPF Projects and using WPF forms. I am trying to use Resource file for my static strings. (I don't know if that's the way to use Resource.Strings in WPF)The following line works in one project...

View Article


Installing .Net 4.5.2 breaks Microsoft's recommended DisableWPFTabletSupport...

After installing .Net 4.5.2 Microsoft's recommended method of disabling WPF tablet support fails. The source code for this approach is shown below:        public static void DisableWPFTabletSupport()...

View Article

Narrator does not read status bar text from TextBlock in Grid in StatusBar

We are creating a WPF application that includes a StatusBar on the main window.  The StatusBar contains a Grid in order to place a TextBlock on the left and s couple of status icons on the right with...

View Article


InkCanvas would mark some keyboard events as handled

It seems that InkCanvas would mark some keyboard events as handled. If I subscribe the KeyDown event of an InkCanvas control, when I press the keyboard'sEsc button,  it will not jump into the KeyDown's...

View Article

Sort listView by Enum Name and not the Value

Hi,I have listview and one of it's column has enum type. Now when I sort the list view using SortDescriptions of IViewCollection, it sort the column by Enum Value and not by Name. So column data...

View Article

MouseDoubleClick event for only specific part of WPF custom control

I've implemented a custom control (WPF).  Here is it's xaml:     <Style TargetType="{x:Type md:MasterDetails}">        <Setter Property="Template">            <Setter.Value>...

View Article
Browsing all 18858 articles
Browse latest View live