My program is based on the MVVM structure. In essence the click of a button kicks of a series of calcs with the answers displayed in textboxes. Button is bound to a property of ICommand type in the ViewModel.
I currently have:
public bool CanExecute(object parameter)
{...
Hi
I have 3 classes, viz. MyClass1, My Class2, MyClass3 (note - did not bother with Constructors for MyClass 2 and 3 here). I was playing around instantiating MyClass2 and MyClass3 in MyClass1 and calling on methods in MyClass2 and 3. Got it to work but noticed something:
Following code...
A weakspot I still have is not understanding completely the program flow of a C# WPF application. So for example when I press the START button in Visual Studio what exactly happens? What exactly is the starting point? Is it always where the static void Main() method resides? Does...
I needed to calculate the formula 2 * PI * freq * 2e-4 :
Using PI = 22/7, I got 0.062857142
However, using PI itself as defined per Math.PI I get 0.062831853
(freq = 50Hz)
The latter result is identical to my calculator and Excel. I was using doubles.
So be warned - it does seem that PI's...
Hi
I need to do some matrix operations (inverse and multiplication ) for up to 3 x 3 matrices with complex numbers. Has this been coded in any library? Really am not looking forward to code every single calc for every matrix entry.
Google search has not helped so far.
Thanks.
I have a basic textbox as follows in my xaml file:
<TextBox x:Name="txtbxHCondC" Text="{Binding Path = CondCHeight, Mode=OneWayToSource}" Grid.Row="6" Grid.Column="18" FontSize="12" TextAlignment="Left" VerticalAlignment="Center" BorderThickness="0" Grid.ColumnSpan="3" />
The text attribute...
Hi
Been reading up on what the x: prefix in xaml really does. One comment I saw twice was - "x is used for mapping the XAML namespace in templates for projects." I find this a bit confusing. Is the namespace in templates? What templates? What is the relation between templates - namespace and...
Hi, I need to write a C# WPF application that does some mathematical calcs on numbers entered in the UI. The results are to be displayed in a separate page. There will be quite a bit of calcs using matrices and complex numbers.
I'm tossing up as to whether I should use just code-behind or do I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.