or
InitializeComponent();RanksGridView.ItemsSource = _crewing.Ranks.OrderBy(r=>r.Name);I'm creating a MVVM application (WPF Browser Application) which uses RadWindow to show images. Every time I open image with the RadWindow and close it, the memory usage continues increased and never fall back, at the end, it will throw Out of Memory exception. Is there anyone know why RadWindow can not free the memory it used.
<telerik:RadMenu Grid.Row="1"
Style="{StaticResource MenuStyle}"
ItemsSource="{StaticResource MenuItemsSource}"
ItemContainerStyleSelector="{StaticResource MenuItemStyleSelector}"
ItemContainerStyle="{x:Null}" MenuItem.Click="MenuItem_Click"/>When I set the command to an ApplicationCommand or an EditingCommand for a button within a standard
ToolBar as follows:these commands fire correctly for text contained within a RichTextBox.<ToolBar><ButtonCommand="ApplicationCommands.Cut"ToolTip="Cut"><ImageSource="/Project;component/Images/editcut.png"/></Button><ButtonCommand="EditingCommands.ToggleBold"ToolTip="Bold"><TextBlockFontWeight="Bold"><RunText="B"/></TextBlock></Button></ToolBar>
However if I change the ToolBar to a RadToolBar, the buttons are disabled.
What do I need to do to allow these commands to fire as expected?
public MainWindow(){ InitializeComponent(); //Creating the second Y axis AxisY secondaryAxis = new AxisY(); secondaryAxis.AxisName = SECONDARY_AXIS_NAME; secondaryAxis.AutoRange = false; secondaryAxis.DefaultLabelFormat = "N"; secondaryAxis.Step = 10000000; secondaryAxis.MinValue = 0; secondaryAxis.MaxValue = 100000000; chart.DefaultView.ChartArea.AdditionalYAxes.Add(secondaryAxis);}void SchedulerView_ShowDialog(object sender, ShowDialogEventArgs e){ // Here goes the custom modal UI // ... e.Cancel = true;}