WPF use Multi-thread question
I want save all UserControl as image, at the same time, I need to show a animation in order to make the UI better for users.This is MainWindow:<Window x:Class="WPF.MainWindow"...
View ArticleBehaviour for Window.SourceInitialized event
I need to handle Window.SourceInitialized event and for that to do in MVVM pattern I need to write a behaviour for it. When I started writing it, I realized that Window.SourceInitialised is not exposed...
View ArticleCombobox in datagrid question - displaying a property of the combo in a textbox
I'd like to put a property of a combobox in a textbox on a datagrid.Combo in a datagrid defined like so: Xaml:<DataGridTemplateColumn x:Name="cboPartBCPT" Header="CPT Code" Width="100"...
View ArticleHow to get calendar control value in textbox on cahnge of date in date
How to get calendar control value in textbox on cahnge of date in date
View ArticleWPF:ListView Remove SelectedItem from ImageFileCollectionViewModel
I have a listView which loads images from a directory using the 'ImageViewCollectionModel' along with the 'FileViewModel' . I have 2 button, one button to 'Delete' the selected image and another button...
View Articlethe necessary WPF .dll files
Hi all,There are four .dll files necessary to compile any WPF application:1. PresentationCore.dll2. PresentationFrameword.dll3. WindowsBase.dll4. System.Xaml.dllThey are located in:c:\Program...
View ArticleHandle Manipulation Events for Controls in a ScrollViewer
Hi GuysI have the following part in the XAML. The WrapPanel holds images during runtime which should be draggable over the surrounding Grid: <controls:TwoFingerScrollViewer x:Name="ScollPane"...
View ArticleHow to override MaxLength Property for WPF TextBox control
For my WPF apps I have created a couple custom controls based on a TextBox. These include NumericTextBox, WatermarkTextBox, and ReturnTextBox.Numeric and Watermark inherit from ReturnTextBox, which...
View ArticleResize controls in a list to fill the available space WPF
I'm trying to find a way to display a horizontal List of items in WPF, the trick is that the Window which contains the List will be displayed on various screen sizes and all the items in the list need...
View ArticlePossible bug in System.Windows.Controls.Primitives.MultiSelector class
With reference to this issue at CodePlex - https://wpfextendeddatagrid.codeplex.com/workitem/1065I am reasonably certain there is a bug that prevents items that have value equality - as expressed...
View ArticleServer Object Error
While I am running my website[which is written using Asp] in my server I am getting this Error. But the same project runs well in another server. Could anyone please help me to resolve this...
View ArticleHow to handle MouseUp event on a ContextMenu
Hey there,I have an Image that represents a button, and I created a ContextMenu to drop down when image is clicked. I have also added some StackPanels to the ContextMenu and I added Image and Textblock...
View ArticleBinding Command to Button within DataTemplate
Hi,I am using WPF Toolkit in my project. And I have DataGrid in my XAML. Now I have added one button in one column using DataTemplate.I have binded DataView to this Grid. But the only problem am facing...
View ArticleWPF Canvas - can a line be one pixel long?
Hi, I'm writing some rendering code and am using Line objects on a Canvas.The Lines are quite simple: Line line = new Line(); line.Stroke =...
View ArticleQuestion about sorting Detail table
Someone posted almost the exact same question here. I attempted to use that answer in my situation but am not sure how to form the syntax. I'm using WPF and EF.I, too, have a master/detail situation...
View ArticleHow to make multicolor in a single cell of DataGrid based on condition
Hello, I need to make a multicolor in a single cell based on cell value in WPF datagrid. For example: I have a column which header is "InitialNames" and another column with a header "Available"...
View ArticleChange the following event from user control to viewModel
Hi I need to move this event from the user control to the viewModel,I have read the following link but not sure that I got it since command are true or false,my question is assume that I have the...
View ArticleHow to clear a WriteableBitmap?
Hello all. Is there a fast way to clear (zero-out) the pixels in a WriteableBitmap...something like WriteableBitmap.Clear()? I don't see anything in the docs. Currently I'm copying in a large array of...
View ArticleReg saving rotated image from image control in WPF
Hello,I have rotated image by some angle by applying transform to image control as shown below.RotateTransform rt = newRotateTransform(angleNew); image1.RenderTransform = rt;image1 is image control.How...
View ArticleHow to display text in an Arc
Dear all,I am the following visual Based on that visual as you can see I need to display text information inside an arc which contains a Texbloc. At a predefine time the green arc should animate from 0...
View Article