Search found 2097 matches
- 09 Apr 2021, 18:32
- Forum: General Discussion
- Replies: 2
- Views: 28
Re: html formatting in dynamic text
Hi, A TextBlock doesn't directly understand that formatted text. What other clients are doing is creating an attached property or behavior that generates the inlines for the TextBlock. Something like this: <TextBlock local:FormattedTextParser.Text="{Binding SomeFormattedText}"/> The parsing process ...
- 09 Apr 2021, 16:50
- Forum: General Discussion
- Replies: 1
- Views: 22
Re: i:Interaction.Triggers on Templates and Custom Controls are not instanced
Hi Justen, The correct way of doing this in WPF is by defining the Storyboards as part of the resources of an element of the template VisualTree: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:i="http://schemas.mic...
- 09 Apr 2021, 13:13
- Forum: General Discussion
- Replies: 4
- Views: 22
Re: DataTemplate creation in code
Please see my answer to your other post: viewtopic.php?f=3&t=2256&p=12448#p12448
- 09 Apr 2021, 13:10
- Forum: General Discussion
- Replies: 2
- Views: 18
Re: Implicit DataTemplates
I just created a view model like this: namespace Testing { public class MyViewModel { } } And use it in a xaml like this: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Testing"> <Grid.Resource...
- 09 Apr 2021, 12:58
- Forum: General Discussion
- Replies: 3
- Views: 15
Re: Assigning view to NoesisView in code
In Unity you can have a root xaml, let's say MainPage, that you can add to the scene using the NoesisView component. <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid x:Name="LayoutRoot"/> </Page> This will generate ...
- 09 Apr 2021, 12:05
- Forum: General Discussion
- Replies: 4
- Views: 22
Re: DataTemplate creation in code
Hi, the WPF framework is huge and we are implementing more and more things on each version based usually on the most requested features by our clients. If you find anything you need please don't hesitate to ask here in the forums and/or create a ticket in our bugtracker asking for it. So first of al...
- 09 Apr 2021, 10:30
- Forum: General Discussion
- Replies: 4
- Views: 40
Re: Assertion when using TemplateBinding
I was referring to the moment that a TemplateBinding value was set to the VisualTree when applying the Template: https://referencesource.microsoft.com/#PresentationFramework/src/Framework/System/Windows/FrameworkTemplate.cs,822 WPF implementation just creates a normal Binding with RelativeSource.Tem...
- 07 Apr 2021, 16:49
- Forum: General Discussion
- Replies: 5
- Views: 42
Re: controller B nav sometimes triggers multiple times, sometimes not at all
Is there a way to consume a button click event so that when visual tree changes it won't pick up the same button event again? Maybe something a delay before changing visual tree would work (seems hacky)? The default implementation of the GamepadTrigger doesn't handle the event, but the source code ...
- 06 Apr 2021, 19:54
- Forum: General Discussion
- Replies: 5
- Views: 42
Re: controller B nav sometimes triggers multiple times, sometimes not at all
GamepadTrigger, when property ActiveOnFocus is not set to true, registers on the root element of the tree. So if you have 3 triggers (one for each screen), the 3 of them will be registered on the root of the tree and all will be triggered when the gamepad button is pressed if the ConditionBehavior i...
- 05 Apr 2021, 12:43
- Forum: General Discussion
- Replies: 4
- Views: 51
Re: drop down default focus problem
I did some tests and I can confirm this is a bug in Noesis code, it doesn't behave as expected compared to WPF when no initial selection was made in the ComboBox. Could you please report it in our bugtracker and we will fix it for the next release? Regarding the Inspector, I guess you are launching ...