How change behavior of WPF RelativeSource FindAncestor
Hi Guys,IN my WPF application i am using telerik:RadcomboBox control and databinding. <telerik:RadComboBox FontSize="11" FontFamily="Arial" Height="30"...
View ArticleImplement Publisher subscriber without delegate and event
Hi,Today One guy has asked me to implement publisher and subscriber without help of delegate and event.I have tried like this:1. Publisher class I have created one dictionary which hold all the...
View ArticleHow to send touch input to different client application
Dear allI am study a protyping application for a customer in order to deliver colaborative aspect of the application design.In order to better cacth the proper foundation to use for that, the scenario...
View ArticleHow to convert text to uppercase in rich text box, wpf, c#?
I am new to wpf. I am working on a computer application. Here is a requirement. When a user selects Uppercase from combobox, then when he types uppercase font should appear in the rich text box. End...
View ArticleWPF and Google Speech
Good Day. Please help me !!! Maybe you know how I can realize google speech recognition in my desktop solutionI want say some word, then google must return me text, and then i insert this text in text...
View ArticleTo Use another way to write it
if (System.Text.RegularExpressions.Regex.IsMatch(mmH_Text.Text, "[ ^ A-Z a-z cn +-/*~!@#$%^&*()]") || String.IsNullOrEmpty(SetKeyIn.Text) ||...
View ArticleA first chance exception of type...
Hi Experts,i am find the error while run the console application. the error given below." A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll...
View ArticleGet maximum itemid from nested observablecollection
HiI have nested observablecollection. It contains n levels.How to get maximum id (integer type) from this nested observablecollection, as i have to add new item at the selected node.In order to add new...
View ArticleUndo Redo in WPF InkCanvas
Hello There, i want to perform undo and redo task on button click in WPF Inkcanvas , could anyone please help me with a demo code.i want to perform undo and redo on a button click in wpf inkcanvas....
View ArticleMicrosoft Ribbon does not render in Designer anymore
Hello,I'm using the Microsoft Ribbon for WPF (System.Windows.Controls.Ribbon) and VS2015. Since I removed unnecessary depencies from my project (like Dynamic Data Display etc, things not related to the...
View ArticleMaintain canvas child position on resize
I have a mouse up event that draws an ellipse. When the window is resized I want the balls to move and scale with the canvas - so if the ball is 10% from the top and 10% from the left, I want it to be...
View ArticleWPF datagrid copy to another datagrid
HI AllI'm trying to simple copy data from one datagrid to another using c# in WPF. Datagrid data are loading from sql.What i'm trying to do is to make bill of the material of some parts and when i...
View ArticleHow to generate rich text box dynamically, WPF, C#?
HI I am new to wpf, c#. I am working on a computer application. In this application, user can able to type. What I want to achieve is, when user reaches last line of the rich text box, a new rich text...
View ArticleAble to type only when I click in rich text box, wpf c#?
HiI am developing a computer application in which user can able to type inside rich text box. I have provided the feature, when user types, the text will be left aligned which is normal alignment. But...
View ArticleSystem.AccessViolationException + WPF (modern ui) + async (await)
My application is running on many computers, and has several tabs (pages). But on a single computer, one of the tabs (pages) throws accessviolationexception. This tab (page) is different from the...
View ArticleDependencyProperty does not listen to PropertyChanged event
I almost feel embarrassed to ask this, but after three hours, I have run out of ideas and patience.Situation:A ViewModel with properly implemented INotifyPropertyChanged with one string property....
View ArticleIssue with app.xaml.cs to MainViewmodel communication
I've following code in my wpf App.xaml.cs file: void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) {...
View ArticleHow can I diable touch & mouse ink in inkcanvas?
I just want to use pen ink in inkcanvas.Is it possible? If it so, please let me know the solution :)
View ArticleHow to set indent of individual text in rich text box?
HiI want to set the alignment of text individually. I mean, when a user selects a combobox item, the text he is going to type should center align and must have 150 indent from left and right. I able to...
View ArticleAre XBAP apps going to be depriciated like SilverLight was?
Just wondering what the projected lifespan for MS support of XBAP apps is. It was a real shocker when it became obvious they were moving away from Silverlight.Thanks.
View Article