Using Custom RoutedUICommand in xaml throws exception
I have followed this article and some others to create a Custom RoutedUICommand. I am using Infragistics Ribbon, but I dont think the problem comes from there.<igRibbon:XamRibbonWindow...
View ArticleRotation of whole screen in wpf
I want to rotate the whole screen on surface in my wpf application such that when the user move its finger the screen should rotate in that direction.I got stuck in this task.Please give me some...
View ArticleHow to print text to a local or network printer from my WPF app
Hi,I have a Print button in my WPF app and when the user clicks on it, I want to display the Windows' standard Print dialog box where user can choose the printer and change other print settings. My...
View ArticleContext Menu is not displaying for disable Textbox
Hi, I am creating my custom ContextMenu and placing on a TextBox. If TextBox is enable/IsReadOnly= false then ContextMenu is displaying(on right click ) But if i make TextBox disable/IsReadOnly=True...
View ArticleWPF DatagridTextColumn Binding from codebehind
Hi,I would like to bind validation rule on datagridTextColumn from code behind. I have this right now : foreach (DataColumn dc in view.Table.Columns) {...
View ArticleCommand binding and event using Custom Control using MVVM pattern
Hi All,Please help me, i need command binding and event using custom control template access using the MVVM pattern.Please help me. i'm waiting for your reply friends.Thanks,Karthikeyan viswanathan
View ArticleBulk Data process application getting crash, how we can prevent
Hi All,we have application which getting data more than 70k, Data we are exporting in Excel , Application getting crash, out list contain more than 70k.do we have export excel better option.ThanksA-Ashok
View ArticleMaking 'IsMouseOver' open submenu items consistently
I am trying to define a style for menu items so when the mouse is over the main menu item, the next level of sub menu items will automatically open. So I created a style for MenuItem and made a trigger...
View ArticleWPF Datagrid RowHeader Template issue
Hi,I have datagrid with RowHeader style like this: If I don't use Template here then it shows me error sign ("!") like this if any row has an error.<Style TargetType="{x:Type DataGridRowHeader}">...
View Articlexaml Listbox binding to Dataprovider
Hey i'm trying to make a rectangle that changes it's color to the selected color by the list , items are in a dataprovider i've made everything and tried to add binding to the rectangle but came up...
View ArticleKeyGesture bound to RoutedUICommand not working with Key.Left but working...
I have just started adding keyboard support for my application. It already had multiple commands implemented but they are all bound to controls, like menu items. Most UI elements in my application are...
View ArticleHow to read pixel value from a file and display in WPF?
I have a file with pixel values like that: 78 234 56 37 62 162 63 78 28 129 30 37 12 231 12 127 24 121 95 194 which indicate that a 4*5 monochrome pixels map. I've got to read it from a file and store...
View ArticleAccess to the database file is not allowed.
Hi all ,i am developing one application which is using SQL CE 3.5 for database. and i am putting at this path "C:\Users\demouser\AppData\Roaming\myApp"but when i rum my setup i am getting the following...
View ArticleWPF UI Freeze / Hangs
Hi All,I am new to WPF. I had created a WPF Form using Visual Studio 2010 and in .Net Framewor 3.5 on Windows 7, which will fetch data from a Web Service for the input that has been passed. Calling the...
View ArticleExpression Blend 3: why we can not see the design view for a~.xaml file?
We have a Test.xaml file. In VS2008, we can open it in Desgin view and Xaml view.When we open the Test.xaml file in Expression blend 3, we only can see the Xaml view.Normally, there are three icons in...
View ArticleHow to create METRO Style in WPF
Hi All, How to create METRO STYLE in WPF . Such as like windows 8 theme. ThanksAniruddhaA.Acharya Feedback to us Develop and promote your apps in Windows Store Please remember to mark the...
View ArticleProblems getting selected item from nested listview using MVVM in Windows...
I currently use a listview nested inside a listview as a way to show a Knockout style tournament graphically, backed up in ViewModel by SectionTreeOne, which contains a List of Lists of objects...
View ArticleRetrieve selected row info from ListView
I am trying to retrieve the selected row info (eg. each cell) from the listview.The Listview is set-up like this: public MainWindow() { InitializeComponent(); var view = new GridView();...
View ArticleLargeImageSource Throwing Exception
New to XAML so please be gentle. I am trying to create a simple Ribbon in VS and have written this code:<RibbonWindow x:Class="MainWindow"...
View ArticleComboBoxItem with delete button not deleting an Item
Hi,I have a ComboBox, If I add a Item in a Combobox,It should get added in a Combobox as comboboxItem.As Item I am providing a Template as Textblock and a Delete Button,by clicking on Delete button in...
View Article