Absent_Reality
Absent_Reality
CC#
Created by SpReeD on 8/24/2024 in #help
✅ MAUI - Mutlitap Gesture
12 replies
CC#
Created by SpReeD on 8/24/2024 in #help
✅ MAUI - Mutlitap Gesture
My apologies, that wasn't much of a link
12 replies
CC#
Created by SpReeD on 8/24/2024 in #help
✅ MAUI - Mutlitap Gesture
Tbh, I do not know, am still new to programming. Someone else may have a better idea. I'm looking at something sort of similar. I'm trying to track multi finger touch position. From what I've read, skia sharp had a way to do so, but I haven't tried yet. Not sure if what you are wanting would be in there or not. https://learn.microsoft.com/en-us/samples/dotnet/maui-samples/skiasharpmaui-demos/
12 replies
CC#
Created by SpReeD on 8/24/2024 in #help
✅ MAUI - Mutlitap Gesture
Ah. I think I understand. So like you are say holding a finger on one button and tap another button with a different finger?
12 replies
CC#
Created by SpReeD on 8/24/2024 in #help
✅ MAUI - Mutlitap Gesture
Not sure if this is what you are after.
12 replies
CC#
Created by Jexs on 8/7/2024 in #help
can someone help me read and understand this
I feel you on this. Every time I look through the docs, I feel like I need a full time English tutor, dictionary and an attorney just to understand them.
35 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
No problem!
17 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
Awesome! Glad you got it! I should have thought of that as well. I know sometimes Maui has issues when adding and deleting things like images where it hiccups and tells you it can't find something. Seems to help if I hit clean solution under the build tab.
17 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
May be out of my league if that isn't it. Lol
17 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
I know I've forgot it before and the Initialize will give an error.
17 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
Do you have your namespace at the top?
17 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
Interesting. I just tried on a new project. Right click on the project name, just under the solution, then add, then new item. If that isn't adding it, idk. Hmm...
17 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
When I add a page in vs, I add it as .Net Maui ContentPage(xaml). The InitializeComponent will already be there for you.
17 replies
CC#
Created by DaClownie on 5/21/2024 in #help
New ContentPages in .net MAUI app don't have InitializeComponent() methods
I've not tried to add a page that way, but the easiest I've found so far is to add it in the xaml in app.shell like
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="MyApp.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MyApp"
Shell.FlyoutBehavior="Disabled"
Title="MyApp">

<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />

</Shell>
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="MyApp.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MyApp"
Shell.FlyoutBehavior="Disabled"
Title="MyApp">

<ShellContent
Title="Home"
ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />

</Shell>
Then if you are adding a new page then you would add the
<ShellContent Title="TermPage" ContentTemplate="{DataTemplate local:TermPage}" Route="TermPage" /> The top one you add, like mainPage for instance, will be the first one it goes to.
17 replies
CC#
Created by Absent_Reality on 3/3/2024 in #help
How to prevent drag outside of a given boundary .net Maui Android.
Note: there are a lot of extra things in that code where I was just checking what numbers it would output, but hopefully someone may find it all useful.
7 replies
CC#
Created by Absent_Reality on 3/3/2024 in #help
How to prevent drag outside of a given boundary .net Maui Android.
and the view (in my case the grid) <DropGestureRecognizer DragLeave="DragLeave" DragOver="DragOver" Drop="Drop">
7 replies
CC#
Created by Absent_Reality on 3/3/2024 in #help
How to prevent drag outside of a given boundary .net Maui Android.
think i figured it out to a point. Drag event has to have a drop listener to relay position info to. So on control is the <DragGestureRecognizer DragStarting="DragStarting" DropCompleted="DropCompleted" >
7 replies
CC#
Created by Absent_Reality on 3/3/2024 in #help
How to prevent drag outside of a given boundary .net Maui Android.
Point? point = e.GetPosition(null); does reflect the +50 value, however, since it's based on point of contact, the value can fluctuate a lot.
7 replies
CC#
Created by Absent_Reality on 3/3/2024 in #help
How to prevent drag outside of a given boundary .net Maui Android.
Nvm. On adding a tapped event and CounterBtn.TranslateTo (0, 50, 1000) the X/Y still reads the same when dragged from new position.
7 replies