These are chat archives for AvaloniaUI/Avalonia

16th
Dec 2017
Jeremy Koritzinsky
@jkoritzinsky
Dec 16 2017 01:44
Yep. Getting build errors in MinShell
AlessandroMiorelli
@AlessandroMiorelli
Dec 16 2017 09:17
Hi, I would to start with Avalonia. Where can I find some examples?
Matthijs ter Woord
@mterwoord
Dec 16 2017 09:31
so... LberationSans without regular doesn't work either.. :(
Matthijs ter Woord
@mterwoord
Dec 16 2017 10:12
@AlessandroMiorelli there's an ok sample project
Awesome. got my app rendering OK on my yoct-based linux image!
now figure out how to change the default font used..
@kekekeks Thanks for pushing me in right direction on this! the font name is Liberation Sans
danwalmsley
@danwalmsley
Dec 16 2017 10:27
@jkoritzinsky dont build entire solution
danwalmsley
@danwalmsley
Dec 16 2017 11:02
Let me know when your back il help you get to the repro
Matthijs ter Woord
@mterwoord
Dec 16 2017 12:41
is there an issue with databinding in current master?
danwalmsley
@danwalmsley
Dec 16 2017 13:36
@grokys @kekekeks @jkoritzinsky I think #522 might be a misunderstanding on my part
is it that
public class EditorView : UserControl
    {
        public EditorView()
        {
            InitializeComponent();

            DataContextProperty.Changed.Subscribe((o) =>
            {
                Console.WriteLine(o.GetType().FullName);
            });
that should be called everytime any DataContextProperty in the entire application is changed
not just the DataContextProperty of the EditorView instance?
if that's the case then this issue can just be closed
Matthijs ter Woord
@mterwoord
Dec 16 2017 13:37
i would say so. DataContextProperty is static. doesn't know anything about the instance
danwalmsley
@danwalmsley
Dec 16 2017 13:38
its been open a long time that issue
public class EditorView : UserControl
    {
        public EditorView()
        {
            InitializeComponent();

            DataContextProperty.Changed.Subscribe((o) =>
            {
                Console.WriteLine($"Global: {o.GetType().FullName}");
            });

            this.ObservableForProperty(e => e.DataContext).Subscribe(o =>
            {
                Console.WriteLine($"Local: {o.GetType().FullName}");
            });
is the second one the correct way?
Matthijs ter Woord
@mterwoord
Dec 16 2017 13:40
that i'm not sure. i would think so...
danwalmsley
@danwalmsley
Dec 16 2017 13:51
@/all iv opened #1324 to create a discussion on some youtube tutorials for avalonia id like to create over xmas / early January, probably walkthroughs on youtube or something similar, would be good to get your thoughts on ideas , like details that should be included and ideas on how to showcase avalonia features
danwalmsley
@danwalmsley
Dec 16 2017 14:04
@kekekeks I bet #1183 and #1142 were resolved with the PR that reduced the number of layers where opacity <1
so I bet that issue might show up again where opacity < 1 and animation is involved
Matthijs ter Woord
@mterwoord
Dec 16 2017 14:10
@danwalmsley Creating more docs is a good thing imo, but personally i'd prefer written over youtube big time (for multiple reasons)
danwalmsley
@danwalmsley
Dec 16 2017 14:12
@mterwoord I'm personally not going to have the time to do that, its quite quick for me to make a demo app, then record a walkthrough and explain stuff as I go
and also post the example code to a repro
if I had enough time id definitely do it
Matthijs ter Woord
@mterwoord
Dec 16 2017 14:13
ok, jsut saying.. :)
i do agree that writing things up can take more time
danwalmsley
@danwalmsley
Dec 16 2017 14:13
it might be that once Iv recorded these someone or maybe in future I could turn them into a written form
danwalmsley
@danwalmsley
Dec 16 2017 14:42
@kekekeks
_transport.Send(new ClientViewportAllocatedMessage
            {
                DpiX = 96,
                DpiY = 96,
                Width = 1,
                Height = 1
            }).Wait();
can I send this message to override dpi and the size that the previewer renders to?
danwalmsley
@danwalmsley
Dec 16 2017 15:09
@kekekeks kekekeks/Avalonia.Ide#2