« first day (3895 days earlier)      last day (1061 days later) » 

1:44 AM
god morgon
 
mr5
2:25 AM
who's morgon
@Lavandysh were you able to solve it?
 
3:26 AM
its means good morning
@mr5 im yet to try that you suggested yesterday. got caught coding other stuff
 
4:05 AM
@mr5 what was that again about the indicator? you suggested one wasnt able to try it
the last one
 
got it
it is?
 
mr5
I just made an assumption based from your example
did you try the official example?
 
alright. well looks like its a bug
 
mr5
I haven't tried carouselview yet so can't comment on that
 
4:08 AM
yeah did it just like that. no problem adding photos to carousel. however, if initially loaded without source (0 items in list)
indicator view doesnt show
in other words its not refreshing
 
mr5
oic
what is the type of your ItemsSource?
or how are you refreshing it?
 
pasting mah men
<CarouselView ItemsSource="{Binding LstSelectedImageSource}"

                              EmptyView="No items to display."

                              IndicatorView="{x:Reference indicatorView}"
                              >
                    <CarouselView.ItemTemplate>
                        <DataTemplate>
                            <StackLayout><Image Source="{Binding .}"
                                                Margin="10,10,10,10"
                             HeightRequest="320"
LstSelectedImageSource is bound to an observable
 
mr5
click the "fixed font" to format your code
 
   var stream = await selectedImageSource.OpenReadAsync();

            var byteValue = StreamHelper.ToByteArray(stream);


            if(stream.Length != 0) {
                    lstSelectedImageSource.Add(ImageSource.FromStream(() => new MemoryStream(byteValue)));
and that everytime a photo is added.
so carousel does refresh but not indicators
in my head, indicator is bound to carousel. carousel refreshes so should indicator. since carousell itemsource is implicitly bound to indicator
by doing <CarouselView Indicator= "myIndicator">
 
mr5
yeah that's what I would assume too
IndicatorView has a Count property though. Maybe it's needed to be updated?
 
4:17 AM
yeah. bind it to an observable too?
 
mr5
INPC compliant but it's a workaround.
did you found any similar issues? looks like a bug to me.
@c0dem0nkey also, where you reading your images from?
 
its from stream.
i used mediapicker
 
mr5
so from FileStream?
 
so it returns stream and i read it to
 
mr5
reading it from file?
 
4:23 AM
imagesource.fromstream.
 
mr5
MediaPicker will read from phone gallery right?
I've been out in Xamarin for a while now though so I can't remember lol
 
yea so im picking some photos from there
its so buggy
 
mr5
the one from Xamarin Essentials?
 
yep
 
mr5
var stream = await selectedImageSource.OpenReadAsync();
lstSelectedImageSource.Add(ImageSource.FromStream(() => stream);
btw, you can simplify it like this
I'm not sure if you need to dispose the stream on that point
 
4:27 AM
thats why i keep the byte.
 
mr5
that doesn't change it though
it's still undisposed.
 
so youre saying to keep it open
for inidicator?
looks like somebody else encountered this before
 
mr5
the ImageSource.FromStream expects a lambda, so I would assume you need not to dispose the stream
oic. izz a bug
but have you tried binding the Count property of the indicator view?
 
yeah but doubt i successfully did
 
4:43 AM
Wtf
 
 
6 hours later…
10:37 AM
@mr5 @mr5 In the end I was. 5 minutes before the end of my work day yesterday. Thank you for caring
 
 
1 hour later…
11:45 AM
sup@mr5
 
12:28 PM
I am needing to get the selected radiobutton for each group using an MVVM pattern. Does anyone know how to?
                            <GroupBox Header="Brand (Logo)">
                                <StackPanel Orientation="Horizontal">
                                    <RadioButton Content="Yes" Margin="0 0 10 0" />
                                    <RadioButton Content="No"  Margin="0 0 10 0" />
                                    <RadioButton Content="N/A" />
                                </StackPanel>
                            </GroupBox>

                            <GroupBox Header="Product Name">
 
1:25 PM
Add an IsChecked bool prop to each element in your observable collecgtion and bind that to each item's IsChecked attribute: stackoverflow.com/a/4421002
 
1:39 PM
when you wash your hands with a soap bar, if you listen close you can hear "ahh that feels sooo good~ -purring sounds-"
 
2:38 PM
Is shiba disabled?
 
 
2 hours later…
4:22 PM
what?!?!?!?!?
!~shiba
@nyconing we need shiba :'(
 
 
2 hours later…
6:22 PM
posted on June 10, 2021 by Scott Hanselman

Go get .NET 5 for Windows, Mac, or Linux, over at https://dotnet.microsoft.com/ Then install Jon Sequeria's "dotnet repl" with this one line global tool install: dotnet tool install --global dotnet-repl Then just type dotnet repl at the command line. Use the Windows Terminal ideally. That will drop you here! With .NET Interactive/.NET Notebooks at the heart, consider this command-line expe

 

« first day (3895 days earlier)      last day (1061 days later) »