Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 29 2022 14:10
    BSick7 closed #252
  • Aug 29 2022 14:10

    BSick7 on calendar

    (compare)

  • Aug 29 2022 14:10
    BSick7 closed #196
  • Aug 29 2022 14:10
    BSick7 edited #196
  • Aug 29 2022 14:10

    BSick7 on master

    Create basic implementation of … (compare)

  • Jul 13 2020 08:45
    JigsSodvadiya closed #228
  • Jul 13 2020 08:45
    JigsSodvadiya closed #224
  • Jul 13 2020 08:45
    JigsSodvadiya closed #218
  • Jul 13 2020 08:45
    JigsSodvadiya closed #217
  • Jul 13 2020 08:44
    JigsSodvadiya closed #207
  • Jul 13 2020 08:44
    JigsSodvadiya reopened #207
  • Jul 13 2020 08:44
    JigsSodvadiya closed #207
  • Jul 13 2020 08:44
    JigsSodvadiya closed #199
  • Jul 13 2020 08:44
    JigsSodvadiya closed #190
  • Jul 13 2020 08:43
    JigsSodvadiya closed #187
  • Mar 15 2017 18:16
    dp901 opened #272
  • Mar 15 2017 12:59
    BSick7 commented #271
  • Mar 15 2017 12:58

    BSick7 on 0.19.19

    (compare)

  • Mar 15 2017 12:58

    BSick7 on master

    0.19.19 (compare)

  • Mar 15 2017 12:35

    BSick7 on border-clearvalue

    (compare)

Ronnie Barnard
@Ronmenator
awesome, working perfectly
thank you
Brad Sickles
@BSick7
no problem
Blacksun
@angelcalvasp
microsoft to aquire xamarin
D:
Brad Sickles
@BSick7
i saw that
it was inevitable
Blacksun
@angelcalvasp
D:
Hope they purchase gorilla player next
Ronnie Barnard
@Ronmenator
@BSick7 it seems that the scrollviewer always scrolls to the bottom, is this by design? the same issue is still occurring if you clear a listbox's bound items, and add a new set, it will always scroll down to the bottom.
Brad Sickles
@BSick7
It's most likely just "remembering" it's scroll info and not invalidating
Ronnie Barnard
@Ronmenator
is it a quick fix?
Brad Sickles
@BSick7
Quick to build, potentially, but can have negative side effects
Over invalidation can degrade performance
Ronnie Barnard
@Ronmenator
understandable, problem is that the list box is not usable in its current state as clearing out the data and adding new data will cause the list box content to disappear and the only way to get it back is the user has to scroll up manually.
if a developer could have a way to call a method to invalidate, then it is up to the developer to do and not the control
Brad Sickles
@BSick7
@Ronmenator can you verify if this behavior happens when ListBox ItemsPanelTemplateis not VirtualizingStackPanel, but instead StackPanel
Ronnie Barnard
@Ronmenator
@BSick7 I changed it to virtualizing and normal stackpanel, both has the same effect
link to a test harness for these issues
on the Second tab, just start typing the first letters
Ronnie Barnard
@Ronmenator
The list below it will filter down on those that contain the character sequence you are typing. But you will see the moment you start typing, it will seem like all data disappeared, but notice the scrollbar in the right bottom.
Brad Sickles
@BSick7
Thanks
Ronnie Barnard
@Ronmenator
@BSick7 where would you suggest I start looking at fixing the scrollbar issue, would it be in Selector.ts where you intercept the Clear on the ItemsSource?
Brad Sickles
@BSick7
@Ronmenator I would recommend looking at items removed/added,
Invalidate scroll info
However if using virtualization, let the virtualizing stack panel invalidate during measure
Selector makes the most sense
Brad Sickles
@BSick7
@Ronmenator can't fix the error right now (blocked github), but i know what needs to change for that error you just reported
Ronnie Barnard
@Ronmenator
ok, no problem, found it while working through the listbox issue.
Brad Sickles
@BSick7
@Ronmenator fixed in latest
Ronnie Barnard
@Ronmenator
awesome, thank you
Ronnie Barnard
@Ronmenator
@BSick7 I have a very weird issue occuring in textbox
                           <ScrollViewer BorderThickness="0"
                                        x:Name="ScrollElement" 
                                        IsTabStop="False"
                                        Background="{x:Null}"
                                        VerticalAlignment="Stretch" 
                                        HorizontalAlignment="Stretch" 
                                        VerticalScrollBarVisibility="Auto"
                                        HorizontalScrollBarVisibility="Disabled">
                                <ScrollViewer x:Name="ContentElement" 
                                            BorderThickness="0" 
                                            IsTabStop="False"
                                            Margin="4,0,2,2" 
                                            Padding="0,0,5,0"
                                            Background="{x:Null}"
                                            HorizontalAlignment="{TemplateBinding TextAlignment}"
                                            VerticalScrollBarVisibility="Disabled"
                                            HorizontalScrollBarVisibility="Disabled" />
                            </ScrollViewer>
this is from the TextBox template in metro. I added the HorizontalAlighnment on the inner scrollviewer
to do the TextAlignment, all works perfectly
but, with that HorizontalAlignment present in the template, the cursor dissapears when at the end of the text string
if you remove it, then the Cursor shows correctly after the last character
and if you type when it is not there, the characters are inserted and the cursor comes back every so often but it's size is varying
only if it is at the end of the text
Do you know where I can look to resolve this one?
I feel that it is going to be down in Menirva in the layout updater
Brad Sickles
@BSick7
Ya definitely in minerva
There is an entire section dedicated to rendering cursor position and calculating cursor position from mouse coordinated
Ronnie Barnard
@Ronmenator
Ok, someting to go and investigate
Brad Sickles
@BSick7
Please add a git issue
Ronnie Barnard
@Ronmenator
Will do, I will see if I can fix it before I push it up to git
Serge Baltic
@hypersw

hi,
Is it possible to do MVVM with data templates, like in the original XAML?
I'm trying to reproduce this,

    <Window.Resources>
        <DataTemplate DataType="{x:Type local:ItemViewModel}">
            <TextBlock Text="{Binding DisplayName}" FontWeight="Bold" />
        </DataTemplate>
    </Window.Resources>
    <StackPanel>
        <ListBox ItemsSource="{Binding ListItems}" />
    </StackPanel>

where ListItems viewmodel prop is a list of type ItemViewModel.
With Fayde, the listbox item content presenters won't make use of the data template.

Ronnie Barnard
@Ronmenator
@hypersw Yes you can, Change Window.Resources to Page.Resources or Application.Resources, depending where you are placing this Xaml
The content of the DataTemplate changes slightly