Skip to content

Commit b72ef14

Browse files
committed
support namespace access
1 parent 8e4e68c commit b72ef14

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

Samples/Example/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Window x:Class="Example.MainWindow"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:svg1="clr-namespace:SVGImage.SVG;assembly=DotNetProjects.SVGImage"
4+
xmlns:svg1="https://github.com/dotnetprojects/SVGImage"
55
Title="SVGImage - Sample" Height="960" Width="1080" WindowStartupLocation="CenterScreen" Background="Wheat">
66
<Window.Resources>
77
<SolidColorBrush x:Key="TabItem.Static.Background" Color="White"/>
Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
using System.Windows;
2-
3-
//In order to begin building localizable applications, set
4-
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
5-
//inside a <PropertyGroup>. For example, if you are using US english
6-
//in your source files, set the <UICulture> to en-US. Then uncomment
7-
//the NeutralResourceLanguage attribute below. Update the "en-US" in
8-
//the line below to match the UICulture setting in the project file.
9-
10-
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
11-
12-
2+
using System.Windows.Markup;
3+
4+
//In order to begin building localizable applications, set
5+
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
6+
//inside a <PropertyGroup>. For example, if you are using US english
7+
//in your source files, set the <UICulture> to en-US. Then uncomment
8+
//the NeutralResourceLanguage attribute below. Update the "en-US" in
9+
//the line below to match the UICulture setting in the project file.
10+
11+
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
12+
13+
1314
[assembly: ThemeInfo(
1415
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
1516
//(used if a resource is not found in the page,
@@ -18,3 +19,13 @@
1819
//(used if a resource is not found in the page,
1920
// app, or any theme specific resource dictionaries)
2021
)]
22+
23+
[assembly: XmlnsDefinition("https://github.com/dotnetprojects/SVGImage", "SVGImage.SVG")]
24+
[assembly: XmlnsDefinition("https://github.com/dotnetprojects/SVGImage", "SVGImage.SVG.Shapes")]
25+
[assembly: XmlnsDefinition("https://github.com/dotnetprojects/SVGImage", "DotNetProjects.SVGImage.SVG.Shapes.Filter")]
26+
[assembly: XmlnsDefinition("https://github.com/dotnetprojects/SVGImage", "SVGImage.SVG.PaintServer")]
27+
[assembly: XmlnsDefinition("https://github.com/dotnetprojects/SVGImage", "DotNetProjects.SVGImage.SVG.FileLoaders")]
28+
[assembly: XmlnsDefinition("https://github.com/dotnetprojects/SVGImage", "SVGImage.SVG")]
29+
[assembly: XmlnsDefinition("https://github.com/dotnetprojects/SVGImage", "DotNetProjects.SVGImage.SVG.Animation")]
30+
31+
[assembly: XmlnsPrefix("https://github.com/dotnetprojects/SVGImage", "svg")]

0 commit comments

Comments
 (0)