Questions tagged [cinch]

Cinch may refer to an open source MVVM framework for .NET available in a WPF and Silverlight flavor or a ruby based IRC bot framework.

Cinch may refer to:

  • An open source MVVM framework for .NET available in a WPF and Silverlight flavor.
  • A ruby based IRC bot framework.
22 questions
10
votes
6 answers

MouseBinding the mousewheel to zoom in WPF and MVVM

OK, I've figured out how to get my Grid of UI elements to zoom, by using LayoutTransform and ScaleTransform. What I don't understand is how I can get my View to respond to CTRL+MouseWheelUp\Down to do it, and how to fit the code into the MVVM…
Kage
  • 563
  • 2
  • 10
  • 20
6
votes
3 answers

Library or own Framework?

When should you use a library or a framework vs your own implementation. For example. MVVM, should I use Cinch/MVVM Framework or roll my own code?
akshaykarthik
  • 1,055
  • 2
  • 13
  • 30
4
votes
2 answers

Getting Unity to Resolve views in XAML

I'm starting out with MVVM, and I'm starting to understand things. I'm currently experimenting with the Cinch framework, though I'm not committed to it as of yet. I was injecting the ViewModels into the Views using by having a reference to the…
Kage
  • 563
  • 2
  • 10
  • 20
2
votes
2 answers

MVVM: Make Binding update ViewModel only when data is VALID

I have a ViewModel that implements the IDataErrorInfo interface. It just has a property: MyNumber. In my view have a TextBox in which the user can type any number, but only numbers from 0 to 9 are valid. So far, the textbox is marked in red when…
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
2
votes
1 answer

Adding tabs in MVVM asynchroniously

I'm developing an application with Sasha Barber's Cinch Framework for MVVM in WPF. This application shows two tabs. The MainWindowViewModel started a background worker that listens for incoming socket connections. If a client connects via the socket…
Knut
  • 41
  • 3
1
vote
0 answers

How do you properly extend a WPFService in CINCH V2?

I am new to MVVM, I am trying to use CINCH v2 MVVM framework by Sacha Barber and I have doubts of how to extend one of the framework services in the correct way, I hope I can get some advice from your experiences. I am writing a WPF app, using MVVM.…
Luciano
  • 151
  • 1
  • 9
1
vote
1 answer

Cinch version of ViewModel command to close a View

Without wanting to bug sacha too much, does anyone know what the Cinch V2 way of closing a View from a ViewModel command? Previously I have used a RelayCommand in the ViewModel base to accept the Escape keybinding command action and wired up a…
Cheval
  • 403
  • 4
  • 14
1
vote
1 answer

Inject view into a container MVVM WPF

This has been giving me pain for some time. I know Prism injects views into regions, however is there a way of doing a similar sort of thing with Cinch, on a view first basis? For example I have a container (effectively a region) which can contain…
Ian
  • 275
  • 6
  • 17
1
vote
1 answer

Sending Msg to the channel in cinch bot framework

i just started using this cinch gem and using this framework to develop a bot. facing an issue in this .I Wanted to bot send a message to a channel when anybody joins channel Could anybody help me on this. Code : listen_to :join, method: :on_join …
phulei
  • 55
  • 1
  • 8
1
vote
1 answer

What happened to Models in CinchV2?

In CinchV1 there was a section of Sacha's CodeProject post which described how to develop Models with Cinch. Now, looking at the documentation for CinchV2, all I can find out about models is this: 4 Developing Models Using Cinch NOTE : This…
1
vote
2 answers

MVVM and Stateful commands - Good or bad idea?

I thought I'd post here in the hope that maybe someone with MVVM expertise would be able to offer opinions on whether the following is a good idea: I'm using Sacha Barber's Cinch MVVM framework, which includes Marlon Grech's SimpleCommand class. One…
Phil
  • 2,675
  • 1
  • 25
  • 27
1
vote
2 answers

Using ActiveRecord inside another class

I'm trying to set up an IRC bot using ActiveRecord on the back end to handle all the data heavy lifting (probably overkill, but this is partly a learning experience for me :3) The issue I'm running in to is that, after defining my database schema,…
Mikey T.K.
  • 1,112
  • 18
  • 43
0
votes
1 answer

How to implement a login/admin system for an IRCbot in Ruby?

This has been bugging me for a while. I have this ircbot that I run, and I have some commands that require to be locked down from all users other than myself (and a couple of other computers/users.) Previously, I had it so then it would store a list…
Mark
  • 317
  • 1
  • 3
  • 17
0
votes
1 answer

How to read a file more than one time in Cinch and Ruby

I have this code: on :message, "something" do |m| m.reply file.read.lines[2] end ...which works, but only once. When I try it again or use the same code but with a different file, it doesn't work. Can someone help me do this?
EPICBRONY
  • 45
  • 6
0
votes
1 answer

WPF using CINCH SelectedItem COMBOBOX

I am using cinch framework v1. I have exposed a public property ( CurrentSuppier )and binded that property to the selecteditem of my combo box .. after I update the , the combobox display doesn't change to the current value of the supplier .. below…
Dennis
  • 1
  • 1
1
2