Fermer

août 13, 2020

Liaisons mobiles Telerik Blazor pour Xamarin


< ContentView >

< Grid Padding = "new Thickness (0,40,0,0)" >

< Disposition >

< RowDefinition GridUnitType = "GridUnitType.Auto" />

] < RowDefinition GridUnitType = "GridUnitType.Star" />

</ Layout >

[19659012] < Contenu >

< GridCell >

< StackLayout Orientation = "StackOrientation .Horizontal "

Spacing = " 10 ">

< RadButton BorderWidth = " 0 "[19659011] CornerRadius = "0"

HeightRequest = "50"

WidthRequest = "50" [19659011] BorderColor = "Color.Transparent"

BackgroundImage = "@ (new FileImageSource {File =" HamburgerMenu.png "})"

OnClick = "@ ChangeDrawerState" />

< RadBorder BorderColor = "@ Color.LightSkyBlue "

Padding = " new Thickness (2) "

BorderThickness = " new Thickness (0,0,0,2 ) ">

< Label Text = "Telerik UI for Xamarin Mobile Blazor Bindings!"

HorizontalTextAlignment = "TextAlignment.Center"

VerticalTextAlignment = "TextAlignment.Center"

FontAttributes = "FontAttributes.Bold"

FontSize = "15" 19659003] />

</ RadBorder >

</ StackLayout >

</ GridCell >

< GridCell Row = "1" >

< RadSideDrawer DrawerLength [19659003] = "200"

[19659059] IsOpen = "@ IsDrawerOpen" >

< MainContent >

< Telerik.XamarinFormitivess.Blazor.Blazor.Primitives .SideDrawer.MainContent >

< Grid Padding = "5" >

< Layout ]>

< RowDefinition GridUnitType = "GridUnitType.Auto" />

< RowDefinition [1965900Type] GridUnitType 19659003] = "GridUnitType.Star" />

</ Layout >

< Contents >

< GridCel l >

< RadExpander >

< ExpanderHeader >

< Telerik.XamarinForms.Blaz. .Primitives.Expander.ExpanderHeader.ExpanderHeader IndicatorColor = "@ Color.LightSkyBlue" >

< StackLayout > > [196599011] < Label Text = "Expander control"

HeightRequest = "40"

FontSize = [19659009] "15"

[1 9659225] TextColor = "@ Color.Black"

VerticalTextAlignment = "TextAlignment.Center" />

</ [19659002] StackLayout >

</ Telerik.XamarinForms.Blazor.Primitives.Expander.ExpanderHeader.ExpanderHeader >

</ ExpanderHeader

< ExpanderContent >

< Telerik.XamarinForms.Blazor.Primitives.Expander.ExpanderContent >

[19659200152] <

[1965920015] StackLayout Margin = "nouvelle épaisseur (10, 20, 10, 20 ) ">

< StackLayout Orientation = " StackOrientation.Horizontal "

Spacing = " 10 " >

< RadCheckBox UncheckedColor = "@ Color.LightSkyBlue"

CheckedColor = "@ Color. LightSkyBlue "

CheckedSymbolColor = " @ Color.Black " />

< Label Text = " Fixations Mobile Blazor "

FontSize = "15"

VerticalTextAlignment = "TextAlignment.Center"

HorizontalTextAlignment = [19659009lignment]. Centre "

TextColor = " @ Color.Black " />

</ StackLayout >

< StackLayout Orientation = "StackOrientation.Horizontal"

Spacing = "10" >

< RadCheckBox UncheckedColor = "@ Color.LightSkyBlue"

CheckedColor = "@ Color.LightSkyBlue"

[19659286CheckColor] 19659003] = "@ Color.Black" />

< Label Text = "Telerik UI for Xamarin"

] TextColor = "@ Color.Black"

FontSize = "15"

VerticalTextAlignment = "TextAlignment.Center "

HorizontalTextAlignment = "TextAlignment.Center" />

</ StackLayout >

[19659215out StackLayout StackLayout 19659003]>

</ Telerik.XamarinForms.Blazor.Primitives.Expander.ExpanderContent >

</ ExpanderContent > [19652009011] > [19652009011] ] </ RadExpander >

</ GridCell >

< GridCell Row = Row = " 1 ">

< Grid >

< Disposition >

< RowDefinition GridUnitType = "GridUnitType.Auto" />

< RowDefinition GridUnitType = "GridUnitType.Star" />

</ Layout >

<[19659002] Table des matières >

< GridCell >

< RadButton Text = "Afficher / Masquer l'indicateur d'occupation "

OnClick = " @ ChangeBusyState "

TextColor = "@ Color.Black"

BackgroundColor = "@ Color.LightSkyBlue" />

</ GridCell >

< GridCell Row = "1" >

[19659436] < RadBusyIndicator AnimationContentHeightRequest = "100"

AnimationContentWidthRequest = "100" [196590411] Animation ou = "@ Color.LightSkyBlue"

AnimationType = "Telerik.XamarinForms.Primitives.AnimationType.Animation4"

IsBusy = "@ IsBusy" />

</ GridCell >

</ Contents >

</ Grid >

</ GridCell >

</ Contents >

</ Grid >

</ Telerik.XamarinForms.Blazor.Primitives.Sid eDrawer.MainContent >

</ MainContent >

< DrawerContent >

< Telerik. XamarinForms.Blazor.Primitives.SideDrawer.DrawerContent >

< Grid >

< Layout >

< RowDefinition GridUnitType = "GridUnitType.Auto" />

< RowDefinition GridUnitType] "" GridUnitType] ". Star " />

</ Layout >

< Contents >

< GridCell >

< Label Text = "ListView control"

HorizontalTextAlignment = "TextAlignment.Center"

VerticalTextAlignment = "TextAlignment.Center"

FontAttributes = "FontAttributes.Bold"

FontSize 19659009] "15" />

</ GridCell >

< GridCell Row = "1 ">

< RadListView ItemsSource = " @ Source " >

< ItemStyle >

< Telerik.XamarinForms.Blazor.DataControls.ListView.ListViewItemStyle TextCellTextColor Color.Black " />

</ ItemStyle >

< SelectedItemStyle >

< Telerik.XamarinForms.Blazor.DataControls.ListView.ListViewItemStyle TextCellTextColor = "Color.Black"

BackgroundColor = "@Blue.LightSky. />

</ [19659002] SelectedItemStyle >

</ RadListView >

</ GridCell >

</ Sommaire >

</ Grid >

</ Telerik.XamarinForms.Blazor.Primitives.SideDrawer.DrawerContent >

</ DrawerContent >

</ RadSideDrawer >

</ GridCell >

[19659012] </ Table des matières >

</ Grid >

</ ContentView >

[19659683] @code {

protected override void OnInitialized () [19659011] {

base.OnInitialized ();

this.IsDrawerOpen = false;

this.IsBusy = false;

[19659683]

this.Source = new List < string > ()

{

"Tokyo",

"London" ,

"Madrid",

"Paris",

"Mexico",

"New York",

"Sidney "

};

}

public bool IsDrawerOpen {get; ensemble; }

public bool IsBusy {get; ensemble; }

Liste publique < string > Source {get; ensemble; }

public void ChangeDrawerState ()

{

this.IsDrawerOpen =! This.IsDrawerOpen;

}

public void ChangeBusyState ()

{

this.IsBusy =! This.IsBusy;

}

}




Source link