How to know validation has errors programmatically?
Hi There,For example, in the UIhttp://i.msdn.microsoft.com/ff714593.Noyes_Figure4_small(en-us,MSDN.10).png . if user has inputted any information violating any validation rules, I want sete.CanExecute...
View ArticleHow to remove history/navigation from a WPF Frame
Hello,i have a WPF Window, and on pressing Button A i want to display some content in a certain area of my window.when pressing "Button B" the content shall disappear and other content shall appear on...
View ArticleNext and Previous Page in WPF
I use wrap panel and i fill wrap panel with UserControl Icon. So I want to open a new page when the Wrap panel is full and i press the "+" button and go other page. How can i do that?
View ArticleRelayCommand in mvvm
what is the difference between these two relaycommand:public class RelayCommand : ICommand { #region fields private Action methodToExecute; private Func<bool> canExecuteEvaluator; #endregion...
View Articlewpf command instead of event
hi guyshow can i replace the next event with ICommandprivate void textBox1_TextChanged(object sender, TextChangedEventArgs e) { textBox2.Text = textBox1.Text; }no one tell me to use binding cuz...
View ArticleDisplaying a DataGrid with 10,0000 rows WPF (Including Expander and Sorting)
Hi,The problem I am encountering at the moment is that I am storing around 100,000 rows of data, taken from a serial read, inside of an ObservableCollection and I need to be able to display it in some...
View ArticleMemory Allocation Issues (possible leak) in WPF application, using Pages and...
Disclaimer:I'm having huge issue with memory managment, within my application. They have poped up first in May, 2018, but thanks to various articles on MSDN and here, SO, I was able to reduce the...
View ArticleAdding a new line to RichTextBox is not working
I have a RichTextBox control in my WPF application. I'm binding the Text for RichTextBox to a property. I'm trying add a new line to the text, but it is not working. I've tried to add "\n",...
View ArticleOpenFileDialog file name not correctly justified
When creating an OpenFileDialog for a WPF app in Windows 7, the file name that I specify for the FileName property prior to showing the dialog appears in the file name edit control, but the left side...
View ArticleHow to draw a line 90 degrees to another line?
In my application I'm drawing a line using the code behind in runtime. I want to draw two lines at the border of the initial line with 90 degrees rotation. The initial line could be at any direction.I...
View ArticleHow to user var as public variable?
Hi all,to use variable stored in MainWindow from some Page I use this method ...var mw = Application.Current.Windows .Cast<Window>() .FirstOrDefault(window => window is MainWindow) as...
View ArticleHow could you make 3d models spin and do this in the correct orientation Any...
I need to use C# and Xaml in visual studio. Anyone know how this would be possible.
View ArticleDraw, move, resize lines.
Hello everyone, I work with XAML where I have a CANVAS, I would like it when drawing a line, display a label, string or text at the end of the line; I can insert text at the end of the line, but I can...
View ArticleHow to draw a line a streight line at run time, with seeing the track of the...
Is there any way to draw a straight line with mouse actions, and see the line while moving the mouse? Here's my scenario:I click on a point and this will be my starting point(X,Y1), then I move the...
View ArticleHow to identify data source for an ObjectDataProvider
I have an Enum named CalMonths in a module. I use the following XAML to use that Enum:xmlns:self="clr-namespace:HIPPO" ..... <ObjectDataProvider x:Key="CalMonths" MethodName="GetValues"...
View ArticlePrinting RTL DataGrid (dot net 4) with hebrew fonts results in mirrored output
Hi,I've seen this issue at older posts, and no solution yet.I have a RTL DataGrid with hebrew text (same problem would be in any other RTL lang.)When I try to print it: PrintDialog dlg = new...
View ArticleTokens in Datagrid cells
Hi,Is it possible to get tokens into cells of a datagrid?I get some text from SQLite tables and they contain tags. These tags are important for the string itself but do not need to be shown as such to...
View ArticleWPF WebBrowser Control stripping out url fragment
I am working on a control that wraps the new facebook login. Basically, I show a wpf hosted web browser for the oath authentication page.For example,...
View ArticleTwo eventtocommands referencing wrongly (Using mvvmlight and...
At the moment while using MVVM I have 2 different comboboxes that require the event "SelectionChanged" to be used to trigger different commands that are defined in 2 different viewmodels for 2...
View Articlerichtextbox in datagrid does not convert urls to link
Hi,If I manipulate content of richtextbox via codebehind and replace text with an URL the url does not get set to proper link.Is there a command I missed in order to tell rtb to enable links (refresh...
View Article