Skip to content

Instantly share code, notes, and snippets.

View Mrxx99's full-sized avatar

Mrxx99

  • Germany
View GitHub Profile
@Mrxx99
Mrxx99 / ScrollableTabs
Created November 21, 2022 20:28
Avalonia srollable TabControl with TabStripPlacement="Left"
<TabControl TabStripPlacement="Left" Height="200">
<TabControl.Template>
<ControlTemplate TargetType="TabControl">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<ScrollViewer
HorizontalScrollBarVisibility="Disabled"
@Mrxx99
Mrxx99 / ExampleTest.cs
Last active December 9, 2020 18:44 — forked from Jacob-McKay/ExampleTest.cs
Moq extension to cleanly make assertions about arguments passed to mock dependencies
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Moq;
using Xunit;
namespace UnitTests
{
public bool CheckFolderPermission(string folderPath)
{
DirectoryInfo dirInfo = new DirectoryInfo(folderPath);
try
{
DirectorySecurity dirAC = dirInfo.GetAccessControl(AccessControlSections.All);
return true;
}
catch (UnauthorizedAccessException)
{