Search results for query: *

  1. F

    ICommand interface CanExecute method question

    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) {...
  2. F

    Question Why must a variable assignment statement be in a method?

    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...
  3. F

    Question Where can I find out more about a WPF program flow?

    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...
  4. F

    Tip All PI's are not born equal!

    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...
  5. F

    Question Where to find matrix operation methods?

    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.
  6. F

    Question How to bind double's to UI element in xaml?

    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...
  7. F

    Question Don't fully understand the x: prefix

    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...
  8. F

    Do I use MVVM or not?

    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...
Back
Top Bottom