Search found 66 matches
- 25 Apr 2016, 16:39
- Forum: General Discussion
- Replies: 1
- Views: 1618
Creating ImageSource at runtime
Hi everyone, I'd like to have an ImageSource as a member of a data model and I'd like to create that ImageSource as I create my data model. I've had a look at the BitmapSource API and it requires an Drawing::Image, but I can't find that class in the headers, so I guess I cannot use it. I've found a ...
- 15 Mar 2016, 13:26
- Forum: General Discussion
- Replies: 10
- Views: 5063
Re: VisualState vs Template
Worked fine, thank you for your help!
- 01 Mar 2016, 16:22
- Forum: General Discussion
- Replies: 10
- Views: 5063
Re: VisualState vs Template
That should probably fix it indeed. I can't test that right now, but I will as soon as I can. Many thanks!
- 26 Feb 2016, 17:37
- Forum: General Discussion
- Replies: 10
- Views: 5063
Re: VisualState vs Template
I declare them out of my class like that: #include "Blablabla.h" NS_DECLARE_SYMBOL(Selected) NS_DECLARE_SYMBOL(Unselected) class MyClass { ... } Here is the error I'm getting: 5>NanoWheelEntry.h(24): error C2086: 'Noesis::Core::Symbol `anonymous-namespace'::__sSymbolSelected': redefinition...
- 17 Feb 2016, 11:46
- Forum: General Discussion
- Replies: 10
- Views: 5063
Re: VisualState vs Template
That's good, it's exactly what I've been looking for. Is there a way to go to a VisualState using a Trigger? The code within OnPropertyChanged would be pretty much the same in most cases and being able to make that bridge in Xaml would be perfect. EDIT: I've just noticed I can't declare Symbols with...
- 10 Feb 2016, 11:34
- Forum: General Discussion
- Replies: 10
- Views: 5063
VisualState vs Template
Hi, I have a question about VisualStates. In the tutorials, the Template and Style system seems to be the way to go to provide multiple looks for a single Control. But that means that Control should have DependencyProperty related to Style parameters (like the ones that exist in the Control class). ...
- 11 Dec 2015, 14:01
- Forum: General Discussion
- Replies: 16
- Views: 6921
Re: Creating a Storyboard using C++
That fixed the problem, thank you very much!
- 07 Dec 2015, 14:26
- Forum: General Discussion
- Replies: 16
- Views: 6921
Re: Creating a Storyboard using C++
Hi, I'm trying to do roughly the same as the initial poster. Here is my code, written in a Control deriving from Grid: using namespace Noesis; Drawing::Color transparent(0.0f, 0.0f, 0.0f, 0.0f); Drawing::Color black = Drawing::Color::Black; NsFloat64 halfDuration = static_cast<NsFloat64>(duration * ...
- 03 Nov 2015, 15:18
- Forum: General Discussion
- Replies: 5
- Views: 2566
Re: AttachedProperty in Noesis?
Hello, Sorry for the late answer. I finally took time to check out that solution. Here's my header file: class SectorManager : public Noesis::Gui::Canvas { public: static const Noesis::Gui::DependencyProperty* XProperty; static const Noesis::Gui::DependencyProperty* YProperty; private: static void o...
- 05 Oct 2015, 08:42
- Forum: General Discussion
- Replies: 26
- Views: 10937
Re: Specify ResourceDictionary and ResourceKey in Binding
The only difference I can see is that I'm defining my ControlTemplate within a Style.
Now, about a crash dump, I can't do it, the XamlPlayer give me none (I get a "Gui.XamlPlayer has stopped working" and all I can do is closing the program).
Now, about a crash dump, I can't do it, the XamlPlayer give me none (I get a "Gui.XamlPlayer has stopped working" and all I can do is closing the program).