Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 20:06
    derekantrican closed #5937
  • 20:06
    derekantrican commented #5937
  • 17:18
    rstm-sf commented #5937
  • 17:10
    kekekeks commented #5849
  • 16:58
    kekekeks commented #5291
  • 16:58
    derekantrican commented #5937
  • 15:45
    derekantrican edited #5937
  • 15:33
    derekantrican labeled #5937
  • 15:33
    derekantrican opened #5937
  • 15:20
    mat1jaczyyy assigned #4443
  • 15:08
    aguahombre commented #5291
  • 14:24
    Takoooooo labeled #5936
  • 14:24
    Takoooooo opened #5936
  • 14:19
    mat1jaczyyy assigned #5793
  • 13:47
    dnfadmin commented #5935
  • 13:44
    dnfadmin commented #5935
  • 13:44
    DmitryZhelnin opened #5935
  • 11:26
    igorstefus commented #5934
  • 11:21
    igorstefus commented #5934
  • 10:45
    grokys commented #5934
Kirant400
@kirant400
        if (VisualRoot is Window window)
        {
            window.SystemDecorations = SystemDecorations.BorderOnly;
            window.CanResize = true;
        }
Resize is not working . Testing in windows
aguahombre
@aguahombre
I would also love to have inlines so I can port my WPF application that uses hyperlink navigation via binding to the click handler of a text Run.
Steven Kirk
@grokys
inlines are being worked on, but to do it properly requires implementing a full text layout system, which is a lot of work
look at @Gillibald 's PR history on our repository to see how much work
MonkAlex
@MonkAlex
yeah, i see. So, i cant help, just wait next year =) good luck developer team
Benedikt Stebner
@Gillibald
There is a working prototype and I am confident we get something to play with this year.
Wouter Visser
@Fusion86
Does ExperimentalAcrylicBorder not work when using UseDirect2D1? It works fine if I omit that line (I assume it uses skia by default?), but when I add it the acrylic stuff doesn't work.
altiber
@altiber
Do I understand correctly that virtualization is Avalonia's weak point? For example, a TreeView at 2000 nodes decently slows down when scrolling...
habibg1232191
@habibg1232191
Hi! How create color transition
Derek Antrican
@derekantrican

This seems like a big deal. Unhandled exception at Avalonia.AppBuilderDesktopExtensions.LoadWin32 with Avalonia.Win32...contains a virus or potentially unwanted software. Seems that Avalonia.Win32 is being blocked by Windows Defender

AvaloniaUI/Avalonia#5937

felk
@felk:matrix.org
[m]
If I draw lines using context.DrawLine with lots of different colors, is there a good way to avoid excessive allocations from creating Pen instances? Right now I am caching Pen instances per color, but it feels like there should be a way to just pass in the color directly
Taylor J
@terinfire
Hey, are y'all aware that Windows Defender is flagging Avalonia DLL's as Malware?
Dan Walmsley
@danwalmsley
@terinfire are you affected? or is it just the issue you saw?
Derek Antrican
@derekantrican
@terinfire @danwalmsley See the issue I reported four messages above
Just started happening last night/this morning. Not sure if some status with Windows Defender changed or maybe there was a Windows update that started flagging more things? Not sure
Dan Walmsley
@danwalmsley
I guess we need code signing and to report false positives
@derekantrican do you get the same issue with a brand new project
i.e. dotnet new Avalonia.Mvvm?
so not loading that themes.default assembly
could be something specific to that assembly perhaps
Dan Walmsley
@danwalmsley
also 0.10.4 ?
wonder if they blocked specific versions
im hearing that its only flagging 0.10.3
and 0.10.4 is good
and 0.10.2
must be a mistake
lets see if 10.4 gets flagged in future
Dan Walmsley
@danwalmsley
ok initial assessment seems that 0.10.3 is flagged because some blob in the binary maybe matches something in defenders database.
switching to 0.10.4 will resolve this
Kirant400
@kirant400
Confirmed, upgrading to 0.10.4 resolved this issue
Derek Antrican
@derekantrican
Good to know. I'll upgrade to 0.10.4
Can't test stuff today, but I'll trust you guys :)
Kirant400
@kirant400
How to add DockPanel element programmatically ?
Dan Walmsley
@danwalmsley
adding a child to the dockpanel?
panel.Children.Add(childControl);
DockPanel.SetDock(childControl, Dock.Left)
Kirant400
@kirant400
Thank you it worked
Paulo Aboim Pinto
@aboimpinto

I'm trying to override some of the TextBox Style ... have rounded corners, default gray color for the watermark, and a few more, but when I create

<Style Selector="TextBox.SearchTextBox">
Looks like I need to have a TextPresenter with the name PART_TextPresenter...
I try to use a ContentPresenter to wrap all the rest textbox style, but he doesn't let me ... tell me that I still need a TextPresenter with name PART_TextPresenter

how can I go around this?
do I need to implement everything that is in the
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Default/TextBox.xaml
in order to make small additions to the TextBlock Style?
Kirant400
@kirant400
add classes="searchText"
and the following can be done in style
<Style Selector="TextBox.searchText">
<Setter Property="Background" Value="{DynamicResource TPBackgroundMidColor}" />
<Setter Property="InnerLeftContent">
<Template>
<Path x:Name="PART_SearchElement" Data="{StaticResource SearchIconData}" Fill="{DynamicResource TPForegroundHighColor}" Height="16" Width="16" Stretch="Uniform" Margin="10,10,0,10" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Template>
</Setter>
</Style>
<Style Selector="TextBox.searchText[AcceptsReturn=False][IsReadOnly=False]:not(TextBox:empty)">
<Setter Property="InnerRightContent">
<Template>
<Path x:Name="PART_SearchElement" Data="{StaticResource SearchIconData}" Fill="{DynamicResource TextControlForegroundFocused}" Height="16" Width="16" Stretch="Uniform" Margin="0,10,10,10" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Template>
</Setter>
<Setter Property="InnerLeftContent">
<Template></Template>
</Setter>
</Style>
<Style Selector="TextBox.searchText /template/ Border#PART_BorderElement">
<Setter Property="CornerRadius" Value="30"/>
</Style>
<Style Selector="TextBox.searchText /template/ TextBlock#PART_Watermark">
<Setter Property="Foreground" Value="{DynamicResource TPForegroundHighColor}"/>
</Style>
image.png
Paulo Aboim Pinto
@aboimpinto
dammmn!!!! I would never get there ...
at least by myself ..
thanks @kirant400
to make to work .. I had to make a small change ...
the second style with the long condition Selector, the InnerLeftContent just with <Template></Template> was returning an error ... I had to add an <Grid /> inside and it's working ..
looks like it's necessary to have an element inside ..