app.Run(args);
}
}
-}
+}
\ No newline at end of file
private void OnWindowResized(object sender, Window.ResizedEventArgs e)
{
- Tizen.Log.Info("Testing", "Resizing");
- viewManager.UpdateView();
+ Tizen.Log.Info("TESTAPP", "Resizing");
+ viewManager.UpdateView();
}
protected override void OnPause()
protected override void OnResize(Window window)
{
- base.OnResize(window);
+ base.OnResize(window);
}
protected override void OnUpdate(string contentInfo, int force)
base.OnTerminate(contentInfo, type);
}
}
-}
-
+}
\ No newline at end of file
Button navigationContent = new Button(appBarStyle.BackButton);
navigationContent.Clicked += (object source, ClickedEventArgs e) =>
{
- CloseAccount();
+ CloseAccount();
};
appBar.NavigationContent = navigationContent;
RelativeLayout.SetLeftTarget(appBar.NavigationContent, appBar);
RelativeLayout.SetVerticalAlignment(appBar.NavigationContent, RelativeLayout.Alignment.Center);
appBarStyle.Dispose();
- Button actionContent = new Button()
+ /* Button actionContent = new Button()
{
- BackgroundColor = Color.Transparent,
+ BackgroundColor = Color.Transparent,
TextColor = Color.Red,
Size2D = new Size2D(100, 48).SpToPx(),
Text = "Add",
RelativeLayout.SetLeftTarget(appBar.ActionContent, appBar.TitleContent);
RelativeLayout.SetLeftRelativeOffset(appBar.ActionContent, 1.0f);
RelativeLayout.SetVerticalAlignment(appBar.ActionContent, RelativeLayout.Alignment.Center);
-
+ */
TextLabel titleContent = new TextLabel("Accounts")
{
- WidthSpecification = Window.Instance.Size.Width - 175.SpToPx(),
+ WidthSpecification = Window.Instance.Size.Width - 175.SpToPx(),
PixelSize = 40.SpToPx(),
FontFamily = "BreezeSans",
WidthSpecification = LayoutParamPolicies.MatchParent,
HeightSpecification = LayoutParamPolicies.MatchParent,
},*/
- BackgroundColor = Color.White,
+ BackgroundColor = Color.White,
Content = new TextLabel()
{
HorizontalAlignment = HorizontalAlignment.Center,
<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="org.tizen.cssetting-account" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="org.tizen.cssetting-account" version="1.0.1">
<profile name="common" />
<widget-application appid="org.tizen.cssetting-account" exec="MainAccount.dll" type="dotnet" multiple="false" taskmanage="true" nodisplay="false" launch_mode="single">
<icon>MainAccount.png</icon>
<privilege>http://tizen.org/privilege/account.read</privilege>
<privilege>http://tizen.org/privilege/account.write</privilege>
</privileges>
-</manifest>
-
+</manifest>
\ No newline at end of file
{
if (borderView != null)
{
- borderView.BackgroundColor = new Color(0, 1, 0, 0.3f); // Background of border.
+ borderView.BackgroundColor = new Color(0, 0, 1, 0.3f); //Background of border.
}
}
//title.Show();
hide = false;
}
- borderView.BackgroundColor = new Color(1, 1, 1, 0.3f); // After resize color return to original
+ borderView.BackgroundColor = new Color(1, 1, 1, 0.3f); //After resize color return to original
base.OnResized(width, height);
UpdateIcons();
}
}
}
}
-}
+}
\ No newline at end of file
public class Program : NUIApplication
{
private WidgetView widgetView;
-
public Program(string styleSheet, Size2D windowSize, Position2D windowPosition, IBorderInterface borderInterface)
: base(styleSheet, windowSize, windowPosition, borderInterface)
{
bundle.AddItem("COUNT", "1");
string encodedBundle = bundle.Encode();
- widgetView = WidgetViewManager.Instance.AddWidget("account@org.tizen.cssetting-account", encodedBundle, window.Size.Width, window.Size.Height, 0.0f); //(540,960)
+ widgetView = WidgetViewManager.Instance.AddWidget("account@org.tizen.cssetting-account", encodedBundle, window.Size.Width, window.Size.Height, 0.0f);//(540,960)
widgetView.WidthSpecification = LayoutParamPolicies.MatchParent;
widgetView.HeightSpecification = LayoutParamPolicies.MatchParent;
- widgetView.Position = new Position(0, 0); // Position of the application window(Account)
+ widgetView.Position = new Position(0, 0); //Position of the application window(Account)
widgetView.WidgetContentUpdated += OnWidgetContentUpdated;
- window.GetDefaultLayer().Add(widgetView);
+ window.GetDefaultNavigator().Push(new ContentPage() { Content = widgetView });
}
private void OnWidgetContentUpdated(object sender, WidgetView.WidgetViewEventArgs e)
app.Run(args);
}
}
-}
+}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="org.tizen.SettingView" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="org.tizen.SettingView" version="1.0.1">
<profile name="common" />
<ui-application appid="org.tizen.SettingView" exec="SettingView.dll" type="dotnet" multiple="false" taskmanage="true" nodisplay="false" launch_mode="single">
<icon>SettingView.png</icon>