Template namespace
Form
using FormColor = System.Drawing.Color;
using FormBrush = System.Drawing.Brush;
using FormImage = System.Drawing.Image;
using FormRectangle = System.Drawing.Rectangle;
WPF
using WPFColor = System.Windows.Media.Color;
using WPFBrush = System.Windows.Media.Brush;
using WPFImage = System.Windows.Controls.Image;
Template Xaml Cite
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"
mc:Ignorable="d"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"(Microsoft.Expression.Drawing.dll)
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:prism="http://prismlibrary.com/"
QuickStartCite:
xmlns:local="clr-namespace:WpfUseWinform"
xmlns:commands="clr-namespace:FloatToolbarWpfMini.Commands"
xmlns:views="clr-namespace:FloatToolbarWpfMini.Views"
xmlns:viewmodels="clr-namespace:FloatToolbarWpfMini.ViewModels"
xmlns:controls="clr-namespace:FloatToolbarWpfMini.Controls"
xmlns:converters="clr-namespace:FloatToolbarWpfMini.Converters"
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/generic.xaml"></ResourceDictionary>
<ResourceDictionary Source="/FloatToolbarWpfMiniResource_zh-CN;component/Themes/generic.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
3D:
xmlns:tools="clr-namespace:_3DTools;assembly=3DTools"
Prism:
xmlns:prism="http://www.codeplex.com/prism"
xmlns:prism="http://www.codeplex.com/CompositeWPF"
nuget:Get-Project -All | Install-Package Prism.UnityExtensions -Version 4.0.0
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
InvokeCommand:
<i:Interaction.Triggers>
<i:EventTrigger EventName="Delete">
<i:InvokeCommandAction Command="{Binding LocalDeleteCmd}"></i:InvokeCommandAction>
</i:EventTrigger>
</i:Interaction.Triggers>
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Platform"
xmlns:cefSharp="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
网友评论