I am trying to get the background color for the RadDatePicker to be white. It is picking up a color that I am unaware of specifying ( read I did not do it intentionally :-) )
I found general styling instructions for the controls that indicated the proper way would be to create a style...
<Style TargetType="Label" x:Key="DateDisplayLabelStyle">
<Setter Property="TextColor" Value="#007A53"/>
<Setter Property="BackgroundColor" Value="White"/>
</Style>
I am unsure how to get the lighter green color set to white. I did not see a name for this part of the control in the documentation.
Thanks
-Sean
I'm trying to build a donet maui app but when it try to run the project in ios emulator i get this error, i don't know what to do (only happens for emulator, can run the project to ios devices)
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : clang++ exited with code 1: [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : ld: warning: ignoring duplicate libraries: '-lSystem.IO.Compression.Native', '-lSystem.Native', '-lSystem.Net.Security.Native', '-lSystem.Security.Cryptography.Native.Apple', '-lc++', '-lmono-component-debugger', '-lmono-component-diagnostics_tracing', '-lmono-component-hot_reload', '-lmonosgen-2.0', '-lxamarin-dotnet-debug', '-lz' [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : ld: building for 'iOS-simulator', but linking in object file (/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a[arm64][2](TKChartAnnotation.o)) built for 'iOS' [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : clang: error: linker command failed with exit code 1 (use -v to see invocation) [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]
In day view, is it possible to change the times from 24hr to 12hr AM/PM style?
I've tried setting the Culture and all that but no luck.
I wanted to know if there were any known issues with the ImageEditor on iOS? In the documentation it had examples on android and windows but nothing for iOS. And then i get the crash (Down below) stating a maui context issue.
~ Additional info
I have the ImageEditor in a 'mopup' page to act as a popup.
The styling on the editor is only affecting TextColor
simulator(built on x64) and physical devices
iOS 17
.NET8
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<telerik:RadImageEditor
x:Name="imageEditor"
Padding="10" />
<telerik:RadImageEditorToolbar
Grid.Row="1"
AutoGenerateItems="False"
ImageEditor="{x:Reference imageEditor}">
<telerik:ImageEditorRotateLeftToolbarItem Style="{StaticResource buttonToolbarStyle}" />
<telerik:ImageEditorRotateRightToolbarItem Style="{StaticResource buttonToolbarStyle}" />
<telerik:ImageEditorUndoToolbarItem Style="{StaticResource buttonToolbarStyle}" />
<telerik:ImageEditorRedoToolbarItem Style="{StaticResource buttonToolbarStyle}" />
<telerik:ButtonToolbarItem
x:Name="SaveToolBar"
Clicked="OnSaveTapped"
IsEnabled="True"
IsVisible="True"
Style="{StaticResource buttonStyle}"
Text="Save" />
</telerik:RadImageEditorToolbar>
</Grid>
1st crash message
System.InvalidOperationException: 'Loading...'
follow up crash messages / detailed log
ObjCRuntime.ObjCException: 'Objective-C exception thrown. Name: System.InvalidOperationException Reason: MauiContext should have been set on parent. (System.InvalidOperationException)I am looking to set a custom tooltip on a ButtonToolbarItem. It appears the current tooltip only binds to the Text property.
Is there a way for me to change the ToolTipProperties.TextProperty binding?
I am trying to use the pie chart on my content page but it is not rendering. My XAML is:
<telerik:RadPieChart Grid.Row="0" x:Name="chart" HandlerChanged="chart_HandlerChanged">
<telerik:RadPieChart.BindingContext>
<vm:SystemStatsViewModel />
</telerik:RadPieChart.BindingContext>
<telerik:RadPieChart.Series>
<telerik:PieSeries ShowLabels="True"
RadiusFactor="0.8"
ValueBinding="Value"
ItemsSource="{Binding LoadChartItems}" />
</telerik:RadPieChart.Series>
</telerik:RadPieChart>
The view model returns sample data just to get the chart to render:
public ObservableCollection<LoadChartItem> LoadChartItems { get => new() {
new() { Category = "Test1", Value = 52 },
new() { Category = "Test2", Value = 19 },
new() { Category = "Test3", Value = 82 },
new() { Category = "Test4", Value = 23 }
};
}
There are other controls (labels, grids) on the page that render properly using the view model so I can rule out a bug in my view model. I have tried rendering the chart with and without the:
<telerik:RadPieChart.BindingContext>
<vm:SystemStatsViewModel />
</telerik:RadPieChart.BindingContext>
since the page references the SystemStatsViewModel in the bindingcontext. The control just never appears or throws an error of any kind. Any help or insights are appreciated.
Hi Telerik Team,
May I kindly ask you if I could use ListView control in .NET MAUI with already grouped structure data type? I guess I could flatten my object source model, but I am interested if it is possible to use below model with ListView control and grouping options?
I have a ViewModel with a property type of ObservableCollection<T> MyProperty where T defined as:
public class T : List<T1>
{
public string Name {get;set;}
public string Area {get;set;}
}
and T1 as below:
public class T1
{
public string Id {get;set;}
public string ImgURL {get;set;}
//..some other properties
}
Currently, when using a NavigationView on smaller screens like a mobile phone you see the NavigationContent first and then through the hamburger menu you can navigate through the items and change page.
I was wondering if there is a way where we see the NavigationItems first? i.e. the NavigationItems take up the entire screen width and height and then clicking on the item navigates to that page.
Take Microsoft Teams for example. On laptops it shows something as a DockLayout with the chat on the left and then navigate to the detailed messages on the right. On a mobile phone tho, the list of chats take the entire screen width and height and clicking on them takes you to that detailed messages.
I was able to get this to work using DockLayout and some other additional code:
- Use onIdiom to get device type.
- Dynamically hide or show parts of dock layout. (for instance hide the right side of the DockLayout and then left takes up the entire space).
- Switch between a ContentView and a ContentPage depending on device and functionality. On bigger screens with full fledged docklayout, use ContentView. On smaller screens with no docklayout functionality use ContentPage
This does the job but as you can see there are a lot of moving parts and when working on a bigger project this gets hard to manage.
Can something of this sort be implemented out of the box using Telerik controls or is there already a way to achieve this?