diff --git a/docs/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf.md b/docs/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf.md index 5338ee0867a32..433879d9e314c 100644 --- a/docs/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf.md +++ b/docs/framework/wpf/advanced/walkthrough-hosting-a-windows-forms-control-in-wpf.md @@ -15,7 +15,7 @@ ms.assetid: 9cb88415-39b0-4c46-80c4-ff325b674286 This walkthrough shows you how to host a Windows Forms control on a [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] page by using code. -For a complete code listing of the tasks shown in this walkthrough, see [Hosting a Windows Forms Control in WPF Sample](https://go.microsoft.com/fwlink/?LinkID=160057). +For a complete code listing of the tasks shown in this walkthrough, see [Hosting a Windows Forms Control in WPF Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/HostingWfInWPF). ## Prerequisites @@ -66,4 +66,4 @@ You need Visual Studio to complete this walkthrough. - [Walkthrough: Hosting a Windows Forms Composite Control in WPF](walkthrough-hosting-a-windows-forms-composite-control-in-wpf.md) - [Walkthrough: Hosting a WPF Composite Control in Windows Forms](walkthrough-hosting-a-wpf-composite-control-in-windows-forms.md) - [Windows Forms Controls and Equivalent WPF Controls](windows-forms-controls-and-equivalent-wpf-controls.md) -- [Hosting a Windows Forms Control in WPF Sample](https://go.microsoft.com/fwlink/?LinkID=160057) +- [Hosting a Windows Forms Control in WPF Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/HostingWfInWPF) diff --git a/docs/framework/wpf/advanced/walkthrough-hosting-a-wpf-clock-in-win32.md b/docs/framework/wpf/advanced/walkthrough-hosting-a-wpf-clock-in-win32.md index fbcdea9ca16b0..750d2297667bf 100644 --- a/docs/framework/wpf/advanced/walkthrough-hosting-a-wpf-clock-in-win32.md +++ b/docs/framework/wpf/advanced/walkthrough-hosting-a-wpf-clock-in-win32.md @@ -18,7 +18,7 @@ See [WPF and Win32 Interoperation](wpf-and-win32-interoperation.md). ## How to Use This Tutorial -This tutorial concentrates on the important steps of producing an interoperation application. The tutorial is backed by a sample, [Win32 Clock Interoperation Sample](https://go.microsoft.com/fwlink/?LinkID=160051), but that sample is reflective of the end product. This tutorial documents the steps as if you were starting with an existing Win32 project of your own, perhaps a pre-existing project, and you were adding a hosted [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] to your application. You can compare your end product with [Win32 Clock Interoperation Sample](https://go.microsoft.com/fwlink/?LinkID=160051). +This tutorial concentrates on the important steps of producing an interoperation application. The tutorial is backed by a sample, [Win32 Clock Interoperation Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/Win32Clock), but that sample is reflective of the end product. This tutorial documents the steps as if you were starting with an existing Win32 project of your own, perhaps a pre-existing project, and you were adding a hosted [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] to your application. You can compare your end product with [Win32 Clock Interoperation Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/Win32Clock). ## A Walkthrough of Windows Presentation Framework Inside Win32 (HwndSource) @@ -226,10 +226,10 @@ The final result looks like: ![Final result Date and Time Properties dialog box](./media/walkthrough-hosting-a-wpf-clock-in-win32/final-result-date-time-properties-dialog.png) -To compare your end result to the code that produced this screenshot, see [Win32 Clock Interoperation Sample](https://go.microsoft.com/fwlink/?LinkID=160051). +To compare your end result to the code that produced this screenshot, see [Win32 Clock Interoperation Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/Win32Clock). ## See also - - [WPF and Win32 Interoperation](wpf-and-win32-interoperation.md) -- [Win32 Clock Interoperation Sample](https://go.microsoft.com/fwlink/?LinkID=160051) +- [Win32 Clock Interoperation Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/Win32Clock) diff --git a/docs/framework/wpf/advanced/walkthrough-hosting-wpf-content-in-win32.md b/docs/framework/wpf/advanced/walkthrough-hosting-wpf-content-in-win32.md index e4a195889f0f4..a111010df8de2 100644 --- a/docs/framework/wpf/advanced/walkthrough-hosting-wpf-content-in-win32.md +++ b/docs/framework/wpf/advanced/walkthrough-hosting-wpf-content-in-win32.md @@ -11,7 +11,7 @@ ms.assetid: 38ce284a-4303-46dd-b699-c9365b22a7dc # Walkthrough: Hosting WPF Content in Win32 [!INCLUDE[TLA#tla_winclient](../../../../includes/tlasharptla-winclient-md.md)] provides a rich environment for creating applications. However, when you have a substantial investment in Win32 code, it might be more effective to add [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] functionality to your application rather than rewriting your original code. [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] provides a straightforward mechanism for hosting [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] content in a Win32 window. - This tutorial describes how to write a sample application, [Hosting WPF Content in a Win32 Window Sample](https://go.microsoft.com/fwlink/?LinkID=160004), that hosts [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] content in a Win32 window. You can extend this sample to host any Win32 window. Because it involves mixing managed and unmanaged code, the application is written in C++/CLI. + This tutorial describes how to write a sample application, [Hosting WPF Content in a Win32 Window Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/Win32HostingWPFPage), that hosts [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] content in a Win32 window. You can extend this sample to host any Win32 window. Because it involves mixing managed and unmanaged code, the application is written in C++/CLI. ## Requirements @@ -20,7 +20,7 @@ ms.assetid: 38ce284a-4303-46dd-b699-c9365b22a7dc Because the sample that accompanies this tutorial is implemented in C++/CLI, this tutorial assumes familiarity with the use of C++ to program the Windows API plus an understanding of managed code programming. Familiarity with C++/CLI is helpful but not essential. > [!NOTE] -> This tutorial includes a number of code examples from the associated sample. However, for readability, it does not include the complete sample code. For the complete sample code, see [Hosting WPF Content in a Win32 Window Sample](https://go.microsoft.com/fwlink/?LinkID=160004). +> This tutorial includes a number of code examples from the associated sample. However, for readability, it does not include the complete sample code. For the complete sample code, see [Hosting WPF Content in a Win32 Window Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Migration%20and%20Interoperability/Win32HostingWPFPage). ## The Basic Procedure diff --git a/docs/framework/wpf/advanced/wpf-globalization-and-localization-overview.md b/docs/framework/wpf/advanced/wpf-globalization-and-localization-overview.md index 973de73d4cbef..7cf25220a2b39 100644 --- a/docs/framework/wpf/advanced/wpf-globalization-and-localization-overview.md +++ b/docs/framework/wpf/advanced/wpf-globalization-and-localization-overview.md @@ -12,7 +12,7 @@ When you limit your product's availability to only one language, you limit your This overview introduces globalization and localization in [!INCLUDE[TLA#tla_winclient](../../../../includes/tlasharptla-winclient-md.md)]. Globalization is the design and development of applications that perform in multiple locations. For example, globalization supports localized user interfaces and regional data for users in different cultures. [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)] provides globalized design features, including automatic layout, satellite assemblies, and localized attributes and commenting. -Localization is the translation of application resources into localized versions for the specific cultures that the application supports. When you localize in [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)], you use the APIs in the namespace. These APIs power the [LocBaml Tool Sample](https://go.microsoft.com/fwlink/?LinkID=160016) command-line tool. For information about how to build and use LocBaml, see [Localize an Application](how-to-localize-an-application.md). +Localization is the translation of application resources into localized versions for the specific cultures that the application supports. When you localize in [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptla-winclient-md.md)], you use the APIs in the namespace. These APIs power the [LocBaml Tool Sample](https://github.com/microsoft/WPF-Samples/tree/master/Tools/LocBaml) command-line tool. For information about how to build and use LocBaml, see [Localize an Application](how-to-localize-an-application.md). ## Best Practices for Globalization and Localization in WPF @@ -42,7 +42,7 @@ When you design a [!INCLUDE[TLA2#tla_winclient](../../../../includes/tla2sharptl - When you create navigation applications that may be localized in a culture that presents text in a right-to-left format, explicitly set the of every page to ensure the page does not inherit from the . -- When you create stand-alone navigation applications that are hosted outside a browser, set the for your initial application to a instead of to a page (for example, ``). This design enables you to change the of the Window and the navigation bar. For more information and an example, see [Globalization Homepage Sample](https://go.microsoft.com/fwlink/?LinkID=159990). +- When you create stand-alone navigation applications that are hosted outside a browser, set the for your initial application to a instead of to a page (for example, ``). This design enables you to change the of the Window and the navigation bar. For more information and an example, see [Globalization Homepage Sample](https://github.com/microsoft/WPF-Samples/tree/master/Globalization%20and%20Localization/GlobalizationHomepage). ### Best Practices for WPF Localization @@ -166,7 +166,7 @@ The `RunIcon.JPG` does not need to be localized because it should appear the sam **Parse** -After building the application, the first step in localizing it is parsing the localizable resources out of the satellite assembly. For the purposes of this topic, use the sample LocBaml tool which can be found at [LocBaml Tool Sample](https://go.microsoft.com/fwlink/?LinkID=160016). Note that LocBaml is only a sample tool meant to help you get started in building a localization tool that fits into your localization process. Using LocBaml, run the following to parse: **LocBaml /parse RunDialog.resources.dll /out:** to generate a "RunDialog.resources.dll.CSV" file. +After building the application, the first step in localizing it is parsing the localizable resources out of the satellite assembly. For the purposes of this topic, use the sample LocBaml tool which can be found at [LocBaml Tool Sample](https://github.com/microsoft/WPF-Samples/tree/master/Tools/LocBaml). Note that LocBaml is only a sample tool meant to help you get started in building a localization tool that fits into your localization process. Using LocBaml, run the following to parse: **LocBaml /parse RunDialog.resources.dll /out:** to generate a "RunDialog.resources.dll.CSV" file. **Localize** @@ -217,7 +217,7 @@ then the en-US\MyDialog.resources.dll will be used with German Windows if a de-D ### Microsoft Saudi Arabia Homepage -The following graphics show an English and Arabic Homepage. For the complete sample that produces these graphics see [Globalization Homepage Sample](https://go.microsoft.com/fwlink/?LinkID=159990). +The following graphics show an English and Arabic Homepage. For the complete sample that produces these graphics see [Globalization Homepage Sample](https://github.com/microsoft/WPF-Samples/tree/master/Globalization%20and%20Localization/GlobalizationHomepage). **English:** @@ -299,4 +299,4 @@ For more information on composite fonts see ## XAML and CLR diff --git a/docs/framework/wpf/app-development/application-management-overview.md b/docs/framework/wpf/app-development/application-management-overview.md index 8935a77fc0f6a..19f9621ecd0ea 100644 --- a/docs/framework/wpf/app-development/application-management-overview.md +++ b/docs/framework/wpf/app-development/application-management-overview.md @@ -109,7 +109,7 @@ The resulting code augments your application definition with additional infrastr ## Getting the Current Application -Because the functionality of the class are shared across an application, there can be only one instance of the class per . To enforce this, the class is implemented as a singleton class (see [Implementing Singleton in C#](https://go.microsoft.com/fwlink/?LinkId=100567)), which creates a single instance of itself and provides shared access to it with the `static` property. +Because the functionality of the class are shared across an application, there can be only one instance of the class per . To enforce this, the class is implemented as a singleton class (see [Implementing Singleton in C#](https://docs.microsoft.com/previous-versions/msp-n-p/ff650316(v=pandp.10))), which creates a single instance of itself and provides shared access to it with the `static` property. The following code shows how to acquire a reference to the object for the current . diff --git a/docs/framework/wpf/app-development/dialog-boxes-overview.md b/docs/framework/wpf/app-development/dialog-boxes-overview.md index 49c6e696a6f9c..b8aaed6130098 100644 --- a/docs/framework/wpf/app-development/dialog-boxes-overview.md +++ b/docs/framework/wpf/app-development/dialog-boxes-overview.md @@ -26,7 +26,7 @@ Standalone applications typically have a main window that both displays the main A *modeless* dialog box, on the other hand, does not prevent a user from activating other windows while it is open. For example, if a user wants to find occurrences of a particular word in a document, a main window will often open a dialog box to ask a user what word they are looking for. Since finding a word doesn't prevent a user from editing the document, however, the dialog box doesn't need to be modal. A modeless dialog box at least provides a **Close** button to close the dialog box, and may provide additional buttons to execute specific functions, such as a **Find Next** button to find the next word that matches the find criteria of a word search. - Windows Presentation Foundation (WPF) allows you to create several types of dialog boxes, including message boxes, common dialog boxes, and custom dialog boxes. This topic discusses each, and the [Dialog Box Sample](https://go.microsoft.com/fwlink/?LinkID=159984) provides matching examples. + Windows Presentation Foundation (WPF) allows you to create several types of dialog boxes, including message boxes, common dialog boxes, and custom dialog boxes. This topic discusses each, and the [Dialog Box Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Windows/DialogBox) provides matching examples. ## Message boxes @@ -49,7 +49,7 @@ Standalone applications typically have a main window that both displays the main [!code-csharp[DialogBoxesOverviewSnippets#MsgBoxShowAndResultCODEBEHIND1](~/samples/snippets/csharp/VS_Snippets_Wpf/DialogBoxesOverviewSnippets/CSharp/Window1.xaml.cs#msgboxshowandresultcodebehind1)] [!code-vb[DialogBoxesOverviewSnippets#MsgBoxShowAndResultCODEBEHIND1](~/samples/snippets/visualbasic/VS_Snippets_Wpf/DialogBoxesOverviewSnippets/VisualBasic/window1.xaml.vb#msgboxshowandresultcodebehind1)] - For more information on using message boxes, see , [MessageBox Sample](https://go.microsoft.com/fwlink/?LinkID=160023), and [Dialog Box Sample](https://go.microsoft.com/fwlink/?LinkID=159984). + For more information on using message boxes, see , [MessageBox Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Windows/MessageBox), and [Dialog Box Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Windows/DialogBox). Although may offer a simple dialog box user experience, the advantage of using is that is the only type of window that can be shown by applications that run within a partial trust security sandbox (see [Security](../security-wpf.md)), such as XAML browser applications (XBAPs). @@ -112,7 +112,7 @@ While common dialog boxes are useful, and should be used when possible, they do ### Creating a modal custom dialog box -This topic shows how to use to create a typical modal dialog box implementation, using the `Margins` dialog box as an example (see [Dialog Box Sample](https://go.microsoft.com/fwlink/?LinkID=159984)). The `Margins` dialog box is shown in the following figure. +This topic shows how to use to create a typical modal dialog box implementation, using the `Margins` dialog box as an example (see [Dialog Box Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Windows/DialogBox)). The `Margins` dialog box is shown in the following figure. ![A Margins dialog box with fields to define left margin, top margin, right margin, and bottom margin.](./media/dialog-boxes-overview/margin-size-dialog-box.png) @@ -301,4 +301,4 @@ Alternatively, your code can call when the ## See also - [Popup Overview](../controls/popup-overview.md) -- [Dialog Box Sample](https://go.microsoft.com/fwlink/?LinkID=159984) +- [Dialog Box Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Windows/DialogBox) diff --git a/docs/framework/wpf/app-development/firefox-add-ons-to-support-net-application-deployment.md b/docs/framework/wpf/app-development/firefox-add-ons-to-support-net-application-deployment.md index 8c6b16a95468c..600d2c52171d4 100644 --- a/docs/framework/wpf/app-development/firefox-add-ons-to-support-net-application-deployment.md +++ b/docs/framework/wpf/app-development/firefox-add-ons-to-support-net-application-deployment.md @@ -25,7 +25,7 @@ The Windows Presentation Foundation (WPF) plug-in for Firefox and the .NET Frame - Report all installed versions of the .NET Framework or just the latest version. - The .NET Framework Assistant for Firefox is included with the .NET Framework 3.5 SP1. For information about removing the .NET Framework Assistant for Firefox, see [How to remove the .NET Framework Assistant for Firefox](https://go.microsoft.com/fwlink/?LinkId=177944). + The .NET Framework Assistant for Firefox is included with the .NET Framework 3.5 SP1. For information about removing the .NET Framework Assistant for Firefox, see [How to remove the .NET Framework Assistant for Firefox](https://support.microsoft.com/help/963707/how-to-remove-the-net-framework-assistant-for-firefox). ## See also diff --git a/docs/framework/wpf/app-development/how-to-detect-whether-the-net-framework-3-0-is-installed.md b/docs/framework/wpf/app-development/how-to-detect-whether-the-net-framework-3-0-is-installed.md index d2fab7fca3f9e..b959cae39e6d9 100644 --- a/docs/framework/wpf/app-development/how-to-detect-whether-the-net-framework-3-0-is-installed.md +++ b/docs/framework/wpf/app-development/how-to-detect-whether-the-net-framework-3-0-is-installed.md @@ -11,7 +11,7 @@ ms.assetid: 7f71d652-1749-4379-945a-aa2e3994cb43 Before administrators can deploy Microsoft .NET Framework applications on a system, they must first confirm that the .NET Framework runtime is present. This topic provides a script written in HTML/JavaScript that administrators can use to determine whether the .NET Framework is present on a system. > [!NOTE] -> For more detailed information on installing, deploying, and detecting the Microsoft .NET Framework, see the discussion in [Deploying Microsoft .NET Framework Version 3.0](https://go.microsoft.com/fwlink/?LinkId=96739). +> For more detailed information on installing, deploying, and detecting the Microsoft .NET Framework, see the discussion in [Deploying Microsoft .NET Framework Version 3.0](https://docs.microsoft.com/previous-versions/dotnet/articles/aa480198(v=msdn.10)). ## Detect the ".NET CLR" User-Agent String diff --git a/docs/framework/wpf/app-development/how-to-open-a-message-box.md b/docs/framework/wpf/app-development/how-to-open-a-message-box.md index 4ec0dbab63c43..769f0e76c3522 100644 --- a/docs/framework/wpf/app-development/how-to-open-a-message-box.md +++ b/docs/framework/wpf/app-development/how-to-open-a-message-box.md @@ -20,4 +20,4 @@ This example shows how to open a message box. ## See also -- [MessageBox Sample](https://go.microsoft.com/fwlink/?LinkID=160023) +- [MessageBox Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Windows/MessageBox) diff --git a/docs/framework/wpf/app-development/iwpfhostsupport.md b/docs/framework/wpf/app-development/iwpfhostsupport.md index 146ccab6da1f8..503bac42be791 100644 --- a/docs/framework/wpf/app-development/iwpfhostsupport.md +++ b/docs/framework/wpf/app-development/iwpfhostsupport.md @@ -9,7 +9,7 @@ ms.assetid: cc5a0281-de81-4cc1-87e4-0e46b1a811e9 Applications that host [!INCLUDE[TLA#tla_winclient](../../../../includes/tlasharptla-winclient-md.md)] content via PresentationHost.exe implement this interface to provide a point of integration between the host and PresentationHost.exe. ## Remarks - Win32 applications such as Web browsers can host WPF content, including XAML browser applications (XBAPs) and loose XAML. To host WPF content, Win32 applications create an instance of the [WebBrowser control](https://go.microsoft.com/fwlink/?LinkId=97911). To be hosted, WPF creates an instance of PresentationHost.exe, which provides the hosted WPF content to the host for display in the [WebBrowser control](https://go.microsoft.com/fwlink/?LinkId=97911). + Win32 applications such as Web browsers can host WPF content, including XAML browser applications (XBAPs) and loose XAML. To host WPF content, Win32 applications create an instance of the [WebBrowser control](https://docs.microsoft.com/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa752040(v=vs.85)). To be hosted, WPF creates an instance of PresentationHost.exe, which provides the hosted WPF content to the host for display in the [WebBrowser control](https://docs.microsoft.com/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa752040(v=vs.85)). The integration enabled by `IWpfHostSupport` allows PresentationHost.exe to: diff --git a/docs/framework/wpf/app-development/native-wpf-browser-hosting-support-apis.md b/docs/framework/wpf/app-development/native-wpf-browser-hosting-support-apis.md index 4e45f6321aa2b..2a461350d8dfd 100644 --- a/docs/framework/wpf/app-development/native-wpf-browser-hosting-support-apis.md +++ b/docs/framework/wpf/app-development/native-wpf-browser-hosting-support-apis.md @@ -11,10 +11,10 @@ ms.assetid: 82c133a8-d760-45fb-a2b9-3a997537f1d4 # Native WPF Browser Hosting Support APIs Hosting of WPF applications in Web browsers is facilitated by an Active Document server (also known as a DocObject) registered out of the WPF Host. Internet Explorer can directly activate and integrate with an Active Document. For hosting of XBAPs and loose XAML documents in Mozilla browsers, WPF provides an NPAPI plugin, which provides a similar hosting environment to the WPF Active Document server as Internet Explorer does. However, the easiest practical way to host XBAPs and XAML documents in other browsers and standalone applications is via the Internet Explorer Web Browser control. The Web Browser control provides the complex Active Document server hosting environment, yet it enables its own host to customize and extend that environment and communicate directly with the current Active Document object. - The WPF Active Document server implements several common hosting interfaces, including [IOleObject](https://go.microsoft.com/fwlink/?LinkId=162049), [IOleDocument](https://go.microsoft.com/fwlink/?LinkId=162050), [IOleInPlaceActiveObject](https://go.microsoft.com/fwlink/?LinkId=162051), [IPersistMoniker](https://go.microsoft.com/fwlink/?LinkId=162045), [IOleCommandTarget](https://go.microsoft.com/fwlink/?LinkId=162047). When hosted in the Web Browser control, these interfaces can be queries from the object returned by the [IWebBrowser2::Document](https://go.microsoft.com/fwlink/?LinkId=162048) property. + The WPF Active Document server implements several common hosting interfaces, including [IOleObject](/windows/win32/api/oleidl/nn-oleidl-ioleobject), [IOleDocument](/windows/win32/api/docobj/nn-docobj-ioledocument), [IOleInPlaceActiveObject](/windows/win32/api/oleidl/nn-oleidl-ioleinplaceactiveobject), [IPersistMoniker](https://docs.microsoft.com/previous-versions/windows/internet-explorer/ie-developer/platform-apis/ms775042(v=vs.85)), [IOleCommandTarget](/windows/win32/api/docobj/nn-docobj-iolecommandtarget). When hosted in the Web Browser control, these interfaces can be queries from the object returned by the [IWebBrowser2::Document](https://docs.microsoft.com/previous-versions/aa752116(v=vs.85)) property. ## IOleCommandTarget - WPF Active Document server's implementation of [IOleCommandTarget](https://go.microsoft.com/fwlink/?LinkId=162047) supports numerous navigation-related and browser-specific commands of the standard OLE command group (with a null command group GUID). In addition, it recognizes a custom command group called CGID_PresentationHost. Currently, there is only one command defined within this group. + WPF Active Document server's implementation of [IOleCommandTarget](/windows/win32/api/docobj/nn-docobj-iolecommandtarget) supports numerous navigation-related and browser-specific commands of the standard OLE command group (with a null command group GUID). In addition, it recognizes a custom command group called CGID_PresentationHost. Currently, there is only one command defined within this group. ```cpp DEFINE_GUID(CGID_PresentationHost, 0xd0288c55, 0xd6, 0x4f5e, 0xa8, 0x51, 0x79, 0xde, 0xc5, 0x1b, 0x10, 0xec); diff --git a/docs/framework/wpf/app-development/pack-uris-in-wpf.md b/docs/framework/wpf/app-development/pack-uris-in-wpf.md index 08478a51d7354..210a9d80a1c8a 100644 --- a/docs/framework/wpf/app-development/pack-uris-in-wpf.md +++ b/docs/framework/wpf/app-development/pack-uris-in-wpf.md @@ -38,7 +38,7 @@ To provide a consistent mechanism for identifying and loading these types of fil ## The Pack URI Scheme -The pack URI scheme is used by the [Open Packaging Conventions](https://go.microsoft.com/fwlink/?LinkID=71255) (OPC) specification, which describes a model for organizing and identifying content. The key elements of this model are packages and parts, where a *package* is a logical container for one or more logical *parts*. The following figure illustrates this concept. +The pack URI scheme is used by the [Open Packaging Conventions](https://www.ecma-international.org/publications/standards/Ecma-376.htm) (OPC) specification, which describes a model for organizing and identifying content. The key elements of this model are packages and parts, where a *package* is a logical container for one or more logical *parts*. The following figure illustrates this concept. ![Package and Parts diagram](./media/pack-uris-in-wpf/wpf-package-parts-diagram.png) diff --git a/docs/framework/wpf/app-development/wpf-xaml-browser-applications-overview.md b/docs/framework/wpf/app-development/wpf-xaml-browser-applications-overview.md index c9ad98a9a8404..bad8f3d336ed6 100644 --- a/docs/framework/wpf/app-development/wpf-xaml-browser-applications-overview.md +++ b/docs/framework/wpf/app-development/wpf-xaml-browser-applications-overview.md @@ -86,7 +86,7 @@ XAML browser applications (XBAPs) combines features of both Web applications and ## Communicating with the Host Web Page - When the application is hosted in an HTML frame, you can communicate with the Web page that contains the XBAP. You do this by retrieving the property of . This property returns a script object that represents the HTML window. You can then access the properties, methods, and events on the [window object](https://go.microsoft.com/fwlink/?LinkId=160274) by using regular dot syntax. You can also access script methods and global variables. The following example shows how to retrieve the script object and close the browser. + When the application is hosted in an HTML frame, you can communicate with the Web page that contains the XBAP. You do this by retrieving the property of . This property returns a script object that represents the HTML window. You can then access the properties, methods, and events on the [window object](https://developer.mozilla.org/en-US/docs/Web/API/Window) by using regular dot syntax. You can also access script methods and global variables. The following example shows how to retrieve the script object and close the browser. [!code-csharp[XbapBrowserInterop#10](~/samples/snippets/csharp/VS_Snippets_Wpf/xbapbrowserinterop/cs/page1.xaml.cs#10)] [!code-vb[XbapBrowserInterop#10](~/samples/snippets/visualbasic/VS_Snippets_Wpf/xbapbrowserinterop/vb/page1.xaml.vb#10)] @@ -170,7 +170,7 @@ XAML browser applications (XBAPs) combines features of both Web applications and > [!NOTE] > The behavior described in the previous table is for full-trust XBAPs that do not follow the ClickOnce Trusted Deployment model. - It is recommended that you use the ClickOnce Trusted Deployment model for deploying a full-trust XBAP. This model allows your XBAP to be granted full trust automatically, regardless of the security zone, so that the user is not prompted. As part of this model, you must sign your application with a certificate from a trusted publisher. For more information, see [Trusted Application Deployment Overview](/visualstudio/deployment/trusted-application-deployment-overview) and [Introduction to Code Signing](https://go.microsoft.com/fwlink/?LinkId=166327). + It is recommended that you use the ClickOnce Trusted Deployment model for deploying a full-trust XBAP. This model allows your XBAP to be granted full trust automatically, regardless of the security zone, so that the user is not prompted. As part of this model, you must sign your application with a certificate from a trusted publisher. For more information, see [Trusted Application Deployment Overview](/visualstudio/deployment/trusted-application-deployment-overview) and [Introduction to Code Signing](https://docs.microsoft.com/previous-versions/windows/internet-explorer/ie-developer/platform-apis/ms537361(v=vs.85)). ## XBAP Start Time Performance Considerations diff --git a/docs/framework/wpf/controls/contextmenu-overview.md b/docs/framework/wpf/controls/contextmenu-overview.md index c46d0112a4a2e..1e903f5de4fec 100644 --- a/docs/framework/wpf/controls/contextmenu-overview.md +++ b/docs/framework/wpf/controls/contextmenu-overview.md @@ -62,4 +62,4 @@ The class represents the element that - - [ContextMenu](contextmenu.md) - [ContextMenu Styles and Templates](contextmenu-styles-and-templates.md) -- [WPF Controls Gallery Sample](https://go.microsoft.com/fwlink/?LinkID=160053) +- [WPF Controls Gallery Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Getting%20Started/ControlsAndLayout) diff --git a/docs/framework/wpf/controls/control-styles-and-templates.md b/docs/framework/wpf/controls/control-styles-and-templates.md index 5288a4e581144..79409eefb1731 100644 --- a/docs/framework/wpf/controls/control-styles-and-templates.md +++ b/docs/framework/wpf/controls/control-styles-and-templates.md @@ -14,7 +14,7 @@ ms.assetid: c19049bb-5ceb-492d-afd2-751dca0ed8e3 # Control Styles and Templates Controls in Windows Presentation Foundation (WPF) have a that contains the visual tree of that control. You can change the structure and appearance of a control by modifying the of that control. There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the property of the control to its new and complete . - The desktop themes determine which resource dictionary is used. To get the resource dictionaries for the desktop themes, see [Default WPF Themes](https://go.microsoft.com/fwlink/?LinkID=158252). + The desktop themes determine which resource dictionary is used. To get the resource dictionaries for the desktop themes, see [Default WPF Themes](https://github.com/Microsoft/WPF-Samples/tree/master/Graphics/2DTransforms). The following table describes the resource dictionary file names and their corresponding desktop themes. diff --git a/docs/framework/wpf/controls/how-to-animate-a-borderthickness-value.md b/docs/framework/wpf/controls/how-to-animate-a-borderthickness-value.md index e3e312f99d16c..c29cc5d4b4bc5 100644 --- a/docs/framework/wpf/controls/how-to-animate-a-borderthickness-value.md +++ b/docs/framework/wpf/controls/how-to-animate-a-borderthickness-value.md @@ -18,7 +18,7 @@ This example shows how to animate changes to the thickness of a border by using [!code-csharp[BasicAnimations_snip#ThicknessAnimationWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/BasicAnimations_snip/CSharp/ThicknessAnimationExample.cs#thicknessanimationwholepage)] [!code-vb[BasicAnimations_snip#ThicknessAnimationWholePage](~/samples/snippets/visualbasic/VS_Snippets_Wpf/BasicAnimations_snip/VisualBasic/ThicknessAnimationExample.vb#thicknessanimationwholepage)] - For the complete sample, see [Animation Example Gallery](https://go.microsoft.com/fwlink/?LinkID=159969). + For the complete sample, see [Animation Example Gallery](https://github.com/Microsoft/WPF-Samples/tree/master/Animation/AnimationExamples). ## See also diff --git a/docs/framework/wpf/controls/how-to-resize-a-canvas-by-using-a-thumb.md b/docs/framework/wpf/controls/how-to-resize-a-canvas-by-using-a-thumb.md index 56462a69ec043..d11c062b8db51 100644 --- a/docs/framework/wpf/controls/how-to-resize-a-canvas-by-using-a-thumb.md +++ b/docs/framework/wpf/controls/how-to-resize-a-canvas-by-using-a-thumb.md @@ -38,7 +38,7 @@ This example shows how to use a [!code-csharp[Thumb#DragCompletedHandler](~/samples/snippets/csharp/VS_Snippets_Wpf/Thumb/CSharp/Pane1.xaml.cs#dragcompletedhandler)] [!code-vb[Thumb#DragCompletedHandler](~/samples/snippets/visualbasic/VS_Snippets_Wpf/Thumb/VisualBasic/Pane1.xaml.vb#dragcompletedhandler)] - For the complete sample, see [Thumb Drag Functionality Sample](https://go.microsoft.com/fwlink/?LinkID=160042). + For the complete sample, see [Thumb Drag Functionality Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Drag%20and%20Drop/DragDropThumbOps). ## See also diff --git a/docs/framework/wpf/controls/how-to-set-the-height-properties-of-an-element.md b/docs/framework/wpf/controls/how-to-set-the-height-properties-of-an-element.md index a5a55a4826ee0..d6c36a17ac9d2 100644 --- a/docs/framework/wpf/controls/how-to-set-the-height-properties-of-an-element.md +++ b/docs/framework/wpf/controls/how-to-set-the-height-properties-of-an-element.md @@ -25,7 +25,7 @@ ms.assetid: 5ab9e781-dbb8-469a-a3c8-cf38ce312647 [!code-csharp[HeightMinHeightMaxHeight#3](~/samples/snippets/csharp/VS_Snippets_Wpf/HeightMinHeightMaxHeight/CSharp/Window1.xaml.cs#3)] [!code-vb[HeightMinHeightMaxHeight#3](~/samples/snippets/visualbasic/VS_Snippets_Wpf/HeightMinHeightMaxHeight/VisualBasic/Window1.xaml.vb#3)] - For the complete sample, see [Height Properties Sample](https://go.microsoft.com/fwlink/?LinkID=159993). + For the complete sample, see [Height Properties Sample](https://github.com/microsoft/WPF-Samples/tree/master/Elements/HeightProperties). ## See also @@ -37,4 +37,4 @@ ms.assetid: 5ab9e781-dbb8-469a-a3c8-cf38ce312647 - - [Set the Width Properties of an Element](how-to-set-the-width-properties-of-an-element.md) - [Panels Overview](panels-overview.md) -- [Height Properties Sample](https://go.microsoft.com/fwlink/?LinkID=159993) +- [Height Properties Sample](https://github.com/microsoft/WPF-Samples/tree/master/Elements/HeightProperties) diff --git a/docs/framework/wpf/controls/how-to-set-the-width-properties-of-an-element.md b/docs/framework/wpf/controls/how-to-set-the-width-properties-of-an-element.md index 45a59c7353485..089560f839021 100644 --- a/docs/framework/wpf/controls/how-to-set-the-width-properties-of-an-element.md +++ b/docs/framework/wpf/controls/how-to-set-the-width-properties-of-an-element.md @@ -25,7 +25,7 @@ ms.assetid: 6ee04a9d-63f0-4f5b-a406-0a8cd4c35729 [!code-csharp[WidthMinWidthMaxWidth#3](~/samples/snippets/csharp/VS_Snippets_Wpf/WidthMinWidthMaxWidth/CSharp/Window1.xaml.cs#3)] [!code-vb[WidthMinWidthMaxWidth#3](~/samples/snippets/visualbasic/VS_Snippets_Wpf/WidthMinWidthMaxWidth/VisualBasic/Window1.xaml.vb#3)] - For the complete sample, see [Width Properties Comparison Sample](https://go.microsoft.com/fwlink/?LinkID=160050). + For the complete sample, see [Width Properties Comparison Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Elements/WidthProperties). ## See also @@ -37,4 +37,4 @@ ms.assetid: 6ee04a9d-63f0-4f5b-a406-0a8cd4c35729 - - [Panels Overview](panels-overview.md) - [Set the Height Properties of an Element](how-to-set-the-height-properties-of-an-element.md) -- [Width Properties Comparison Sample](https://go.microsoft.com/fwlink/?LinkID=160050) +- [Width Properties Comparison Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Elements/WidthProperties) diff --git a/docs/framework/wpf/controls/menu-overview.md b/docs/framework/wpf/controls/menu-overview.md index f33cde6034bea..ebbec4f73a80f 100644 --- a/docs/framework/wpf/controls/menu-overview.md +++ b/docs/framework/wpf/controls/menu-overview.md @@ -54,4 +54,4 @@ The class enables you to organize elements a ## See also -- [WPF Controls Gallery Sample](https://go.microsoft.com/fwlink/?LinkID=160053) +- [WPF Controls Gallery Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Getting%20Started/ControlsAndLayout) diff --git a/docs/framework/wpf/controls/panels-overview.md b/docs/framework/wpf/controls/panels-overview.md index b78bd33b81d6a..bc41908975aa9 100644 --- a/docs/framework/wpf/controls/panels-overview.md +++ b/docs/framework/wpf/controls/panels-overview.md @@ -95,7 +95,7 @@ ms.assetid: f73644af-9941-4611-8754-6d4cef03fc44 #### ClipToBounds Within a Canvas can position child elements at any position on the screen, even at coordinates that are outside of its own defined and . Furthermore, is not affected by the size of its children. As a result, it is possible for a child element to overdraw other elements outside the bounding rectangle of the parent . The default behavior of a is to allow children to be drawn outside the bounds of the parent . If this behavior is undesirable, the property can be set to `true`. This causes to clip to its own size. is the only layout element that allows children to be drawn outside its bounds. - This behavior is graphically illustrated in the [Width Properties Comparison Sample](https://go.microsoft.com/fwlink/?LinkID=160050). + This behavior is graphically illustrated in the [Width Properties Comparison Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Elements/WidthProperties). #### Defining and Using a Canvas A can be instantiated simply by using [!INCLUDE[TLA#tla_xaml](../../../../includes/tlasharptla-xaml-md.md)] or code. The following example demonstrates how to use to absolutely position content. This code produces three 100-pixel squares. The first square is red, and its top-left (*x, y*) position is specified as (0, 0). The second square is green, and its top-left position is (100, 100), just below and to the right of the first square. The third square is blue, and its top-left position is (50, 50), thus encompassing the lower-right quadrant of the first square and the upper-left quadrant of the second. Because the third square is laid out last, it appears to be on top of the other two squares—that is, the overlapping portions assume the color of the third box. @@ -251,7 +251,7 @@ ms.assetid: f73644af-9941-4611-8754-6d4cef03fc44 - [Walkthrough: My first WPF desktop application](../getting-started/walkthrough-my-first-wpf-desktop-application.md) - [WPF Layout Gallery Sample](https://go.microsoft.com/fwlink/?LinkID=160054) - [Layout](../advanced/layout.md) -- [WPF Controls Gallery Sample](https://go.microsoft.com/fwlink/?LinkID=160053) +- [WPF Controls Gallery Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Getting%20Started/ControlsAndLayout) - [Alignment, Margins, and Padding Overview](../advanced/alignment-margins-and-padding-overview.md) - [Create a Custom Content-Wrapping Panel Sample](https://go.microsoft.com/fwlink/?LinkID=159979) - [Attached Properties Overview](../advanced/attached-properties-overview.md) diff --git a/docs/framework/wpf/controls/textbox-how-to-topics.md b/docs/framework/wpf/controls/textbox-how-to-topics.md index 3aa11dbc18376..2bae9542e42db 100644 --- a/docs/framework/wpf/controls/textbox-how-to-topics.md +++ b/docs/framework/wpf/controls/textbox-how-to-topics.md @@ -37,5 +37,5 @@ This section provides examples that demonstrate how to accomplish common tasks u ## See also -- [WPF Controls Gallery Sample](https://go.microsoft.com/fwlink/?LinkID=160053) +- [WPF Controls Gallery Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Getting%20Started/ControlsAndLayout) - [TextBox Styles and Templates](textbox-styles-and-templates.md) diff --git a/docs/framework/wpf/controls/textbox.md b/docs/framework/wpf/controls/textbox.md index 2ff02d4012073..15107a71c8ade 100644 --- a/docs/framework/wpf/controls/textbox.md +++ b/docs/framework/wpf/controls/textbox.md @@ -26,5 +26,5 @@ The control provides support for basic te ## See also -- [WPF Controls Gallery Sample](https://go.microsoft.com/fwlink/?LinkID=160053) +- [WPF Controls Gallery Sample](https://github.com/Microsoft/WPF-Samples/tree/master/Getting%20Started/ControlsAndLayout) - [TextBox Styles and Templates](textbox-styles-and-templates.md)