Search found 8 matches

by MattNiznak
07 Jun 2021, 17:40
Forum: General Discussion
Replies: 1
Views: 4440

Update Draw from views

I've been trying to use Views to swap between drawing All the UI and A subsection of the UI. Think View->GetContent() is RootElement -> Subelement, and View2 is just Subelement. I don't know if this is a legit way to use them, because when my logic swaps between View->GetRenderer()->Render() and Vie...
by MattNiznak
21 Oct 2020, 13:59
Forum: General Discussion
Replies: 1
Views: 1116

Preload resource dictionary and change resource dictionary at runtime.

I'm still on Noesis 2.2. The method I'm using for loading elements is that elements are dynamically generated based on other data... so elements have their own XAML and are loaded without hierarchy. They are then attached to a parent. If I load this way, they load before parented and don't inherit t...
by MattNiznak
07 Apr 2020, 01:51
Forum: General Discussion
Replies: 1
Views: 986

Walking a TreeView

Is it possible to get the root node of the TreeView, iterate over it's children, find their parents, children, and get values related to their elements? The problem that I'm trying to solve is that I have an external tree data structure that I'd like the treeview to mirror, as well as be able to mak...
by MattNiznak
31 Jan 2020, 02:36
Forum: General Discussion
Replies: 5
Views: 2150

Re: Trouble with implementing behaviors

Nevermind. I figured out that adding
#define NS_APP_INTERACTIVITY_PRIVATE
to Interactivityapi.h fixes the dll linkage problem.
by MattNiznak
30 Jan 2020, 22:11
Forum: General Discussion
Replies: 5
Views: 2150

Re: Trouble with implementing behaviors

Thanks for that. I still have issues with adding the files, themselves. I get a ton of inconsistent dll linkage errors. Does this mean I need to remove the 'NS_APP_INTERACTIVITY_API' tag from the classes?
by MattNiznak
28 Jan 2020, 22:52
Forum: General Discussion
Replies: 5
Views: 2150

Trouble with implementing behaviors

[NOESIS/E] DragTest.xaml(14): Unknown type 'NoesisApp.Interaction'. <ContentControl> <i:Interaction.Behaviors> <local:DropItemBehavior/> </i:Interaction.Behaviors> <Grid Height="320" HorizontalAlignment="Center" Margin="129,12" Width="245" VerticalAlignment=&...
by MattNiznak
14 Nov 2019, 04:56
Forum: General Discussion
Replies: 4
Views: 1182

Re: OnPropertyChanged

So I figured it out... it was me implementing NotifyPropertyChangedBase... I had: class NotifyPropertyChangedBase : public Noesis::INotifyPropertyChanged, public Noesis::BaseComponent with NS_IMPLEMENT_INLINE_REFLECTION(WpfApp::NotifyPropertyChangedBase, INotifyPropertyChanged) and while this ran, t...
by MattNiznak
09 Nov 2019, 04:37
Forum: General Discussion
Replies: 4
Views: 1182

OnPropertyChanged

I'm trying to not have to use the NoesisAPP dll for my project, and I've gotten to the point where I'm trying to bind a property (for a textbox) to a NsString variable. I can set the variable directly with NsStringVar = myconstcharptrvar, but whenever I use the textbox to reflect back information, t...