Search found 7 matches

by MarcusM-PDX
19 Aug 2024, 15:53
Forum: General Discussion
Replies: 4
Views: 6035

Re: Custom TypeConverter for Wrapper to String

Here's the complete TypeConverter Example. In this example, I have a wrapper that is enclosing various Strings but is not itself a String, and I want to be able to do a situation where I bind the Wrapper to something like a TextBox.Text field. Below is the example LocalizationWrapper which needs the...
by MarcusM-PDX
19 Aug 2024, 15:30
Forum: General Discussion
Replies: 4
Views: 6035

Re: Custom TypeConverter for Wrapper to String

That did the trick! Thanks!
by MarcusM-PDX
15 Aug 2024, 16:55
Forum: General Discussion
Replies: 4
Views: 6035

Custom TypeConverter for Wrapper to String

NOTE: A few posts down I show a working example of a TypeConverter, for those of you in the future looking for one. :) Greetings there, I'm attempting to write a TypeConverter in C++ that will allow me to bind a particular wrapper into Strings. There's a bit of sanity there, I promise. Below is a s...
by MarcusM-PDX
01 Aug 2023, 11:16
Forum: General Discussion
Replies: 18
Views: 8756

Re: Using EventTriggers gives error

No problem, happy to help! The CommandInvoker solved a lot of problems for me, so I was happy to give back! :D
by MarcusM-PDX
25 Jul 2023, 15:17
Forum: General Discussion
Replies: 18
Views: 8756

Re: Using EventTriggers gives error

A bit of a necro here, but for anyone that sees this, one useful thing you can do which appears to work for me is that instead of the following: <BooleanAnimationUsingKeyFrames Storyboard.TargetName="enterCommandInvoker" Storyboard.TargetProperty="Invoke"> <DiscreteBooleanKeyFram...
by MarcusM-PDX
13 Jun 2023, 09:38
Forum: General Discussion
Replies: 2
Views: 2493

Re: WPF cannot get the length from a String, because it's actually Boxed<String>

Using a converter to get the Length worked perfectly, even gave myself a few other features in the process.

Thanks!
by MarcusM-PDX
31 May 2023, 10:45
Forum: General Discussion
Replies: 2
Views: 2493

WPF cannot get the length from a String, because it's actually Boxed<String>

Error Message [Noesis - Binding]: Can't solve PropertyPath: Type 'Boxed<String>' does not contain a property named 'Length' [Noesis - Binding]: Binding failed: Path=CustomText.Length, Source=Game.TechnologyWrapper(''), Target=Button('Slot'), TargetProperty=Game.Custom.Int Code game:Custom.Int="...