Search found 3193 matches

by sfernandez
6 minutes ago
Forum: General Discussion
Replies: 2
Views: 203

Re: Help setting focus to element in ItemsControl

Thanks for sharing your solution.

As you described, a UI element must be connected to the View and visible/enabled to receive focus. Waiting to the Loaded event is a good place for this to be true.

Another option would be to hook to the LayoutUpdated event instead when the ItemsSource changed.
by sfernandez
14 minutes ago
Forum: General Discussion
Replies: 9
Views: 342

Re: ComboBox and Mobile

If you remove the Viewbox, does the ComboBox dropdown show without clipping?
by sfernandez
04 Feb 2025, 11:29
Forum: General Discussion
Replies: 9
Views: 342

Re: ComboBox and Mobile

Could you please provide a RenderDoc capture of a frame showing the ComboBox dropdown in that device?
by sfernandez
04 Feb 2025, 11:27
Forum: General Discussion
Replies: 6
Views: 338

Re: Unity - Issues with Android devices playing videos

Glad it worked!
by sfernandez
04 Feb 2025, 11:26
Forum: General Discussion
Replies: 5
Views: 167

Re: Custom Unity SpriteAtlas control.

Our Inventory example uses an Sprite Atlas for showing the inventory icons.

Thanks for the update, I'm going to mark this as solved then.
by sfernandez
04 Feb 2025, 11:23
Forum: General Discussion
Replies: 3
Views: 198

Re: Bitmap Image GetWidth or GetPixelWidth always returns 0

In the case of the BitmapImage, when Init is called we use the TextureProvider to access the image file and read the header for getting the bitmap information. In general the Init() method just puts DependencyObjects in a ready state to listen and notify of property changes. In normal circumstances ...
by sfernandez
30 Jan 2025, 13:05
Forum: General Discussion
Replies: 3
Views: 198

Re: Bitmap Image GetWidth or GetPixelWidth always returns 0

Hi, Newly created resources are not initialized and haven't loaded the required asset to get the information. If you call Init on the image it will load the specified png and you should be able to get its size information: const auto image = Noesis::MakePtr<Noesis::BitmapImage>(Noesis::Uri("Pat...
by sfernandez
30 Jan 2025, 13:00
Forum: General Discussion
Replies: 5
Views: 322

Re: How to set 2 color background to a TreeView

I have implemented a Behavior that attaches to the TreeViewItem and
recalculates the AlternationIndex with the Expanded State of the TreeViewItem.

The Behavior handles Loaded, Expanded, and Collapsed.
That is a good solution too, thanks for sharing it!
by sfernandez
30 Jan 2025, 12:59
Forum: General Discussion
Replies: 6
Views: 338

Re: Unity - Issues with Android devices playing videos

Hi, my sample can be changed so instead of playing on load, it reacts to changes of the MediaElement Source property and enables looping: <MediaElement x:Name="media" Stretch="Uniform" LoadedBehavior="Manual"> <b:Interaction.Triggers> <b:PropertyChangedTrigger Binding=&...
by sfernandez
30 Jan 2025, 10:53
Forum: General Discussion
Replies: 9
Views: 342

Re: ComboBox and Mobile

Are there any constraints specific to mobile for comboBox? No, the code is the same for all platforms. The only limitation is given by the View (the surface) size. Could you connect the Inspector and investigate the sizes of the parent elements of the drop down, to see if there is any unexpected He...