Alignment of Polygon
Hello, I have two polygons on a Canvas. My requirement is that if i drag one polygon over other then i want to find the closest point of both polygons and align the second polygon accordingly.For...
View ArticleWPF Date picker selected date does not get reset after deleting date
I have extended WPF default datepicker control and created a custom date picker with masking in the date picker text box.For this I overridded the template for datepicker text box like below:<Style...
View ArticleTabControl : ContentTemplate + ContentTemplateSelector
Hi,is it possible to use contenttemplate and contenttemplateselector at the same time ?i have a contenttemplateselector that choose between some usercontrols for some conditions,now i want to add a...
View ArticleHow to fire an event of Designer.PropertyInspectorView when I change property
Hi all,I am using WorkflowDesigner.PropertyInspectorView to implement a WPF propertyGrid.How can I fire an event of WorkflowDesigner.PropertyInspectorView when I change property in this propertyGrid...
View ArticleUser Control drop down on mouse hover...
Hello, In my application, i have a user control (or a window) which i want to drop down (flow down) when user places a mouse on one of the button. How i can position the User control to get the drop...
View ArticleAbout the mediaelement
in the MediaFailed event,I catch the ErrorException,why does the error exception "0xC00D11B1" come out always? how to avoid this error exception?
View ArticleVarious Problems when WPF Window is Maximized
On some computers we see some strange effects when our WPF-Application is maximized. (System.Windows.Window.WindowState==WindowState.Maximized). These effects include: - Misplaced Popup-Windows like...
View ArticleUnable to bind listbox to List
I really don't know what I'm missing but I'm unable to see anything in my listbox.CS /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow :...
View ArticleHow to bind the DataGrid row visibility?
My goal is to implement a row Filter, similar to the one in Excel. I have found some material which indicates that there are two approaches:(1) Simpler approach:(2) More complex, several-part...
View ArticleKeep DataGrid Sorted
I have a DataGrid that is bound to an ObservableCollection and I want the DataGrid to automatically keep the items sorted when a user adds or modifies items in the collection. My datagrid only has two...
View Articlecreate a collection in xaml
I have an object and it has a property array string. I want to populate it in xaml in the Window.Resources section. What I really want to know is how to add data to the array string property. Actors is...
View ArticleDatagrid virtualization after update
I am using a datagrid in a .NET 4.0 application. I have a situation where I am trying to use virtualization and pixel-based scrolling together, based on a few examples I found online, in order to make...
View ArticleHow can I remove the row with Ribbon button, search textbox and search button
I am using WorkflowDesigner.PropertyInspectorView to implement a WPF propertyGrid.How can I remove the row with Ribbon button, search textbox and search button? the ribbon button include Categorized...
View ArticleDataGrid: How to delay and accumulate the RaisePropertyChanged("Visibility")...
This is a continuation of my previous post: How to bind the DataGrid row visibility?That issue has been resolved (Thanks, Andy!).My new issue is performance. I have a loop that iterates through the...
View ArticleReading webbrowser document after all scripts run.
I'm loading a web page into a webbrowser and trying to call an element using doc.getElementById("fooTB").value = "foo"; I kept getting null reference errors so I dumped the doc to a text file and it...
View ArticleRed outline displays on Combobox in C# wpf
I am having an Wpf application it has a Combobox. which contains a checkbox and Textblock when i click on the checkbox it shows the selected country string in the combobox but if i click on text it...
View ArticleC#, WPF, move a Point3D to another location
I've made a rectangle with another 3D point inside. The rectangle is textured with an image. Now, I need to move the point that is inside the rectangle to another 3D position. Does anyone knows how...
View ArticleKeep form on desktop at all times (No Win+D/Show Desktop)
In a project I need a WPF form(small icon style window) to stay on the desktop at all times(will be used to show notifications). It should still show if a user clicks Win+D to show desktop.It should...
View ArticleRotate items in diagram Designer in wpf
Hi experts I add some code to this project that may rotate the items . my problem is how can rotate the deisgnerItem with its connectors?I write a code for rotate the designer Item, i dont know how I...
View ArticleMultiColored Theme Files management in WPF
Hello there,i'm having three theme files as following,1. Blue.xaml (holds blue color codes in 'COLOR' tag)2. Black.xaml (holds black color codes in 'COLOR' tag)3. DefaultTheme.xaml (holds overall...
View Article