Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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)

  • Mar 15 2017 12:35

    BSick7 on master

    Safely syncing Border values. (… (compare)

  • Mar 15 2017 12:35
    BSick7 closed #271
  • Mar 15 2017 12:32
    BSick7 edited #271
  • Mar 15 2017 12:32
    BSick7 opened #271
  • Mar 15 2017 12:32

    BSick7 on border-clearvalue

    Safely syncing Border values. (compare)

  • Mar 15 2017 12:31

    BSick7 on border-clearvalue

    Safely coercing Border values. (compare)

  • Nov 15 2016 19:30

    BSick7 on master

    Exception when lastIndexOf anim… (compare)

  • Nov 15 2016 19:30
    BSick7 closed #270
  • Nov 15 2016 19:30
    BSick7 commented #270
  • Nov 14 2016 14:21
    dp901 synchronize #270
  • Nov 11 2016 12:34
    dp901 opened #270
  • Oct 21 2016 07:49
    dp901 opened #269
  • Sep 30 2016 13:32
    BSick7 commented #268
  • Sep 30 2016 13:02
    dp901 commented #268
  • Sep 30 2016 12:58
    dp901 commented #268
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
    <DataTemplate DataType="vm:LoginViewModel">
        <ContentControl ContentUri="Views/login.fayde" />
    </DataTemplate>
This is if you want to bind your ViewModel to a fayde view
Otherwise the way you have it above will work
Serge Baltic
@hypersw

Thanks, good to know this is possible indeed. I've been already trying it these ways:

  <Application.Resources>
    <DataTemplate DataType="{x:Type vms:ListItemAutomation}">
      <TextBlock Text="{Binding Text}" FontWeight="Bold" />
    </DataTemplate>
    <DataTemplate DataType="vms:ListItemAutomation">
      <TextBlock Text="{Binding Text}" FontWeight="Bold" />
    </DataTemplate>
  </Application.Resources>

(one by one and both together;) — to no good. The type name is a bit different in web version, copypasted it from the .ts class to be sure.
The same template works if planted as ItemTemplate into the list itself.
Is ContentUri significant here?
How do I go about debugging it?

Serge Baltic
@hypersw
If you do not see any obvious flaws, don't waste time yet; I'll make a minimal repro tomorrow, and that would make things more illustrative. Not too polite of me asking without the full sample, sorry. Just wanted to make sure first hand that what I'm trying to do is in the design at all.
Serge Baltic
@hypersw
@Ronmenator : tried it hypersw/Fayde@a2921a2
Manual template works, wiring by data type does not.
Serge Baltic
@hypersw
And what's the browser compat? MSHTML/IE runs Fayde samples OK, but trying to load some non-trivial stuff in WebKit crashes with Uncaught TypeError: Not enough arguments draw.ts:15
Serge Baltic
@hypersw
Folks, could you give me any advice on why data templates won't apply by data type?
I'm pretty much blocked in further trying the lib because I've been using type-based template binding in all complex scenarios in the recent years.
I've made a repro within the /testsite infrastructure by adding the relevant files to the forked repo
Brad Sickles
@BSick7
Can you send a PR from your fork with the repro?
Serge Baltic
@hypersw
Of course. Didn't do that because I weren't sure if my code is wrong, or the stuff isn't working as expected. In a moment.
wsick/Fayde#254
Brad Sickles
@BSick7
thanks @hypersw, open source is all about contributing, if something isn't right, i'll help adjust
Serge Baltic
@hypersw
14A contribution would have been if I've fixed that ;) I'm way too much off the HTML5 / TS world (yet).
Brad Sickles
@BSick7
providing good visual or automated tests is super valuable
Serge Baltic
@hypersw
14Besides the web part, one my big interest is trying how a cross-platform UI for C# code running on .net core / mono / real .net would work.
14Doing DHTML UI is kind of a trend now. But dealing with browser engine peculiarities and layouting engine quirks has been quite a burden for those who'd go into that.
14IMHO the most valuable part here could be not that it leverages XAML (which is also not bad though) but that it carries the layouting engine around in TS rather than calling into HTML, so it should be as good as ever on any HTML engine. And the layouting primitives are more closely mapped on what you'd want in the desktop or tablet style UI as compared to, say, a flexbox.
Serge Baltic
@hypersw
14Did you have any sketches maybe on how this could be backended in C#? This ranges widely from running in-process and making .NET objects directly available to the DHTML runtime via some interop (would say ActiveX if it were five-ten-fifteen years ago) to running a RESTlike HTTP inproc server and communicating over HTTP, and hence from almost reusing the old WPF viewmodels to writing smth specific and web-server-like. Just totally not sure which would come out the best.
Brad Sickles
@BSick7
you're lockstep with the vision @hypersw, the language means nothing
fayde is all about a simple, extensible, and robust layout and rendering system
Blacksun
@angelcalvasp
Hello everyone :D, I am currently working on 2 controls Calendar control (almost finished), and DataForm (just started today), I do need help with both to be able to finish em so if anyone wants to help out awesome sauce
Blacksun
@angelcalvasp
Anybody know of a method to get an IEnumerables T type?