Search found 2323 matches

by sfernandez
Yesterday, 19:33
Forum: General Discussion
Replies: 6
Views: 42

Re: Crash using std::map to sort items in ObservableCollection

Regarding your sort approach (using an intermediate map) I want to mention that you can use the Move method in ObservableCollection to sort your items without removing and adding them. This will perform a lot better as Move notifications just change the associated containers index (if collection is ...
by sfernandez
16 Sep 2021, 13:07
Forum: General Discussion
Replies: 3
Views: 364

Re: TreeView / ListView rendering hidden rows outside local viewport

Great, thanks for the update.
by sfernandez
16 Sep 2021, 12:34
Forum: General Discussion
Replies: 2
Views: 499

Re: Update UI from different thread.

I was going to say that you shouldn't use Dispatcher.CurrentDispatcher.CheckAccess() because that returns the dispatcher for the current thread, so it will always have access. And that you would probably need to store the Dispatcher used for the UI, so you can check against it, something like: prote...
by sfernandez
16 Sep 2021, 12:30
Forum: General Discussion
Replies: 6
Views: 1956

Re: 3.1.0 ScrollView problem pink and not scrolling

Marked this as solved, thanks.
by sfernandez
16 Sep 2021, 12:27
Forum: General Discussion
Replies: 3
Views: 364

Re: TreeView / ListView rendering hidden rows outside local viewport

This seems a problem with stencil, we rely on that for clipping on this kind of scenarios.
Are you setting up a stencil buffer when creating your main surface? Are you clearing it before rendering the UI to the screen?
by sfernandez
13 Sep 2021, 11:56
Forum: General Discussion
Replies: 6
Views: 1956

Re: 3.1.0 ScrollView problem pink and not scrolling

This is just a binding error that indicates that you are not specifying a View in your ListView (so it behaves like a simple ListBox without columns). You probably have something like this: <ListView ItesmsSource="{Binding SomeItems}"/> If you want to show several columns for each item you have to s...
by sfernandez
10 Sep 2021, 11:31
Forum: General Discussion
Replies: 9
Views: 2194

Re: Subclassing ScrollViewer not working as expected

It seems to be a bug with the x:Key parsing of custom types. This is not working: x:Key="{x:Type cl:MyScrollViewer}" , and you should get an error message when your xaml is parsed. Could you please report it? In the meantime you can skip specifying the key, as TargetType will automatically used as k...
by sfernandez
10 Sep 2021, 11:13
Forum: General Discussion
Replies: 6
Views: 1956

Re: 3.1.0 ScrollView problem pink and not scrolling

When you see pink controls it means you are not specifying any styles for your application and it is falling back to our internal default styles . You can use our theme by adding this to your App.xaml as we do in some of our samples: <Application x:Class="UserControls.App" xmlns="http://schemas.micr...
by sfernandez
09 Sep 2021, 12:57
Forum: General Discussion
Replies: 2
Views: 1974

Re: Loaded event inside DataTemplate.Triggers not working properly

Created issue #2107 to track this problem.
by sfernandez
08 Sep 2021, 20:24
Forum: General Discussion
Replies: 9
Views: 2194

Re: Subclassing ScrollViewer not working as expected

I don't understand why are you setting CanContentScroll to the baseValue inside the coerce callback... Forget what I said about this, I just noticed that you have another property in your custom control with the same name. Our coerce implementation was not expecting that the object could be modifie...