Search found 2056 matches

by sfernandez
24 Feb 2021, 11:40
Forum: General Discussion
Replies: 5
Views: 29

Re: Building first app: Error - Partial declarations of App must not specify different base classes

What 'Build Action' do you have for App.xaml and MainPage.xaml? They should be configured as "Embedded Resource" without any 'Custom Build' set. You also need to specify the StartupUri in your App.xaml pointing to your main window xaml: <Application x:Class="UserConsole.App" xmlns="http://schemas.mi...
by sfernandez
23 Feb 2021, 13:49
Forum: General Discussion
Replies: 4
Views: 25

Re: Error The resource "clipPath28" could not be resolved.

As I said you can use a Geometry instead of PathGeometry until we fix the Figures property converter:
<Geometry x:Key="Path28">M 1162.8 -28.368 H 27.648 V -813.456 H 1162.8 v 785.088</Geometry>
by sfernandez
23 Feb 2021, 12:09
Forum: General Discussion
Replies: 3
Views: 18

Re: Behaviour<T> + VisualStateManager - Templates not applied

Yes, you can simply use ApplyTemplate() in this case. Thanks for the update.
by sfernandez
23 Feb 2021, 11:16
Forum: General Discussion
Replies: 4
Views: 25

Re: Error The resource "clipPath28" could not be resolved.

Hi, I've just tried that same xaml in Noesis 2.2.6 XamlPlayer and it didn't work because PathGeometry wasn't implemented. Perhaps you were using a plain Geometry before: <Geometry x:Key="Path28">M 1162.8 -28.368 H 27.648 V -813.456 H 1162.8 v 785.088</Geometry> Anyway, PathGeometry is something that...
by sfernandez
23 Feb 2021, 10:57
Forum: General Discussion
Replies: 5
Views: 29

Re: Building first app: Error - Partial declarations of App must not specify different base classes

Did you have a using Windows.UI.Xaml; in your App.cs or in App.xaml.cs? You should define using NoesisApp; instead. App.cs using System; using NoesisApp; using Windows.ApplicationModel.Core; using Windows.UI.Core; namespace RssReader { partial class App : Application { protected override Display Cre...
by sfernandez
23 Feb 2021, 10:45
Forum: General Discussion
Replies: 3
Views: 18

Re: Behaviour<T> + VisualStateManager - Templates not applied

Hi, in situations where you need controls to have their template already applied you can explicitly call ApplyTemplate() as you did, or you can hook to Loaded event, which happens after control has been measured, so its template is ready.

Cheers.
by sfernandez
23 Feb 2021, 01:26
Forum: General Discussion
Replies: 5
Views: 62

Re: Visual 'TextBlock' Is not a descendant of the specified ancestor 'RootVisual'

This happens because Runs are not part of the visual tree, they just provide the information to build the text for the TextBlock. But you can use an InlineUIContainer with a TextBlock so you have a visual element to target in your tooltip: <TextBlock TextWrapping="Wrap"> <Run Text="Some text"/> <Inl...
by sfernandez
19 Feb 2021, 12:56
Forum: General Discussion
Replies: 5
Views: 62

Re: Visual 'TextBlock' Is not a descendant of the specified ancestor 'RootVisual'

I was investigating the issue and found that popup is not checking if the target element is in the tree, so it was producing those error messages. Could you please report it in our bugtracker so we fix it for the next release. Anyway, the source of the problem is that you are hiding the unit info po...
by sfernandez
18 Feb 2021, 16:29
Forum: General Discussion
Replies: 3
Views: 52

Re: Binding to DependencyObject Properties

It is not working because the items in your collection are not part of the logical tree so resources and bindings can't walk up the tree to resolve the references. You can use a FreezableCollection that automatically connects its items to the tree: public class ParameterCollection : FreezableCollect...
by sfernandez
08 Feb 2021, 11:08
Forum: General Discussion
Replies: 3
Views: 53

Re: It seems x:Array isn't implemented (Unknown type 'Array')?

Great, I'll mark this post as solved.