Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:39
    workgroupengineering commented #7044
  • 09:30
    ALIENQuake closed #6777
  • 09:07
    maxkatz6 commented #7069
  • 09:07
    maxkatz6 commented #7069
  • 09:07
    maxkatz6 closed #7069
  • 08:05
    mrmandrake commented #7069
  • 07:06
    josephnarai commented #5939
  • 06:57
    kekekeks commented #5939
  • 02:26
    josephnarai commented #5939
  • 02:15
    beto-rodriguez commented #5939
  • 02:14
    beto-rodriguez commented #5939
  • 02:04
    beto-rodriguez commented #5939
  • 00:59
    josephnarai commented #5939
  • Dec 03 21:53

    grokys on ui-automation-textprovider

    Added a way to get character/li… Added ITextProvider.GetCaretRan… (compare)

  • Dec 03 17:30
    workgroupengineering reopened #6103
  • Dec 03 17:30
    workgroupengineering closed #6103
  • Dec 03 16:39

    grokys on ui-automation-textprovider

    Fix leak in GetNSStringAndRelea… Merge branch 'feature/ui-automa… (compare)

  • Dec 03 16:26
    workgroupengineering commented #7069
  • Dec 03 16:18
    michalwitek1232 opened #7069
  • Dec 03 16:18
    michalwitek1232 labeled #7069
Paulo Aboim Pinto
@aboimpinto
check for Microsoft information .. that is standard for XAML
Devedse
@devedse
ok
If you're inside a binding, the next thing you refer to is a subproperty of that parent item
e.g. if you bind to Environments
You can use binding again to bind of a property of the Environment class
How can I bind to another object on the viewmodel instead?
I saw $parent
is that the thing you want?
Paulo Aboim Pinto
@aboimpinto
yes .. you can look for it ..
you can do that!
to make the code simpler .. I would suggest you not do that
and put some code in the ViewModel that represent the Row ..
or the item ..
Paulo Aboim Pinto
@aboimpinto
well . good luck .. it's time for bed!!
Devedse
@devedse
Ok :)
I'm still not exactly sure how to get the things done I want
1 thing for example, for some reason in my example the stackpanel lists the items vertically
even though it's set to horizontal
Paulo Aboim Pinto
@aboimpinto
the trick here is the load of the data from the txt file
into the structure that is in the screen
and not make the screen structure mimic the file strucuture
Devedse
@devedse
Ok fixed it
Had to add this:
<ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
Paulo Aboim Pinto
@aboimpinto
nice ... good night .. ;)
Devedse
@devedse
Because apparently Stackpanel Orientatied="Horizontal"
does nothing
Paulo Aboim Pinto
@aboimpinto
the default of the StackPanel is Horizonal
but the default of the ItemsPanelTemplate is Vertical
to make the ItemsControl vertical .. you need to add the ItemsPanelTemplate
a Horizontal template container
Devedse
@devedse
Incase someone else knows the answers to this one:
image.png
It's now trying to bind to the property Streams under Environments, but I want to bind to Streams on the root level
jp2masa
@jp2masa
you can for example give a name to the root (x:Name="root") and then {Binding #root.DataContext.Streams}
Jasonvb
@Jasonvb
@danwalmsley I need some information about the Screens. When I try to add the monomac nuget package, I will get a build error: " [CS0012] The type 'IScreenImpl' is defined in an assembly that is not referenced. You must add a reference to assembly 'Avalonia.Controls, Version=0.6.0.0, Culture=neutral, PublicKeyToken=null'." (I am using Avalonia 0.10 nuget packages).
Are these screen features available in the interop layer? And where can I find them? :)
Dan Walmsley
@danwalmsley
@Jasonvb do not use monomac.. its not supported since 0.6! we are on 0.10 now!
screens api is fully supported on osx..
you dont need to reference anything but Avalonia.Desktop in your main application
that pulls in Avalonia.Native (which contains our osx interop)
but the api you use is fully cross platform
maybe your trying to upgrade a very old project?
Mike Ward
@mike-ward
@aboimpinto The docs say the default for StackPanel is Vertical.
Devedse
@devedse
@jp2masa , where do I need to set the x:Name on?
This does not work:
    <Grid x:Name="root">
        <TextBlock Text="{Binding Test}"></TextBlock>
        <ItemsControl Items="{Binding Environments}" Margin="20 20 0 0">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
                <DataTemplate>

                    <StackPanel Margin="10">
                        <TextBlock Text="{Binding}" Width="100" Height="100" Background="LightBlue" />

                        <!-- Just a test -->
                        <StackPanel Orientation="Vertical" Margin="10 10 10 0">
                            <TextBlock Text="{Binding #root.Test}" Width="100" Height="150" Background="LightGreen" />
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Grid>
I'm trying to have the last TextBlock bind to the property named Test
jp2masa
@jp2masa
did you try #root.DataContext.Test?
Rubal Walia
@waliarubal
/@all Is their a way I can trigger context menu on button click?
/@all I want to open a drop down menu on button click. Any ideas?
Tim
@timunie
Hi @waliarubal I think Button.Flyout opens on left click