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 ArticleParameter 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 ArticleCancellationToken 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 ArticleAncestor 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 ArticleForeach 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 ArticleBinding 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 ArticleDataGrid 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 Articleis 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 ArticleHow 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 Articlehow 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 ArticleWP - 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 ArticleZoom 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 Articlewpf 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 Articleconvert 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 ArticleWPF 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 ArticleInstalling .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 ArticleNarrator 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 ArticleInkCanvas 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 ArticleSort 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 ArticleMouseDoubleClick 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