Hi!
i dont understand why… help me
Entry.ux
<ox.page ux:Class="Entry">
<JavaScript File="Entry.js" />
<Router ux:Dependency="router" />
<Panel>
<Grid ux:Name="loggedOutView" Rows="1.5*,2*,2.2*,0.3*" Padding="40,0">
<!-- whe keyboard up, tracing menus event -->
<WhileKeyboardVisible>
<Move Target="mark" Y="-200" Duration=".6" Easing="ExponentialInOut"/>
<Move Target="loginArea" Y="-200" Duration=".6" Easing="ExponentialInOut"/>
<Move Target="signButton" Y="-200" Duration=".6" Easing="ExponentialInOut"/>
</WhileKeyboardVisible>
<!-- app logo -->
<Image ux:Name="mark" Row="0" File="../Assets/marklogin.png" Margin="0,80,0,0"/>
<!-- ID, PASSWORD -->
<Grid ux:Name="loginArea" Row="1" Padding="0,20" RowCount="2" Columns="auto,1*" Height="160" MaxWidth="400">
<Image Row="0" Column="0" File="../Assets/user_icon.png" Width="20" Height="20" Margin="10,0,30,0" Alignment="Left"/>
<TextInput Row="0" Column="1" PlaceholderText="Username" PlaceholderColor="#999" TextColor="#fff" CaretColor="#fff" />
<Rectangle Row="0" Column="0" Alignment="Bottom" ColumnSpan="2" Height="1" Color="#fff"/>
<Image Row="1" Column="0" File="../Assets/password_icon.png" Width="20" Height="20" Margin="10,0,30,0" Alignment="Left"/>
<TextInput Row="1" Column="1" PlaceholderText="Password" PlaceholderColor="#999" TextColor="#fff" CaretColor="#fff" IsPassword="true"/>
<Rectangle Row="1" Column="0" Alignment="Bottom" ColumnSpan="2" Height="1" Color="#fff"/>
</Grid>
<!-- Login Button -->
<StackPanel ux:Name="signButton" Row="2">
<Entry.Sign.Panel Names="Sign in" Backgrounds="#ff00ff" Clicked="{gotoMain}" />
<Entry.Sign.Panel Names="Kakao" Backgrounds="#dada00" Clicked="{gotoMain}" />
</StackPanel>
<!-- create account, get password -->
<DockPanel Row="3">
<Text Value="create account" Dock="Left" Alignment="Center" FontSize="13" />
<Text Value="forget password" Dock="Right" Alignment="Center" FontSize="13" />
</DockPanel>
</Grid>
</Panel>
</ox.page>
Entry.js
function gotoMain() {
router.push("main");
}
module.exports = {
gotoMain: gotoMain
}
MainView.ux
<App Background="#333">
<iOS.StatusBarConfig Style="Light" />
<Android.StatusBarConfig Color="#333" />
<Router ux:Name="router" />
<ClientPanel>
<Navigator DefaultPath="entry">
<Entry ux:Template="entry" router="router" />
<Main ux:Template="main" router="router" />
</Navigator>
</ClientPanel>
</App>
MainView.g.uno
public partial class Template: Uno.UX.Template
{
[Uno.WeakReference] internal readonly MainView __parent;
[Uno.WeakReference] internal readonly MainView __parentInstance;
public Template(MainView parent, MainView parentInstance): base("entry", false)
{
__parent = parent;
__parentInstance = parentInstance;
}
static Template()
{
}
public override object New()
{
var self = new Entry(__parent.router); <!-- error -->
self.Name = __selector0;
return self;
}
static global::Uno.UX.Selector __selector0 = "entry";
}