-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Win2d Path Mini Language Parser added. #3430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2c0228e
Win2d Path Mini Language Parser added.
ratishphilip c317b20
Merge branch 'master' into master
ratishphilip 0b283e8
Fixed PR issues. Updated the headers and rolled back updated Newtonso…
ratishphilip 7981f63
Removed blank line after opening brace.
ratishphilip ac3c540
Merge branch 'master' into master
ratishphilip 4332411
Merge branch 'master' into master
ratishphilip af835e8
Merge branch 'master' into master
ratishphilip bdadb55
Merge branch 'master' into master
ratishphilip 1df4662
Merge branch 'master' into master
ratishphilip 7c28b31
Fixed merge conflicts
ratishphilip 25135de
Merge branch 'master' of https://github.com/ratishphilip/WindowsCommu…
ratishphilip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+4.54 KB
...oft.Toolkit.Uwp.SampleApp/SamplePages/CanvasPathGeometry/CanvasPathGeometry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
119 changes: 119 additions & 0 deletions
119
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/CanvasPathGeometry/CanvasPathGeometryPage.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,119 @@ | ||
| <Page x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.CanvasPathGeometryPage" | ||
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
| xmlns:xaml="using:Microsoft.Graphics.Canvas.UI.Xaml" | ||
| mc:Ignorable="d"> | ||
|
|
||
| <Grid Padding="10"> | ||
| <Grid.RowDefinitions> | ||
| <RowDefinition Height="0.1*" /> | ||
| <RowDefinition Height="48" /> | ||
| <RowDefinition Height="0.9*" /> | ||
| </Grid.RowDefinitions> | ||
| <TextBox x:Name="InputData" | ||
| Margin="10,3" | ||
| FontFamily="Courier New" | ||
| FontSize="14" | ||
| PlaceholderText="Enter SVG/XAML Path Data and press Parse. (Or select a sample from the Samples list below)" | ||
| ScrollViewer.VerticalScrollBarVisibility="Auto" | ||
| SelectionHighlightColor="#007aff" | ||
| Text="{x:Bind InputText, Mode=TwoWay}" | ||
| TextWrapping="Wrap" /> | ||
| <StackPanel Grid.Row="1" | ||
| HorizontalAlignment="Left" | ||
| Orientation="Horizontal"> | ||
| <TextBlock Margin="12,3" | ||
| VerticalAlignment="Center" | ||
| Text="Samples: " /> | ||
| <ComboBox x:Name="SampleList" | ||
| Width="150" | ||
| Height="30" | ||
| Margin="0,4,10,4" | ||
| VerticalAlignment="Center" | ||
| SelectionChanged="{x:Bind OnSampleChanged}" /> | ||
| </StackPanel> | ||
| <Button Grid.Row="1" | ||
| Width="120" | ||
| Height="36" | ||
| Margin="10,3" | ||
| HorizontalAlignment="Center" | ||
| Click="{x:Bind OnClearCanvas}" | ||
| Content="Clear" /> | ||
| <Button Grid.Row="1" | ||
| Width="120" | ||
| Height="36" | ||
| Margin="10,3" | ||
| HorizontalAlignment="Right" | ||
| Click="{x:Bind OnParseData}" | ||
| Content="Parse" /> | ||
| <Pivot x:Name="RootPivot" | ||
| Grid.Row="2"> | ||
| <PivotItem Foreground="Black" | ||
| Header="Canvas"> | ||
| <ScrollViewer x:Name="RenderScroll" | ||
| HorizontalScrollBarVisibility="Auto" | ||
| VerticalScrollBarVisibility="Auto"> | ||
| <xaml:CanvasControl x:Name="RenderCanvas" | ||
| Width="{Binding ElementName=RenderScroll, Path=ActualWidth}" | ||
| Height="{Binding ElementName=RenderScroll, Path=ActualHeight}" | ||
| MinWidth="1200" | ||
| MinHeight="800" | ||
| HorizontalAlignment="Stretch" | ||
| VerticalAlignment="Stretch" | ||
| HorizontalContentAlignment="Stretch" | ||
| VerticalContentAlignment="Stretch" | ||
| ClearColor="#A7A7A7" | ||
| Draw="{x:Bind OnCanvasDraw}" /> | ||
| </ScrollViewer> | ||
| </PivotItem> | ||
| <PivotItem Foreground="Black" | ||
| Header="Commands"> | ||
| <ScrollViewer Background="#272727" | ||
| HorizontalScrollBarVisibility="Disabled" | ||
| VerticalScrollBarVisibility="Auto"> | ||
| <TextBlock x:Name="CommandsList" | ||
| Padding="10" | ||
| FontFamily="Courier New" | ||
| FontSize="16" | ||
| Foreground="White" | ||
| IsTextSelectionEnabled="True" | ||
| SelectionHighlightColor="#007aff" | ||
| TextWrapping="Wrap" /> | ||
| </ScrollViewer> | ||
| </PivotItem> | ||
| </Pivot> | ||
| <StackPanel Grid.Row="2" | ||
| HorizontalAlignment="Right" | ||
| VerticalAlignment="Top" | ||
| Orientation="Horizontal"> | ||
| <TextBlock Margin="10,10,5,-10" | ||
| Text="StrokeThickness" /> | ||
| <Slider x:Name="StrokeThickness" | ||
| Width="150" | ||
| Height="30" | ||
| Margin="0,4,10,4" | ||
| Background="White" | ||
| Foreground="White" | ||
| Maximum="10" | ||
| Minimum="0" | ||
| StepFrequency="0.1" | ||
| ValueChanged="{x:Bind OnStrokeThicknessChanged}" /> | ||
| <TextBlock Margin="10,10,5,-10" | ||
| Text="Stroke Color: " /> | ||
| <ComboBox x:Name="StrokeList" | ||
| Width="150" | ||
| Height="30" | ||
| Margin="0,4,10,4" | ||
| SelectionChanged="{x:Bind OnStrokeColorChanged}" /> | ||
| <TextBlock Margin="10,10,5,-10" | ||
| Text="Fill Color: " /> | ||
| <ComboBox x:Name="FillList" | ||
| Width="150" | ||
| Height="30" | ||
| Margin="0,4,10,4" | ||
| SelectionChanged="{x:Bind OnFillColorChanged}" /> | ||
| </StackPanel> | ||
| </Grid> | ||
| </Page> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.