Questions tagged [fsharp.viewmodule]

Library providing MVVM and INotifyPropertyChanged support for F# projects.

Together with FSXaml FSharp.ViewModule can be used to develop WPF applications in F#.

10 questions
5
votes
1 answer

Closing a dialog with FSharp.ViewModule

In my previous question "Enabling dialog OK button with FSharp.ViewModule", I got to the point where a dialog's OK button was enabled only when the validators for the dialog's fields were true, and ViewModule's IsValid property became true. But I…
DenisV
  • 279
  • 1
  • 8
5
votes
1 answer

How to keep button enabled while performing asynchronous task

In my xaml I have a Button and a TextBlock
user6283344
5
votes
1 answer

FsXaml.Wpf.TypeProvider cannot be loaded

I'm trying to use WPF with F#. I've created a project using the F# Empty Windows App template (in fact, I've created several using different settings). Then I added the FSharp.ViewModule and FsXaml.Wpf references. It works fine when the project only…
DenisV
  • 279
  • 1
  • 8
4
votes
1 answer

F# WPF: Handling click events in ListBox

I'm trying to create a simple task scheduler using F# and WPF. It's basically just a list of tasks where every task has a 'Delete' button. Handling button clicks outside of the list is not a problem -- this can be handled with a regular command.…
Dmitry G.
  • 584
  • 5
  • 13
4
votes
0 answers

Memory usage by SpeechSynthesizer

I have writtten an application using SpeechSynthesizer which reads out text of a TextBox. In my ViewModel I have created a Single instance of that class and overridden Finalize method for disposal. When I paste some text in the TextBox and keep…
user6283344
4
votes
1 answer

F# async/await in a viewmodel

My ViewModel in F# I'm trying to use F# instead of C# to implement my ViewModel. I'm following this article (btw, is there something newer or any better suggestion?). So let's say that I have my view model base implementation (MVVM.ViewModel, it's…
user7040889
3
votes
1 answer

Enabling dialog OK button with FSharp.ViewModule

I have a simple dialog with two fields for entering a person's name and address, and I only want the OK button to be enabled when they both have values. Here are the relevant parts of my view:
DenisV
  • 279
  • 1
  • 8
2
votes
1 answer

How to use FsXaml's CommandDependecy/(ies)

Here is what I have done using FsXaml type MainViewModel() as self = inherit ViewModelBase() let listOfData = self.Factory.Backing(<@self.ListOfData@>, 0 :> obj) let selectedId = self.Factory.Backing(<@self.SelectedId@>, 0) member…
user6283344
2
votes
1 answer

how do I bind a command/property to PropertyChanged in FSharp.ViewModule

In FSarp.ViewModule I have a simple view where clicking the button generates a random number in the left textbox, based on the right textbox. How would I bind the a change in the right textbox (e.g. inputting a number by hand) so that it would…
s952163
  • 6,276
  • 4
  • 23
  • 47
1
vote
1 answer

f# xaml "this.factory" does not contain CommandSync

I have a strange error with fsxaml and F#. I have a view model and I want to make a call to CommandSync from the factory property but it's not available. Actually it's empty, no functions available. What am I missing here? code : namespace…
Mike F
  • 316
  • 3
  • 14