Andrew KeepCoding

Results 154 comments of Andrew KeepCoding

The `SwitchPresenter` only needs the **Name** of the selected item from the `Segmented` control. Since this `Segemented` control is already accessible as a `TemplatedPart`, why not just also include the...

Yes, it worked with a few lines of code: ```cs private void ColorPanelSelector_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ContentContainer is null || (sender as Segmented)?.SelectedItem is not FrameworkElement selectedItem) {...

Hi @michael-hawker ! Should I be assigned to create a PR for this? or can I go ahead and create one?

Yes, that's the idea. This approach will also cover cases for strings that you might not need to localize (e.g. On/Off, units, etc.).🙂

Hi @LluisV The exception is coming from [CreateLanguageDictionaryItem](https://github.com/AndrewKeepCoding/WinUI3Localizer/blob/main/WinUI3Localizer/LocalizerBuilder.cs#L201), so it seems that there is something wrong in the *.resw file. 🤔

The only way that I can reproduce this exception message is by setting a negative value in `firstSeparatorIndex` before `AsSpan` is called. But I can't come up with a case...

I supposed this used to work, right? Can your user try installing the app on another system?

Is the exception gone if you pass an *.resw file with no string resources? If so, might take time but can you try reducing the strings by chunks to narrow...

This seems to be a very rare case, and I have no idea what might be causing this issue. If you are up to it, I guess it's faster if...

I installed the Thai language package, set it as the Windows display language, and ran the WinUI3LocalizerSample app, but everything seems to be working as expected. What could I be...