Skip to content

Commit

Permalink
http://jira.mosync.com/browse/MOSYNC-2228 fix, the screen spann insid…
Browse files Browse the repository at this point in the history
…e panoramaView doc update
  • Loading branch information
Ciprian Filipas committed Jun 14, 2012
2 parents 5b8772e + eb32b47 commit 686ea3c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions libs/NativeUI/PanoramaView.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ namespace NativeUI
/**
* \brief Class that represents a visible panorama view. Note that
* this is available only on Windows Phone 7.
* A panorama control is a Windows Phone 7 specific control. The paroramaView is a screen container
* which may contain more then one screen. A screen can spann over the hardware screen width.
* In order to enable this you will have to set the width property of a screen to a certain value.
* For more information regarding this control please check the following link:
* http://msdn.microsoft.com/en-us/library/ff941104(v=vs.92).aspx
*/
class PanoramaView : public Screen
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public override void AddChild(IWidget child)
mPanorama.Items.Add(new Microsoft.Phone.Controls.PanoramaItem
{
Header = (child as Screen).getScreenTitle,
Content = (child as Screen).View
Content = (child as Screen).View,
Orientation = System.Windows.Controls.Orientation.Horizontal,
Width = ((child as Screen).View as Grid).Width
});
});
}
Expand Down Expand Up @@ -164,14 +166,15 @@ public String BackgroundImage

//The ImageBrush standard object gets that as a source
System.Windows.Media.ImageBrush imgBrush = new System.Windows.Media.ImageBrush();

imgBrush.ImageSource = bmpSource;

//The panorama gets the brush as a background
mPanorama.Background = imgBrush;
}
else throw new InvalidPropertyValueException();
}
throw new InvalidPropertyValueException();
else throw new InvalidPropertyValueException();
}
}

Expand Down
7 changes: 6 additions & 1 deletion tools/idl2/maapi.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5055,7 +5055,12 @@ group WidgetAPI "Widget API" {
MODAL_DIALOG = "ModalDialog";

/**
* @brief A panorama control is a Windows Phone 7 specific control
* @brief A panorama control is a Windows Phone 7 specific control. The paroramaView is a screen container
* which may contain more then one screen. A screen can spann over the hardware screen width.
* In order to enable this you will have to set the width property of a screen to a certain value.
* For more information regarding this control please check the following link:
* http://msdn.microsoft.com/en-us/library/ff941104(v=vs.92).aspx
*
* Available only on Windows Phone 7
* See \ref WidgetPanoramaViewProperties "Panorama View properties" for the properties available
*/
Expand Down

0 comments on commit 686ea3c

Please sign in to comment.