Include the following in your .csproj
file to enable AOT (Ahead-of-Time compilation):
<PropertyGroup>
<PublishAot>true</PublishAot>
true
WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow this guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
// ู ุฑุญูู ุงูู | |
public class AnalogClock : Control | |
{ | |
} | |
// ู ุฑุญูู ุฏูู | |
[TemplatePart(Name = PART_HOUR, Type = typeof(Line))] | |
[TemplatePart(Name = PART_MINUTE, Type = typeof(Line))] | |
[TemplatePart(Name = PART_SECOND, Type = typeof(Line))] | |
public class AnalogClock : Control |
<Window.Resources> | |
<PathGeometry x:Key="Geometry1" Figures="M45,0 C45,-20.986821 34.926406,-38 22.499998,-38 C10.073593,-38 0,-20.986821 0,0"/> | |
<PathGeometry x:Key="Geometry2" Figures="M90,0 C90,-20.986821 79.926406,-38 67.499998,-38 C55.073593,-38 45,-20.986821 45,0"/> | |
<PathGeometry x:Key="Geometry3" Figures="M135,0 C135,-20.986821 124.92641,-38 112.5,-38 C100.07359,-38 90,-20.986821 90,0"/> | |
<PathGeometry x:Key="Geometry4" Figures="M180,0 C180,-20.986821 169.92641,-38 157.5,-38 C145.07359,-38 135,-20.986821 135,0"/> | |
<Storyboard x:Key="Storyboard1" AutoReverse="True" RepeatBehavior="Forever"> | |
<!--0--> | |
<DoubleAnimation Duration="0:0:2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="Border0" To="180"/> | |
<ColorAnimation Duration="0:0:2" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="Border0" To="#24d3fb"/> |
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Geometry x:Key="CalendarGeometry">M377.897477 116.291025l265.298718 0 0 47.459125-265.298718 0 0-47.459125ZM888.317416 116.291025 748.229288 116.291025l0 47.459125 123.54866 0c18.167626 0 32.894732 14.727106 32.894732 32.894732l0 92.92987L115.42936 289.574752l0-92.92987c0-18.167626 14.727106-32.894732 32.894732-32.894732l123.54866 0 0-47.459125L131.776437 116.291025c-35.244356 0-63.814389 28.571056-63.814389 63.815412l0.004093 713.966329c0 35.243333 28.571056 63.814389 63.814389 63.814389l756.540979 0c35.244356 0 63.814389-28.571056 63.814389-63.815412l-0.004093-713.966329C952.131805 144.861058 923.560749 116.291025 888.317416 116.291025zM904.67268 337.033877l0 540.498398c0 18.167626-14.727106 32.894732-32.894732 32.894732L148.324092 910.427007c-18.167626 0-32.894732-14.727106-32.894732-32.894732L115.42936 337.033877 904.67268 337.033877zM300.659736 64.801927l47.4 |
<i:Interaction.Triggers> | |
<i:EventTrigger EventName="Click"> | |
<ei:ChangePropertyAction PropertyName="Style" Value="{StaticResource ButtonDanger}" /> | |
</i:EventTrigger> | |
</i:Interaction.Triggers> |