These are chat archives for AvaloniaUI/Avalonia

25th
Dec 2015
Nikita Tsukanov
@kekekeks
Dec 25 2015 13:34
@grokys something got broken in demo app
See rotating rectangle
It seems that contents get culled
At least with skia
Oh, direct2d has the same issue
danwalmsley
@danwalmsley
Dec 25 2015 13:37
@kekekeks hey happy christmas!!!
im trying to load a theme from a different assembly from my main application...
I get an error thrown saying it cant find the resource... is this possible at the moment?
Nikita Tsukanov
@kekekeks
Dec 25 2015 13:38
You need to specify assembly name in your resource path
res://app/Assembly.Name/Full.Path.To.Resource
danwalmsley
@danwalmsley
Dec 25 2015 13:39
if my path has . in it will that cause a problem?
I have
Source="resource://application/AvalonStudio.TextEditor/AvalonStudio.Rendering.TextView.paml"/>
AvalonStudio.TextEditor is the assembly
Nikita Tsukanov
@kekekeks
Dec 25 2015 13:40
Weird
Mkay, I'll see into this tonight
Please, give me exception with the stack trace
danwalmsley
@danwalmsley
Dec 25 2015 13:41
ok i will make a commit, that you can repro with?
VitalElement/AvalonStudio@b32665d
Shall I create an issue?
danwalmsley
@danwalmsley
Dec 25 2015 13:49
VitalElement/AvalonStudio@9defd85
ignore the one before that
just clone it...
do git submodule update --init --recursive
then build and run
will crash with the resource problem straight away
thanks
danwalmsley
@danwalmsley
Dec 25 2015 14:06
@kekekeks dont worry I got it to work!!!
Ronald Adonyo
@afrog33k
Dec 25 2015 14:11
0h
Oops, sorry
Alexey
@flcl42
Dec 25 2015 19:02
hi, may someone have an advice for fixing such android project run error: http://puu.sh/m8joc/2daed521b5.png
Nikita Tsukanov
@kekekeks
Dec 25 2015 19:03
You need to run getnatives.ps1
in src/Perspex.Skia
Or it won't build
Alexey
@flcl42
Dec 25 2015 20:10
nice it works! i also had to add library_name string in Strings resources to be able to run Perspex.AndroidTestApplication
Darnell Williams
@Seeker1437
Dec 25 2015 21:51
Merry Christmas
danwalmsley
@danwalmsley
Dec 25 2015 23:13
Im wondering is it possible to Bind an ObservableCollection of Controls to a StackPanel?
Johan Larsson
@JohanLarsson
Dec 25 2015 23:14
in wpf you bind it to an itemscontrol and use a stackpanel as itemspanel
danwalmsley
@danwalmsley
Dec 25 2015 23:14
how would tou use a StackPanel as an ItemsPanel?
you mean use an ItemsPanel as StackPanel/
?
hmm trying to see if that exists in Perspex?
Johan Larsson
@JohanLarsson
Dec 25 2015 23:16
<itemscontrol>
    <itemscontrol.itemspanel>
        <itemspaneltemplate>
            <stackpanel>
...
it is the default
^ pseudo wpf
danwalmsley
@danwalmsley
Dec 25 2015 23:16
:D
thanks
will just quickly try it now...
<ItemsControl Children="{TemplateBinding Margins}" Orientation="Horizontal" Cursor="Arrow">
              <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                  <StackPanel />
                </ItemsPanelTemplate>
              </ItemsControl.ItemsPanel>
            </ItemsControl>
does that look about right?
Johan Larsson
@JohanLarsson
Dec 25 2015 23:19
yeah, for wpf
I have not tried perspex yet
danwalmsley
@danwalmsley
Dec 25 2015 23:19
ok
Johan Larsson
@JohanLarsson
Dec 25 2015 23:19
stackpanel is most likely the default btw
danwalmsley
@danwalmsley
Dec 25 2015 23:19
ok
Johan Larsson
@JohanLarsson
Dec 25 2015 23:20
so should be no need to specify it explicitly
danwalmsley
@danwalmsley
Dec 25 2015 23:20
woahh it only bloody works!!!
awesome...
Johan Larsson
@JohanLarsson
Dec 25 2015 23:20
try removing the itemspanel stuff now
danwalmsley
@danwalmsley
Dec 25 2015 23:21
well i'll need to set orientaiton to Horizontal,, I think Vertical is default?
Johan Larsson
@JohanLarsson
Dec 25 2015 23:21
ok, then you probably need it
danwalmsley
@danwalmsley
Dec 25 2015 23:21
will check in a second to see if it still works..
@JohanLarsson I got some wierd measure override errors when I took out the ItemsPanel stuff.. but thats probably my controls misbehaving.. so I think it would have worked otherwise..
just incase anyone need it...
<ItemsControl Items="{TemplateBinding Margins}" Cursor="Arrow">
              <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                  <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
              </ItemsControl.ItemsPanel>
            </ItemsControl>
danwalmsley
@danwalmsley
Dec 25 2015 23:26
was what worked for me
Johan Larsson
@JohanLarsson
Dec 25 2015 23:26
good
danwalmsley
@danwalmsley
Dec 25 2015 23:26
@JohanLarsson many thanks for the help with that... probably saved me a few hours there! :D
Johan Larsson
@JohanLarsson
Dec 25 2015 23:27
np