How to use both Global.System.Windows.Markup.MarkupExtension and Dependency...
I am trying to create an AttachedProperty that will take parameters as follows:AP:APDragDropCursor.DragDropCursor="{AP:CursorInfo}"Now that is not difficult but I also want to be able to pass...
View ArticleChanging brightness of window (Form)
Hi, I have a WPF application that have multiple forms/user controls. I would like reduce brightness of active form if form is ideal (No movement on the form) for 90 seconds and become dark gradually...
View ArticleList navigation by typing text
Think of Windows Explorer in details view. Select the top row (file or folder etc.) and start typing the first few letters of a name of an item further down in the list. The item matching these first...
View Articlewpf c# i wanted to set Superscript back to normal
private void superScriptButton_Click(object sender, RoutedEventArgs e) { TextSelection selection = richTextBox1.Selection; if (!selection.IsEmpty) {...
View Articlewpf c# i want to place my code generated file in my software folder this will...
wpf c# i want to place my code generated file in my software folder this will vary depending on the customer. Is there a line of code to find the software folder location to place my xps file.
View Articlewpf c# is there a way to determine undo history
<RibbonSplitButton x:Name ="Undo" Command="Undo" CommandTarget="{Binding ElementName=RichTextBox1}" SmallImageSource="Resources\undo_35x35.png" ><RibbonSplitMenuItem Header="Undo action #1"...
View ArticleUse Multi binding for passwordbox
i want to use multibinding for button is enabled when textbox and passwordbox are not emptyConverter:public class FormFilledConverter:IMultiValueConverter { public object Convert(object[]...
View ArticleCheckbox
How do I select only one check box?<CheckBox x:Name="chkfolderName" FontSize="14" Tag="{Binding dID}" FontFamily="Times New Roman" Content="{Binding dFolderName}"...
View ArticleScrolling Programmatic, Causing Some Problems When Bulk Data Is Present
Hi,I need to scroll the TreeView by swiping on the control (Both in non-touch/touch screen). I am facing some issues, when the items are in large number to scroll.Sometimes, the scrollviewer is not...
View ArticleEllipse not updating after data binding.
Here is my XAML code. I am changing the position of Ellipse in C# in response to a button after which it is suppose to show its new position. But not happening may be because databinding is not...
View ArticleHow to get return value from delegate in c#?
I need to be notified once the variable value changed.so i have the below code, It works fine.. But i need the delegate to return the value, so please help me to change the below code to make the...
View ArticleLogicalToPhysicalPointForPerMonitorDPI doesn't work and returns 0 error.
Hello!I've been writing Windows 10 app with WPF .NET 4.6 framework. Firstly, I noticed when i assign Width or Height window property in the constructor, and the next time i read these properties I get...
View ArticleUse Multi binding for passwordbox and radiobutton
i want to use multibinding for button is enabled when textbox and passwordbox are not emptyConverter:public class FormFilledConverter:IMultiValueConverter { public object Convert(object[]...
View ArticleC++ component in WPF App
Hi, I found this article by Scott Hanselman http://www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspxWhich explain how to call WinRT componet in WPF app.I then...
View ArticleDocPanel template selection
I have a ListView (MainList) displaying images and titles for a few hundred items. Next to the ListView , I have a Grid, and in the second row of the grid, I have a DockPanel that I would like to...
View ArticleVertical Image with 300 dpi displaying it as horizontally in thumbnail view.
Hi,When we upload an vertical image with 300 dpi in thumbnail view. It is displaying it as horizontally.We have uploaded the sample code in one drive http://1drv.ms/1PPkbg2If any code changes are...
View ArticleTreeview background color using converter
I'm using a converter for background color in my Treeview items when a status value of "Open" is found in my datasource.It works as expected except that when an item is selected the item gets a white...
View ArticleSelecting Root Item in a TreeView
I need to pre-select the root item when the view loads.I don't find the selected property in the code behind. private void treeView_Loaded(object sender, RoutedEventArgs e) { var tvItem =...
View ArticleWPF Applications do not run outside VS
Hi I have a really strange problem that has occurred where a WPF application that was running fine no longer launches. I have been through everything looking for changes etc to no avail. To try to make...
View Article