:: Home

  login:         
  passwords:  

WPF FAQs

WPF General Questions
Concepts Element Tree
Concepts Dependency Property
Concepts Attached Property
Concepts Routed Events
Concepts Resources.
Concepts Animation
Concepts Freezable Object
Concepts Input and Commands.
Concepts Layouts
XAML Inline Styles and Templates
XAML XML Namespaces
XAML Code Behind
XAML Custom Class
XAML Type Converters
Content Model ItemControl
Content Model HeaderedItemsControl
Content Model HeaderedContentControl
Content Model Content Control
Content Model Decorator Content Model
Content Model Panel Content Model
Documents Serialization and Storage
Documents Annotations
Documents Flow Content
Documents Printing
Graphics and Multimedia Rendering Graphics
Graphics and Multimedia Animation and Timing
Graphics and Multimedia 2D Graphics
Graphics and Multimedia 3D Graphics
Graphics and Multimedia Visual Layer
Control Customization Adorners
Control Customization Stylable controls
Control Customization ControlTemplates
Data Data Binding
Data DragandDrop
Data Serialization
Globalization and Localization Attributes
Globalization and Localization Comments
Globalization and Localization Globalization Struc
Application and Deployment ClickOnce
Application and Deployment Frame
Application and Deployment Page
Application and Deployment Navigation
Application and Deployment Setup
Application and Deployment Window
Interoperability Message Loops Between
Interoperability Win32 in WPF
Interoperability WPF in Win32
Interoperability Windows Forms and WPF
Security Trusted Security
Security Partial Trust Security
Tools Microsoft Expression Blend
Tools ZAM3D
Tools XAMLPAD
Controls ToolTip
Controls TextBlock
Controls TabControl
Controls ProgressBar
Controls PrintDialog
Controls Popup
Controls TextBox
Controls Canvas
Controls ComboBox
Controls ListBox
Controls StatusBar
Controls ToolBar
Controls Context Menu
Controls Expander
Controls DocumentViewer
Controls FlowDocumentReader
Controls GroupBox
Controls GridSplitter
Controls Image
Controls Menu
Controls ScrollBar
Controls Slider
Controls RichTextBox
Controls Border
Controls Buttons

SilverLight Interview Qs

SAP Interview Questions

Oracle Interview Questions

PHP Interview Questions

Ajax Interview Questions

IIS 7.0

OOP Interview Questions

Ruby Interview Questions

Sql Server Interview Questions

Winforms Interview Questions

SharePoint 2007 Questions

Microsoft Crm Questions

Application and Deployment ClickOnce Interview Questions & FAQs

Questions and answers for Application and Deployment ClickOnce.

40. Application and Deployment ClickOnce

    40.1 How does ClickOnce deployment work ?
    40.2 Can I add prerequisites in my ClickOnce deployment ?
    40.3 How do I enable automatic updates for my application using ClickOnce deployment ?

40.1 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.


40.2 Can I add prerequisites in my ClickOnce deployment ?

Grids are useful in localizable applications to create controls that adjust to fit content. In the below example, the Grid element's "IsSharedSizeScope" attached property is useful for sharing the same sizing among multiple grid elements.

[XAML]

<StackPanel Orientation="Horizontal" DockPanel.Dock="Top">

<Button Click="setTrue" Margin="0,0,10,10">Set IsSharedSizeScope="True"</Button>

<Button Click="setFalse" Margin="0,0,10,10">Set IsSharedSizeScope="False"</Button>

</StackPanel>

<StackPanel Orientation="Horizontal" DockPanel.Dock="Top">

<Grid ShowGridLines="True" Margin="0,0,10,0">

<Grid.ColumnDefinitions>

<ColumnDefinition SharedSizeGroup="FirstColumn"/>

<ColumnDefinition SharedSizeGroup="SecondColumn"/>

</Grid.ColumnDefinitions>

<Grid.RowDefinitions>

<RowDefinition Height="Auto" SharedSizeGroup="FirstRow"/>

</Grid.RowDefinitions>

<Rectangle Fill="Silver" Grid.Column="0" Grid.Row="0" Width="200" Height="100"/>

<Rectangle Fill="Blue" Grid.Column="1" Grid.Row="0" Width="150" Height="100"/>

<TextBlock Grid.Column="0" Grid.Row="0" FontWeight="Bold">First Column</TextBlock>

<TextBlock Grid.Column="1" Grid.Row="0" FontWeight="Bold">Second Column</TextBlock>

</Grid>

<Grid ShowGridLines="True">

<Grid.ColumnDefinitions>

<ColumnDefinition SharedSizeGroup="FirstColumn"/>

<ColumnDefinition SharedSizeGroup="SecondColumn"/>

</Grid.ColumnDefinitions>

<Grid.RowDefinitions>

<RowDefinition Height="Auto" SharedSizeGroup="FirstRow"/>

</Grid.RowDefinitions>

<Rectangle Fill="Silver" Grid.Column="0" Grid.Row="0"/>

<Rectangle Fill="Blue" Grid.Column="1" Grid.Row="0"/>

<TextBlock Grid.Column="0" Grid.Row="0" FontWeight="Bold">First Column</TextBlock>

<TextBlock Grid.Column="1" Grid.Row="0" FontWeight="Bold">Second Column</TextBlock>

</Grid>

</StackPanel>

<TextBlock Margin="10" DockPanel.Dock="Top" Name="txt1"/>


40.3 How do I enable automatic updates for my application using ClickOnce deployment ?

ClickOnce allows the vendors to provide regular updates for the applications. To enable automatic updates, select "publish" tab in Project Properties window and click on the "updates" button. In the Application Updates window, select the mode of application updates like 'after application starts' and 'before application starts'. The former mode is used when there is a need to provide regular updates of the application after a period of time and in the later mode, the application checks for the updates only once, that is when the application runs for the first time. Click OK to close the Application Updates window and publish the application.

bottom user control
::  Home :: Services ::  Prices ::  Request Quote
Copyright 2007, Megasolutions Ltd