Search found 43 matches

by samc
27 Sep 2022, 20:13
Forum: General Discussion
Replies: 3
Views: 87

Re: StoryboradCompletedTrigger woes

ControlStoryboardAction worked! thank you!

sam
by samc
27 Sep 2022, 03:10
Forum: General Discussion
Replies: 3
Views: 87

Re: StoryboradCompletedTrigger woes

Forgot to post this. Here is my basic setup: <DataTemplate x:Key="MapIcon_Ping_Template"> <DataTemplate.Resources> <Storyboard x:Key="PingAnimationStoryBoard"> <!-- story board is here --> </Storyboard> </DataTemplate.Resources> <Canvas x:Name="Root" RenderTransform=&qu...
by samc
27 Sep 2022, 02:56
Forum: General Discussion
Replies: 3
Views: 87

StoryboradCompletedTrigger woes

I'm trying to implement a "ping" icon for my map (ie, something that does a little pulse to draw your attention). I have a data template for my PingIcon. I made some visual states: "Pinged" and "Hidden". I made a storyboard that does the ping animation that is triggered...
by samc
14 Sep 2022, 02:15
Forum: General Discussion
Replies: 4
Views: 125

Re: Specifying resource keys using data binding

I used pretty much the identical technique to switch to named styles; it all seems to work ok (when the data binding changes, the style is re-evaluated). It seems like style is more generic in terms of all the things I can do with it, so assuming the performance isn't terrible I"ll probably con...
by samc
13 Sep 2022, 23:12
Forum: General Discussion
Replies: 4
Views: 125

Re: Specifying resource keys using data binding

Thanks for the pointers! I was able to get this all working. For future reference to anyone who runs into this thread, here's where I ended up: I put all my "geometry" into a resource dictionary: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
by samc
12 Sep 2022, 19:47
Forum: General Discussion
Replies: 4
Views: 125

Specifying resource keys using data binding

Hello! I've been struggling with the proper way to setup a map system we've created in Noesis. The basics are this: we have a bunch of different icons we want to display on the map: stores, monsters, other points of interest. This pretty much comes down to a list "icons" that have this typ...
by samc
02 Sep 2022, 20:44
Forum: General Discussion
Replies: 5
Views: 229

Re: Data binding data template with a user control

I found out what was causing this! I had some code in my user control constructor that was initializing the data context: public partial class TeamInventoryItemView : UserControl { public TeamInventoryItemView() { InitializeComponent(); // The line below was causing this bug: DataContext = new TeamI...
by samc
01 Sep 2022, 00:51
Forum: General Discussion
Replies: 5
Views: 229

Re: Data binding data template with a user control

Ah, that's great to hear that this should be supported! It felt like I was doing something stupid! I attempted to remove the "DataContext="{Binding}"" syntax, but it still isn't working. I see the TeamInventoryItemView being displayed, but none of the bindings appear to be workin...
by samc
30 Aug 2022, 21:05
Forum: General Discussion
Replies: 5
Views: 229

Data binding data template with a user control

I have a data binding question. I have an ItemsControl that is bound to an observable collection of items. My data template has been working fine, but it started to get really big.. So I decided to try to move the contents of the data template into a user control. Unfortunately, this seems like it b...
by samc
17 Aug 2022, 01:42
Forum: General Discussion
Replies: 1
Views: 100

Is there a way to debug the current visual state?

I'm finding that often times I have controls with multiple visual state groups, and it isn't always clear to me what the current visual state of each group is. Is there a way to debug this / get this? I was trying to look for something in the noesis inspector tool but I couldn't figure it out. thank...