本文整理汇总了C#中PhoneApplicationPage.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# PhoneApplicationPage.SetValue方法的具体用法?C# PhoneApplicationPage.SetValue怎么用?C# PhoneApplicationPage.SetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhoneApplicationPage
的用法示例。
在下文中一共展示了PhoneApplicationPage.SetValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Create
public static IBusyIndicatorManager Create(PhoneApplicationPage page)
{
var busyIndicator = page.GetValue(BusyIndicatorProperty) as IBusyIndicatorManager;
if (busyIndicator == null)
{
busyIndicator = new BusyIndicatorManager(page);
page.SetValue(BusyIndicatorProperty, busyIndicator);
}
return busyIndicator;
}
示例2: BusyIndicatorManager
private BusyIndicatorManager(PhoneApplicationPage page)
{
_page = page;
if (_progressIndicator == null)
{
_progressIndicator = new ProgressIndicator();
}
_page.SetValue(SystemTray.ProgressIndicatorProperty, _progressIndicator);
}
示例3: OnRootFrameNavigated
private void OnRootFrameNavigated(object sender, NavigationEventArgs e)
{
// Use in Mango to share a single progress indicator instance.
var ee = e.Content;
_page = ee as PhoneApplicationPage;
if (_page != null)
{
SystemTray.SetBackgroundColor(_page, Color.FromArgb(255, 240,249,255));
SystemTray.SetForegroundColor(_page, Color.FromArgb(255, 31,117,204));
_page.SetValue(SystemTray.OpacityProperty, 0.99);
_page.SetValue(SystemTray.ProgressIndicatorProperty, _mangoIndicator);
}
}
示例4: SetProgressIndicator
private void SetProgressIndicator(PhoneApplicationPage pp)
{
if (pp != null)
{
pp.SetValue(_progressIndicatorProperty, _mangoIndicator);
}
}
示例5: SetApplicationBar
public static void SetApplicationBar(PhoneApplicationPage obj, BindableApplicationBar value)
{
obj.SetValue(ApplicationBarProperty, value);
}