How does ClickOnce deployment work ?
ClickOnce allows you to deploy windows based applications to a client system using the web or file server. The application files are placed on the web or FTP site or local share and the user is provided with a link in case of web and FTP deployment. On clicking the link, the application files get downloaded and installed. When a new version or update is available, it can be automatically detected and applied to the clients using the optional deployment settings. In case of a local share deployment, the application can be installed similar to other windows based applications.
Can I override the default categories for platform controls in XAML as well ?
It can be done with the following piece of code. [XAML] <TextBlock x:Uid=’TextBlock_2′> <TextBlock.ToolTip> <TextBlock x:Uid=’TextBlock_3′ Localization.Attributes= ‘$Content(ToolTip Readable Unmodifiable)’> Microsoft Corporation </TextBlock> </TextBlock.ToolTip> Windows Vista </TextBlock>
How can I specify in the .proj file whether to leave the free-form localization comments in the assembly or strip them out ?
During the build process, you can specify in the .proj file whether to leave the free-form localization comments in the assembly, strip-out part of the comments or strip-out all the comments. The stripped-out comments are placed in a separate file. You specify your option using a ‘LocalizationDirectivesToLocFile’ tag as follows : [XAML] <LocalizationDirectivesToLocFile>value</LocalizationDirectivesToLocFile> Note : The values that can be assigned are: 1. None – Both comments and attributes stay inside the assembly and no separate file is generated. 2. CommentsOnly – Strips only the comments from the assembly and places them in the separate LocFile. 3. All – Strips both the comments and the attributes from the assembly and places them both in a separate LocFile.
How can I add localization comments to an XAML file ?
The following example shows how to add localization comments to an XAML file. [XAML] <TextBlock x:Id = ‘text01’ FontFamily = ‘Microsoft Sans Serif’ FontSize = ’12’ Localization.Attributes = ‘$Content (Unmodifiable Readable Text) FontFamily (Unmodifiable Readable)’ Localization.Comments = ‘$Content (Trademark) FontSize (Trademark font size)’ > Microsoft </TextBlock>
How can I set the substitution property by overriding the default substitution ?
In the following example, the first TextBlock does not have the Substitution property set, so the algorithm displays Arabic digits as expected. However in the second TextBlock, the substitution is set to ’European’, overriding the default substitution for Arabic numbers and hence European digits are displayed. [XAML] <Page x:Class=’WindowsApplication.Window1′ xmlns=’http://schemas.microsoft.com/winfx/2006/xaml/presentation’ xmlns:x=’http://schemas.microsoft.com/winfx/2006/xaml’ Title=’Code Sample’ Height=’300′ Width=’300′ > <StackPanel> <TextBlock Language=’ar-SA’ FlowDirection=’RightToLeft’>????: 1+2=3 </TextBlock> <TextBlock Language=’ar-SA’ FlowDirection=’RightToLeft’ NumberSubstitution.Substitution=’European’>????: 1+2=3 </TextBlock> </StackPanel> </Page>